From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YKOiIhBMt2CO4QAAgWs5BA (envelope-from ) for ; Wed, 02 Jun 2021 11:14:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id wEEhHhBMt2DAYQAA1q6Kng (envelope-from ) for ; Wed, 02 Jun 2021 09:14:56 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BDC33AE03 for ; Wed, 2 Jun 2021 11:14:55 +0200 (CEST) Received: from localhost ([::1]:57190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loMxi-0005st-CY for larch@yhetil.org; Wed, 02 Jun 2021 05:14:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46118) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loF2O-00007m-E7 for help-guix@gnu.org; Tue, 01 Jun 2021 20:47:12 -0400 Received: from mx.kolabnow.com ([95.128.36.41]:4738) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loF2L-00015G-Dz for help-guix@gnu.org; Tue, 01 Jun 2021 20:47:11 -0400 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out002.mykolab.com (Postfix) with ESMTP id 5512F1082 for ; Wed, 2 Jun 2021 02:47:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-type:content-type:content-transfer-encoding:mime-version :message-id:date:date:subject:subject:from:from:received :received:received; s=dkim20160331; t=1622594824; x=1624409225; bh=f0CLDz6b624w1PG5Gew02pNA6UU77nLw1KvRgvPH3/Y=; b=nHQgKAe+0lDr NjmHqpPVgQ4aJiFeprag6IYWwO/RQWsChN2KsftecxaHNh10Vt5g/S7dxFYZoMsA DZdNnmcvYk/DTFLpK0XdLfyhg2NOlcmI6etcx/9X1VK5qHUuLZhs9ouMF5GI3+JE jmirXkENiz0NaslgG8ifapIxVbTfBEnKZG/kRzOYHTrjsh3sCdKBEzRHn8zwxAHl gzeDbWkZVUaZA+7KAGwy1iL6DR0k8u/bMq/y6DTSzN7XqJ3FYH+ZRYN4e344Aq9G 8DPmFLAsaBNAqi72d7aAqC9lNhu4fYLtr0xdtuUbdAteI9R4gBnGT5JE9DsXMrB6 G+JngHmVvdt9VJhnJ8aM9PPjSsiJc20uR9ek0huqVsC7TrIj8IEPIf8LItJA4Y7q 4VrgsDMsZsyP1GpJQ8u1QsS6+7wKSRdUlJcIl+zJNIV6gx7KH5KlIbIRhx6ehdT/ HuxJXjI8qKAXZ08caHDISbR9R1MJ6oNMSOGP2JxBMTEgJwpE9k8l2xZy1UDXC2OO 7OqXHrQr7bKlJFMSv6/Sy7cA9qNs8cH5XcQqpqtTmTQmi/MB0OrwiuWJTilY7bMy lrZxsunp+CZCIri3tAlnHS0f6fJIFSJGj5chpYYn9mhmA+lp/jWQlSUiwnKs+9O9 nLnWCU7TR8m4lPIBwqpbDYpBDp5mOug= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out002.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O9VkhgFUdvdd for ; Wed, 2 Jun 2021 02:47:04 +0200 (CEST) Received: from int-mx003.mykolab.com (unknown [10.9.13.3]) by ext-mx-out002.mykolab.com (Postfix) with ESMTPS id A79E9C09 for ; Wed, 2 Jun 2021 02:47:04 +0200 (CEST) Received: from ext-subm002.mykolab.com (unknown [10.9.6.2]) by int-mx003.mykolab.com (Postfix) with ESMTPS id E1CEA2086 for ; Wed, 2 Jun 2021 02:47:03 +0200 (CEST) From: Thiago Jung Bauermann To: help-guix@gnu.org Subject: Build Mesa with a different toolchain version Date: Tue, 01 Jun 2021 21:46:56 -0300 Message-ID: <3126247.iAZJFXckTJ@popigai> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=95.128.36.41; envelope-from=bauermann@kolabnow.com; helo=mx.kolabnow.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 02 Jun 2021 05:14:37 -0400 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622625295; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=f0CLDz6b624w1PG5Gew02pNA6UU77nLw1KvRgvPH3/Y=; b=GDdOaDtSkXIO992AOowm7hp/cTezR7o8hysJ7/XFk7Qbbj2w9dmeF++2LRQb7XjDez1fsW uBTyAgcn635/dWmyhcy7jUhmDL6h/UuhqohQ60LjFhNzhJ/4+DG+AlPzZk6nBztp8EzgGr fuAJUSi1JjFBdOWFukadoe9r97FdOOXX+pHrQ7lKFEZRTcU8frjpxOtgCpHdvGvUJl+wOl rN8qwfjadYNr8WbQf41ohpkHePGirrI+k6GQafz1qm5vE5QRS4tPlWFypNroD8qI07fnk1 Fa0e95ZfFtjVShsQU5g+j4c8R7JBRjPD/1bsnGStp5LMl4of/c4gBYJezu1Q7A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622625295; a=rsa-sha256; cv=none; b=tUUJtKnldUevipmc3dRcDOH00mOYsta4BacDzJxImt5kU1m/9DeD4TL133QckJB1iJK/Yf 0o1+rOWiu/SnGmedq/ismdKxaP1illSoi6HgTzOrg6kV6raX2qL+NreUre8hRPyaZcXN0r 7fZtkMDNxZ4mJFbhEoJqJpNGOo0UdoEkkenMIF8IvAFwl7b/6gl1kngwBGsXzdf5fiRTKg cEgsMOxq8RIKaTgVD6FEAlTannQxgE+VDxvk2MQKXcFcm2LdfJfEkrVeFRT6rU4UFAlLay QRi/BfPeaoAeZf/5LiMnRUT1qIIgXDriAJ2semnDGRmMGaUv+FESOAdyg1R+5g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=kolabnow.com header.s=dkim20160331 header.b=nHQgKAe+; dmarc=pass (policy=quarantine) header.from=kolabnow.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.63 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kolabnow.com header.s=dkim20160331 header.b=nHQgKAe+; dmarc=pass (policy=quarantine) header.from=kolabnow.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: BDC33AE03 X-Spam-Score: -2.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8G2YhVy00EaZ Hello, I'm having and issue with Mesa on i686-linux which I suspect is caused by the version of GCC used to build it (i.e. 7.5.0). To test my theory, I'm trying to build Mesa with a newer version of the compiler. I tried a few different things, but none worked. I would be grateful if someone could help me figure out how to do this: Try #1: $ guix build --system=3Di686-linux \ --with-input=3Dgcc-toolchain=3Dgcc-toolchain@10.3.0 mesa [=E2=80=A6] successfully built /gnu/store/bg01dw0178yb7v9xr4zmq5f05200f2ql-mesa-20.2.4.= drv /gnu/store/mvy7pl73yqrd9pi3k3xq14i6dmnfbl8s-mesa-20.2.4-bin /gnu/store/ii8fbly1s19qwpnwv002fd2pxk2h96ba-mesa-20.2.4 So aparently it worked. But when checking the libraries, they still link to GCC 7.5.0. $ ldd /gnu/store/ii8fbly1s19qwpnwv002fd2pxk2h96ba-mesa-20.2.4/lib/libOSMesa= =2Eso.8.0.0 | grep gcc=20 libstdc++.so.6 =3D> /gnu/store/1527570cy2g7ld4wppmh3skvi27kvm43-gcc= =2D7.5.0-lib/lib/libstdc++.so.6 (0xf51d9000) libgcc_s.so.1 =3D> /gnu/store/1527570cy2g7ld4wppmh3skvi27kvm43-gcc-= 7.5.0-lib/lib/libgcc_s.so.1 (0xf50b9000) And surprisingly, when changing the requested gcc-toolchain version, guix doesn't attempt to build anything and just returns the same store items from the =E2=80=9C10.3.0=E2=80=9D build: $ guix build --system=3Di686-linux --with-input=3Dgcc-toolchain=3Dgcc-toolc= hain@11.1.0 mesa /gnu/store/mvy7pl73yqrd9pi3k3xq14i6dmnfbl8s-mesa-20.2.4-bin /gnu/store/ii8fbly1s19qwpnwv002fd2pxk2h96ba-mesa-20.2.4 Try #2: Next, I tried using =E2=80=98package-input-rewriting=E2=80=99 by putting th= e following package definition in a channel I created locally (with the appropriate =E2=80=98#:use-module=E2=80=99 directives at the top): ``` (define gcc->gcc-10 (package-input-rewriting `((,gcc . ,gcc-10) (,(make-libstdc++ gcc) . ,(make-libstdc++ gcc-= 10))))) (define-public mesa-10 (package (inherit (gcc->gcc-10 mesa)) (name "mesa-10"))) ``` And then: $ guix pull && guix build --system=3Di686-linux mesa-10 [=E2=80=A6] successfully built /gnu/store/g4j9kmxgp6lashyipcydn7i6vh2v4s3c-mesa-10-20.2= =2E4.drv /gnu/store/8iiwn9cnjlfxfi7m1fmdavzgr7y38vv7-mesa-10-20.2.4-bin /gnu/store/hjci6cqw76hvdawdl04kjmbajklsdwx2-mesa-10-20.2.4 And unfortunately I saw many GCC 7.5.0 processes in the build, for example (command line abridged because it's too big): $ pgrep -u guixbuilder01 -a -f cc1 119240 /gnu/store/=E2=80=A6-gcc-7.5.0/libexec/gcc/i686-unknown-linux-gnu/7.= 5.0/cc1 [=E2=80=A6] And indeed, still linked to GCC 7.5.0 libraries: $ ldd /gnu/store/hjci6cqw76hvdawdl04kjmbajklsdwx2-mesa-10-20.2.4/lib/libOSM= esa.so.8.0.0 | grep gcc libstdc++.so.6 =3D> /gnu/store/1527570cy2g7ld4wppmh3skvi27kvm43-gcc= =2D7.5.0-lib/lib/libstdc++.so.6 (0xf51ff000) libgcc_s.so.1 =3D> /gnu/store/1527570cy2g7ld4wppmh3skvi27kvm43-gcc-= 7.5.0-lib/lib/libgcc_s.so.1 (0xf50df000) Also tried using GCC 11 by doing `s/-10/-11/g` in the code I quoted above and building again: $ guix build --system=3Di686-linux mesa-11 [=E2=80=A6] successfully built /gnu/store/vnmwibfpsw3fkm7q7y6z4r5273ri4qra-mesa-11-20.2= =2E4.drv /gnu/store/w5l307c1vnsik5h1zd9bcjzld2yp6xyl-mesa-11-20.2.4-bin /gnu/store/l98bxwa5psb3yx56hhb78zr043s10p7q-mesa-11-20.2.4 At least this time it redoes the build instead of just returning the same store items, but I still see the GCC 7.5.0 processes during the build: $ pgrep -u guixbuilder01 -a -f cc1 127514 /gnu/store/=E2=80=A6-gcc-7.5.0/libexec/gcc/i686-unknown-linux-gnu/7.= 5.0/cc1 [=E2=80=A6] And again, linked with GCC 7.5.0 libraries: $ ldd /gnu/store/l98bxwa5psb3yx56hhb78zr043s10p7q-mesa-11-20.2.4/lib/libOSM= esa.so.8.0.0 | grep gcc libstdc++.so.6 =3D> /gnu/store/1527570cy2g7ld4wppmh3skvi27kvm43-gcc= =2D7.5.0-lib/lib/libstdc++.so.6 (0xf51e4000) libgcc_s.so.1 =3D> /gnu/store/1527570cy2g7ld4wppmh3skvi27kvm43-gcc-= 7.5.0-lib/lib/libgcc_s.so.1 (0xf50c4000) =2D-=20 Thanks, Thiago