From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yDGSAJBSt2Ds7wAAgWs5BA (envelope-from ) for ; Wed, 02 Jun 2021 11:42:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id uJB/N49St2B3KQAAbx9fmQ (envelope-from ) for ; Wed, 02 Jun 2021 09:42:39 +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 DBCBB2E4D4 for ; Wed, 2 Jun 2021 11:42:38 +0200 (CEST) Received: from localhost ([::1]:50194 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loNOW-0007Af-BN for larch@yhetil.org; Wed, 02 Jun 2021 05:42:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37988) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loNON-0007A5-Jo for help-guix@gnu.org; Wed, 02 Jun 2021 05:42:27 -0400 Received: from tobias.gr ([2a02:c205:2020:6054::1]:48310) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loNOL-0003Bt-C0 for help-guix@gnu.org; Wed, 02 Jun 2021 05:42:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobias.gr; s=2018; bh=Y4KJpBg1HEt01Knjaxr2/l5p9alJYnmK/x9ZejEjTBE=; h=date:in-reply-to: subject:cc:to:from:references; b=H5332eHHDsDs4hQ8Qf0/K9ThVI8DS6sN0pXlu dCJZDiZ1tW31fZZFwuNFyjotccjQg4DxB5vJfqbcQiYOl7QHc1q1Ln6+zPxyBGUaIMdpui JQOHQoWfTFFlZKP5h130ahj3NNpbNKNIj7u2wNriVobj4gYu8Y8fN1Y4FUgqavU045uGaa 5kTAEXa/VEm238UDnARhaLXLI7//dD8LAzvyTPbbzD/J0Ig26lXhrzy9OHQHz5AY36CLcY ej4eikueC+N2clhjjSoD2/dhueC9k6P3qsAuyD7sQpVu/+TmyRMOL9VjsjQDlrxWi/AiSi Z0v4QPRxdC7gC53L9NUHcqEAA== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 8032ae1b (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO); Wed, 2 Jun 2021 09:42:21 +0000 (UTC) References: <3126247.iAZJFXckTJ@popigai> From: Tobias Geerinckx-Rice To: Thiago Jung Bauermann Cc: help-guix@gnu.org Subject: Re: Build Mesa with a different toolchain version In-reply-to: <3126247.iAZJFXckTJ@popigai> BIMI-Selector: v=BIMI1; s=default; Date: Wed, 02 Jun 2021 11:42:41 +0200 Message-ID: <87y2bszjou.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr 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_PASS=-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=1622626959; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Y4KJpBg1HEt01Knjaxr2/l5p9alJYnmK/x9ZejEjTBE=; b=t4H0icFNJlkNIOYtcz0w5G7vWZxBqaQaOeepG5N83hJd7nmbYEWR8vXGBqtwPhT8An1Bxc wUMU+uNZRRjN6S+ajjNXOLgzmdM3dDzFjoo64lhtFoCxqQ1BzJ+ZFJAPydho8lW09MWZth v61RvzhqAv1wc4MnDtCeeEPLrVtJ9SWYwzhikhUCg4cA4sJWUkvTVstVxmY8+M+czT3ck4 qLnEzMxJhpTUqi9xRNEtVLw+mI+f76xi1jwkwz44VT6TlQWT3YWGZ8iAdFvey+rhMkI6YR 8Bi86Jj5i20T0jBjg509EA8wXjepmWoHDdKV2IJJeSmV+E7ukOCOoGBVd/B8RA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622626959; a=rsa-sha256; cv=none; b=tlL7p99czw18GsrMRhSw+/4Mi+O/rz2v6tbiksLdZy9MvssXESi1DAB96QWyhgJwhdPZpJ M5fpXMKJ8Zs24m1GvYGaO7gHfvh0dwBMPd8KHXbc3wIHYkNExh+VRvLyqgI7ecVnZCiH0/ 8pIq5vmDC7eqy2nZhxtbRWv7Fm4u4Ny5orfG91+do7HcJUF127TxJJ0ASuYvYSKDkbVY2a yEjQfHsuGmAMlbQKsC8BGWzlEMRQ4XYV9GsS3BYAwCsHjPufcrjjg1WriNXhhCo6LgXcDs RGU/g6Nk6l7Ztllp2ZYC1CGMuCLDT9rrmV9i891y69tspZ+TrSK5On67pMgDWg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b=H5332eHH; 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: -4.73 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b=H5332eHH; dmarc=pass (policy=reject) header.from=tobias.gr; 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: DBCBB2E4D4 X-Spam-Score: -4.73 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4W/ErAjawReM --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Thiago, Thiago Jung Bauermann =E5=86=99=E9=81=93=EF=BC=9A > $ guix build --system=3Di686-linux \ > --with-input=3Dgcc-toolchain=3Dgcc-toolchain@10.3.0 mesa > [=E2=80=A6] > successfully built=20 > /gnu/store/bg01dw0178yb7v9xr4zmq5f05200f2ql-mesa-20.2.4.drv > /gnu/store/mvy7pl73yqrd9pi3k3xq14i6dmnfbl8s-mesa-20.2.4-bin > /gnu/store/ii8fbly1s19qwpnwv002fd2pxk2h96ba-mesa-20.2.4 =2D-with-input=3Dgcc-toolchain=3D=E2=80=A6 is a no-op: no package has a=20 =E2=80=98gcc-toolchain=E2=80=99 input. It exists only because people kept installing the =E2=80=98unwrapped=E2=80= =99 (now=20 hidden) GCC package with =E2=80=98guix install gcc=E2=80=99 and expecting a= =20 working compiler. gcc-toolchain wraps the entire toolchain so =E2=80=98$=20 gcc my.c=E2=80=99 produces working binaries. It is not used internally by= =20 Guix. > So aparently it worked. It worked in the sense that the package was built successfully=20 with gcc@7.5. If your undescribed issue was a build issue, it's=20 not deterministic. If it's a run-time bug, whatever it is will=20 still happen. > And surprisingly, when changing the requested gcc-toolchain=20 > 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: It's not surprising, it's proof that your transformation's a=20 no-op. Guix is very good at hashing changes; it doesn't =E2=80=98miss=E2= =80=99 or=20 cache stale things. Two things that work (but read both): ~$ guix build --with-input=3Dgcc=3Dgcc@10 mesa guix build: package 'gcc' has been superseded by 'gcc-toolchain' Is this why you tried =3Dgcc-toolchain=3D above? :-) The hint isn't=20 relevant in this edge case, you can ignore it for once. I've included this option because it's the working variant of your=20 first command. However, it rebuilds the *entire* dependency chain=20 of Mesa with GCC 10: glibc, bash, ed, python-minimal, guile=E2=80=A6 It's cool that Guix makes this task so easy, but you probably want=20 just ~$ guix build --with-c-toolchain=3Dmesa=3Dgcc-toolchain@10 mesa This special-case option will do the right things to rebuild=20 (only) mesa with the toolchain of your choice. Note the =3Dmesa=3D=20 difference in syntax: the package you want to rebuild, not the one=20 you want to replace: [=E2=80=A6] C compiler for the host machine: gcc (gcc 10.3.0 "gcc (GCC)=20 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)=20 10.3.0") C++ linker for the host machine: c++ ld.bfd 2.34 [=E2=80=A6] Not a user of PACKAGE-INPUT-REWRITING so I'll leave that to=20 someone else. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYLdSkQ0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15hsoBAJFxAb+x9rQg3bL8za42pr4FeDhNURhFJGggTcL3 /m/hAP48WhkEYJjb+D8u7YRt2r99BNoLhaqdRyXOvf0bcCdeAw== =K8QZ -----END PGP SIGNATURE----- --=-=-=--