From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wLGLJW5luGAHDAAAgWs5BA (envelope-from ) for ; Thu, 03 Jun 2021 07:15:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id sH09IW5luGBuTwAAbx9fmQ (envelope-from ) for ; Thu, 03 Jun 2021 05:15:26 +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 D78D713797 for ; Thu, 3 Jun 2021 07:15:25 +0200 (CEST) Received: from localhost ([::1]:40006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lofhT-0004ha-F1 for larch@yhetil.org; Thu, 03 Jun 2021 01:15:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34406) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lofhD-0004hQ-RT for help-guix@gnu.org; Thu, 03 Jun 2021 01:15:07 -0400 Received: from mx.kolabnow.com ([95.128.36.40]:35040) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lofhA-0003sH-Th for help-guix@gnu.org; Thu, 03 Jun 2021 01:15:06 -0400 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out003.mykolab.com (Postfix) with ESMTP id 2B68C405D4 for ; Thu, 3 Jun 2021 07:15:00 +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 :references:in-reply-to:message-id:date:date:subject:subject :from:from:received:received:received; s=dkim20160331; t= 1622697299; x=1624511700; bh=aFxf6KyMmF3mEmaXjHVLOTHPSpCKrHT1f31 vJlmcPTc=; b=gn2Zbbb27SJN5PVi+NlRanD/rsL5gZqbQ0K8J1kOpuiScb+GTT9 XW24IDbGUjcgUCPgxEIKXrWuw5QTU+BROOTc+WqtkSAThnesTGAmTh5TvyPVAc/T v0kYxzs2X8mgS2yTGLXgFJaDC+rGV79K1Mz6JWdcTZdks7OlUrZS++3skzjBYvKV q6K87vMt8sbjcFXUOyZPbuYxUKrFTnKlzMa+3ndSozb58LHTx1L01H9RwxmYXijl 24DJoIlYxXcdpuTt4ycygGVpQLWPrFxfzsZJVAYQ9ITxunohDbDhIbwfut1GRew7 FSCudoFP6LwjAx3lA3fzlrhe9rZa0S56+obIQ7eh/4wXhvLDuxKLlZandaydXldc bHLo3GmOvFkD0FXjl0NleAbDP9Biyw8vpioGFEVaELznd5szIh4vaqtbH3URwBsU PQ57fe+xa/tJYALKDK7nnNmNuM6OoAGxDkclI+bEw17r2TQTSGdqVsJ4sUD1xuP8 ejLsb/l78EOBp/5UPfsDToD7/dgkSi8bKSoOb393nPC9Dql7kNkcwFx/T8ML1wu8 OVpw4tsmkqmX3Q+HuI7uwFiy8hAFnwNGTleCRXbGGwWYBiVWS4MEkcZPwFOQ5CKF arLCqIZ6Bv5ygHxKJRRiXgyK6ojHq9SLpJiYNLdxKIEe1MPN45vpXgIo= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out003.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u2QAVy1eljpE for ; Thu, 3 Jun 2021 07:14:59 +0200 (CEST) Received: from int-mx001.mykolab.com (unknown [10.9.13.1]) by ext-mx-out003.mykolab.com (Postfix) with ESMTPS id 941E5404BD for ; Thu, 3 Jun 2021 07:14:59 +0200 (CEST) Received: from ext-subm002.mykolab.com (unknown [10.9.6.2]) by int-mx001.mykolab.com (Postfix) with ESMTPS id EE5A333A for ; Thu, 3 Jun 2021 07:14:58 +0200 (CEST) From: Thiago Jung Bauermann To: help-guix@gnu.org Subject: Re: Build Mesa with a different toolchain version Date: Thu, 03 Jun 2021 02:14:52 -0300 Message-ID: <1935764.y0xefNZuvl@popigai> In-Reply-To: References: <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.40; 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-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=1622697326; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=aFxf6KyMmF3mEmaXjHVLOTHPSpCKrHT1f31vJlmcPTc=; b=YfWgU11H5jqgCOjJ775aKW+Wi2RfQKJ+Dayi1Fqq+NbjhqyxDSvxWkrbtPzHjRvF4wmfqJ Vdc0gzATjxOexV4zlc5DhQQ3wLZodfBn8yyrIL/nri1WRKyog1Rv6Z7Mtjaon1CvowgZkU 2uPZJj6Apf1+L9VAnaIr93htf1drgGGTJdn3VcnxivgcpNs7gLkaUDkGUWmisdeu2HTGRI PPtJjPQaiLxXDvcx0GSrf6OoRkjfM5aKiekW1th7ZHUXlSJy4nzSCtsuNaCa8CEFZ8L0yz 4AyAxVONVYibqzJBiFddCjYRP/I9/fZ+oFPIjuSoP+JPbQ2rpCcC+TX1W42ypw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622697326; a=rsa-sha256; cv=none; b=PDHcy94XrlK5cbFfi1TXoOEAAVGLQmgfe70PhJtKEhZnO3eXf9GFi9SLREhree5eh6k0mc VamDujBbea7Fnq6/2NGOaQTze9A8RSfjkj8wkSZbsf3z5yYqaJhWeiZ8naBLxJc8NMvZKG ZAteALpiPtvdRg+UsoV/p4tMIp2iMYMBY09CLdMrKcZPPXF+4fT9QxI6yUFuTbDOvNX4Ae Zp1AA7AIeqaYIZu+VS0tf1HiVs8Z1+Nkw2gJJ5ab34RfoNhRvYRFI0OWIWeiM/WM8Z5UmW H91Zw+5mJqINrdYNDOGPEoXSbteBjZ0B8JarFmk2ax/ibZBjqTDE+Y2PwyLGKw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=kolabnow.com header.s=dkim20160331 header.b=gn2Zbbb2; 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=gn2Zbbb2; 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: D78D713797 X-Spam-Score: -2.63 X-Migadu-Scanner: scn1.migadu.com X-TUID: KMNEoOZUqxIO Hi, Thank you for your response. Em quarta-feira, 2 de junho de 2021, =C3=A0s 06:22:48 -03, Efraim Flashner = escreveu: > On Tue, Jun 01, 2021 at 09:46:56PM -0300, Thiago Jung Bauermann wrote: > > Hello, > >=20 > > 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). > >=20 > > 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: > >=20 > > Try #1: > >=20 > > $ guix build --system=3Di686-linux \ > >=20 > > --with-input=3Dgcc-toolchain=3Dgcc-toolchain@10.3.0 mesa >=20 > I believe you have the wrong command here. What you want is > $ guix build --system=3Di686-linux \ > --with-c-toolchain=3Dmesa=3Dgcc-toolchain@10 mesa Thanks, that worked! I read most of the Guix manual, but I had forgotten=20 about the `--with-c-toolchain` option. Searching for it in the manual also made me find the `package-with-c-toolchain` function, which does the same thing from Scheme code. Though there=E2=80=99s something weird about Mesa=E2=80=99s build process. = Different=20 libraries end up linked to different GCC versions. :-/ $ guix build --system=3Di686-linux --with-c-toolchain=3Dmesa=3Dgcc-toolchai= n@10 mesa [=E2=80=A6] successfully built /gnu/store/59mczv3gwq3bnnw2jqcj8vqimihqi6c1-mesa-20.2.4.= drv /gnu/store/8zlcwhd10nj2kv56ip5cgf5rg7523yvm-mesa-20.2.4-bin /gnu/store/5w54z00fldvgdknn06xp66irqslhp6ff-mesa-20.2.4 $ ldd /gnu/store/5w54z00fldvgdknn06xp66irqslhp6ff-mesa-20.2.4/lib/libOSMesa= =2Eso.8.0.0 G gcc =20 libstdc++.so.6 =3D> /gnu/store/92p8kxb6a5xpdi6srb8cj71fggqpkmjk-gcc= =2D10.3.0-lib/lib/libstdc++.so.6 (0xf52e7000) libgcc_s.so.1 =3D> /gnu/store/92p8kxb6a5xpdi6srb8cj71fggqpkmjk-gcc-= 10.3.0-lib/lib/libgcc_s.so.1 (0xf51c6000) $ ldd /gnu/store/5w54z00fldvgdknn06xp66irqslhp6ff-mesa-20.2.4/lib/libGL.so.= 1.2.0 G gcc =20 libgcc_s.so.1 =3D> /gnu/store/1527570cy2g7ld4wppmh3skvi27kvm43-gcc-= 7.5.0-lib/lib/libgcc_s.so.1 (0xf78ed000) Also the 32-bit game I=E2=80=99m trying to run somehow gets linked to diffe= rent Mesa builds too: libGL.so.1 =3D> /gnu/store/27yzdsj09mm3ijj4zhikcgjjqjlr74yc-mesa-20= =2E2.4/lib/libGL.so.1 (0xf71a9000) libgbm.so.1 =3D> /gnu/store/6k4wj4472nbws2z4fqy1qmnp07say5x7-mesa-2= 0.2.4/lib/libgbm.so.1 (0xf66c5000) libglapi.so.0 =3D> /gnu/store/27yzdsj09mm3ijj4zhikcgjjqjlr74yc-mesa= =2D20.2.4/lib/libglapi.so.0 (0xf6621000) The 27yz=E2=80=A6 build is the GCC 10.3.0 one, and 6k4wj=E2=80=A6 is the GC= C 7.5.0 one. Perhaps my time would be better spent trying to help get =E2=80=98core-upda= tes=E2=80=99 in shape rather than trying to work around a 4 years old compiler bug=C2=B9. =2D-=20 Thanks, Thiago =C2=B9 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D866354 =E2=80=93= the bug is in armel, but I=E2=80=99m getting the exact same error message in Mesa, so I suspect it also affects i686.