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 IGqbFhpmuGAwDAAAgWs5BA (envelope-from ) for ; Thu, 03 Jun 2021 07:18:18 +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 iIX+ERpmuGAOKAAA1q6Kng (envelope-from ) for ; Thu, 03 Jun 2021 05:18:18 +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 436131BC1C for ; Thu, 3 Jun 2021 07:18:17 +0200 (CEST) Received: from localhost ([::1]:44978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lofkF-0008AO-Rf for larch@yhetil.org; Thu, 03 Jun 2021 01:18:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34848) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lofk7-0008A3-36 for help-guix@gnu.org; Thu, 03 Jun 2021 01:18:07 -0400 Received: from mx.kolabnow.com ([95.128.36.41]:41640) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lofk3-0006RR-NV for help-guix@gnu.org; Thu, 03 Jun 2021 01:18:06 -0400 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out002.mykolab.com (Postfix) with ESMTP id 8262B806; Thu, 3 Jun 2021 07:18:01 +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= 1622697481; x=1624511882; bh=eyJmnYe5tz4meJtq00q8ofYU1xPjPmywBJk /ROYU9kg=; b=5cygaq8OQi9iF7bEM4SyjFyd0T81fCKt8q+bipj7xuGvul/RSLY V1pjS0e+VrBmWucFfWXnakAEK/XyIqOG+v0N50m4AaAthWvOjaXNvMWAzAvLiyO+ AbVZIKHS1ElpyvubJGvAubftHPabCmE7z3CFsD/gTFhrWjNHmzI6VKeSacsO/5AR 2s1oYQNI1bKMQSzIN7e3P0HXY8lDDadXOhdNvtdp3v8NEoQLzRKEWdzr9FqB/nWa BhudJ4ORYnMVM0oLOVDzUyOzRXwtO4x0c7QdKv/nBRWXbdSUTF6bbbfcMxksn7CA kojX2c5JX1kPKcUZN9mmHFgcTFUYSWmMlLBA98YCFnl4L+HcoJFFmZ5onXjVYoWG pzojFSWN9AljER7PDSYNT1+xIgLzS11BXT8xRoxL1T1C1Dkg9giU9Aj7N1MzESYW wm0QzHgJIRWrStHksciiaWQ1jCjvHSDftuleHE6woYPbg7aYIJa2c7zwZ6moSj/r tIJXqpdtX2r5cDmNMfNlMxi/gbVKG89vlhXhPYW+R1jgj9XFIzEmlTePg2Cl5Gwq +YR5tXcRyxrSYlia3VjOtoASLOrm8rcTl0OMio/N+rqqd1PRJozI67HjKc8zXM0H 2S7GVxglM9NRNMFjLeRKnQvJnvG0KrbO42bkEl9Y1IW3VyXTE94b3XUM= 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 6tYjFeUZfPAR; Thu, 3 Jun 2021 07:18:01 +0200 (CEST) Received: from int-mx002.mykolab.com (unknown [10.9.13.2]) by ext-mx-out002.mykolab.com (Postfix) with ESMTPS id 327445C1; Thu, 3 Jun 2021 07:17:59 +0200 (CEST) Received: from ext-subm002.mykolab.com (unknown [10.9.6.2]) by int-mx002.mykolab.com (Postfix) with ESMTPS id 3A9BC3738; Thu, 3 Jun 2021 07:17:57 +0200 (CEST) From: Thiago Jung Bauermann To: Tobias Geerinckx-Rice Cc: help-guix@gnu.org Subject: Re: Build Mesa with a different toolchain version Date: Thu, 03 Jun 2021 02:17:52 -0300 Message-ID: <4471901.PLDDK796k6@popigai> In-Reply-To: <87y2bszjou.fsf@nckx> References: <3126247.iAZJFXckTJ@popigai> <87y2bszjou.fsf@nckx> 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, 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=1622697497; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=eyJmnYe5tz4meJtq00q8ofYU1xPjPmywBJk/ROYU9kg=; b=PosTspzo/isNj3Zx6SyDhUwYipxvtCVu+iSi3WRLykI+K1cD8k9Rk7qS7JRG5d9Dp1Ftom weWDedks+KYg0IuuAtKPjgDzJyO6QEaElAXaPsRrppWk1BBwaRUIxvs2JQv6YVR8Xj0vVB qB13nzMhxeQX7y2hwq/L818pp9zo18s/+XcAY7yBr7b0q8RidF4XRmkVPj/WBNxSUhCTDI 7RxZ8Z6jyVSBW7kK2BRkAZg3Bt4ArnYqo8xvLSXhJOMs7Bj60pHLWtGz7DJXHPHKlfd5gN I1/5xt+SBh/IN5sXi2cmw91nRXNH8dfXEm3S7ayC8iuXfZ2eKfB2YDvnKOS5QA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622697497; a=rsa-sha256; cv=none; b=AXZHzZDvPLMXM4Zlsqp3XKcpJhrJAcFccto3BHvvu6nBbdfWcWoF451kEv3Z5auP5SFBbk R2wvBBvZJszvf1kmqhlRqzhw0oreGMWTl4KzsXCQXOPcRzH6H94gPkebSiT8iIA61PTkEV DJvEzZGvyR++dixskBByQ9+d9mB7wcehPOLyxl2Dc9/P213edFap1GO8WbGMrNiiCqjv8S d2HA4NGnkDaFLZUJgmJTKywudh/y7dL5iAysp8VDdMpAGdUpX/gOWWHPHXd11XBD8+YcCo JjXVqHzt674PYHX/9fkUAyZjsApMPW1wwILn6THY9tihykYlorxPMPgVu360bA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=kolabnow.com header.s=dkim20160331 header.b=5cygaq8O; 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=5cygaq8O; 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: 436131BC1C X-Spam-Score: -2.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: pv3QqTupDKiQ Hello, Thank you for your response. Em quarta-feira, 2 de junho de 2021, =C3=A0s 06:42:41 -03, Tobias Geerinckx= =2DRice=20 escreveu: > Thiago, >=20 > Thiago Jung Bauermann =E5=86=99=E9=81=93=EF=BC=9A >=20 > > $ guix build --system=3Di686-linux \ > >=20 > > --with-input=3Dgcc-toolchain=3Dgcc-toolchain@10.3.0 mesa > >=20 > > [=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 >=20 > --with-input=3Dgcc-toolchain=3D=E2=80=A6 is a no-op: no package has a > =E2=80=98gcc-toolchain=E2=80=99 input. >=20 > It exists only because people kept installing the =E2=80=98unwrapped=E2= =80=99 (now > hidden) GCC package with =E2=80=98guix install gcc=E2=80=99 and expecting= a > working compiler. gcc-toolchain wraps the entire toolchain so =E2=80=98$ > gcc my.c=E2=80=99 produces working binaries. It is not used internally by > Guix. Ah! Thanks for the information. I didn=E2=80=99t have a clear picture of th= e=20 relationship between =E2=80=98gcc=E2=80=99 and =E2=80=98gcc-toolchain=E2=80= =99. =20 > > So aparently it worked. >=20 > It worked in the sense that the package was built successfully > with gcc@7.5. If your undescribed issue was a build issue, it's > not deterministic. If it's a run-time bug, whatever it is will > still happen. Right, it still happens. It=E2=80=99s a runtime issue. =E2=80=9Cworked=E2= =80=9D here referred to=20 triggering a package rebuild and having it completing successfuly. > > And surprisingly, when changing the requested gcc-toolchain > > version, > > guix doesn't attempt to build anything and just returns the same >=20 > > store items from the =E2=80=9C10.3.0=E2=80=9D build: > It's not surprising, it's proof that your transformation's a > no-op. Guix is very good at hashing changes; it doesn't =E2=80=98miss=E2= =80=99 or > cache stale things. Nice. It=E2=80=99s good to understand that piece of the puzzle. > Two things that work (but read both): >=20 > ~$ guix build --with-input=3Dgcc=3Dgcc@10 mesa > guix build: package 'gcc' has been superseded by 'gcc-toolchain' >=20 > Is this why you tried =3Dgcc-toolchain=3D above? :-) The hint isn't > relevant in this edge case, you can ignore it for once. I didn=E2=80=99t even try this command actually. I had noticed that I could= n=E2=80=99t=20 manipulate the =E2=80=98gcc=E2=80=99 package from the command line, so I as= sumed that=20 passing it to `--with-input` wouldn=E2=80=99t work. I thought it was only p= ossible=20 to reference it in Scheme code, via the =E2=80=98gcc=E2=80=99 variable. > I've included this option because it's the workin variant of your > first command. However, it rebuilds the *entire* dependency chain > of Mesa with GCC 10: glibc, bash, ed, python-minimal, guile=E2=80=A6 >=20 > It's cool that Guix makes this task so easy, It=E2=80=99s very cool indeed! Unfortunately, here it=E2=80=99s failing ear= ly in the=20 rebuild process, while trying to build =E2=80=98bash-minimal=E2=80=99: ``` configure: WARNING: unrecognized options: --enable-fast-install checking build system type... i686-unknown-linux-gnu checking host system type... i686-unknown-linux-gnu Beginning configuration for bash-5.0-release for i686-unknown-linux-gnu checking for gcc... gcc checking whether the C compiler works... no configure: error: in `/tmp/guix-build-bash-minimal-5.0.16.drv-0/bash-5.0': configure: error: C compiler cannot create executables See `config.log' for more details ``` > but you probably want just >=20 > ~$ guix build --with-c-toolchain=3Dmesa=3Dgcc-toolchain@10 mesa >=20 > This special-case option will do the right things to rebuild > (only) mesa with the toolchain of your choice. Note the =3Dmesa=3D > difference in syntax: the package you want to rebuild, not the one > you want to replace: >=20 > [=E2=80=A6] > C compiler for the host machine: gcc (gcc 10.3.0 "gcc (GCC) > 10.3.0") > C linker for the host machine: gcc ld.bfd 2.34 > C++ compiler for the host machine: c++ (gcc 10.3.0 "c++ (GCC) > 10.3.0") > C++ linker for the host machine: c++ ld.bfd 2.34 > [=E2=80=A6] Yes, that is indeed what I was looking for. Unfortunately, as I mentioned=20 in my other email, with this option Mesa builds some libraries with GCC=20 10.3.0 and others with 7.5.0. There must be something strange going on with= =20 its build system. > Not a user of PACKAGE-INPUT-REWRITING so I'll leave that to > someone else. I was able to use =E2=80=98package-with-c-toolchain=E2=80=99, though I get = the same mixed- toolchains result. As I mentioned in the other email, I=E2=80=99m beginning to wonder if my ti= me would=20 be better spend trying to help getting core-updates ready. Then I=E2=80=99d= get=20 gcc-8 by default. =2D-=20 Thanks, Thiago