From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SK67L8S8+GB5bwAAgWs5BA (envelope-from ) for ; Thu, 22 Jul 2021 02:33:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id qGsgK8S8+GCpOwAAbx9fmQ (envelope-from ) for ; Thu, 22 Jul 2021 00:33:08 +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 3442FCDAF for ; Thu, 22 Jul 2021 02:33:07 +0200 (CEST) Received: from localhost ([::1]:44308 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6MeA-0004ws-7U for larch@yhetil.org; Wed, 21 Jul 2021 20:33:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57204) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6Me5-0004wM-Us for guix-patches@gnu.org; Wed, 21 Jul 2021 20:33:01 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55709) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m6Me5-0005JW-NP for guix-patches@gnu.org; Wed, 21 Jul 2021 20:33:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m6Me5-0005jT-LJ for guix-patches@gnu.org; Wed, 21 Jul 2021 20:33:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49565] [PATCH] gnu: glibc-headers-mesboot: Use %build-inputs in setenv phase Resent-From: Thiago Jung Bauermann Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 22 Jul 2021 00:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49565 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 49565@debbugs.gnu.org, Maxime Devos Received: via spool by 49565-submit@debbugs.gnu.org id=B49565.162691395321997 (code B ref 49565); Thu, 22 Jul 2021 00:33:01 +0000 Received: (at 49565) by debbugs.gnu.org; 22 Jul 2021 00:32:33 +0000 Received: from localhost ([127.0.0.1]:39022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6Mdc-0005ij-TX for submit@debbugs.gnu.org; Wed, 21 Jul 2021 20:32:33 -0400 Received: from mx.kolabnow.com ([95.128.36.42]:30400) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6Mda-0005iW-Oq for 49565@debbugs.gnu.org; Wed, 21 Jul 2021 20:32:31 -0400 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out002.mykolab.com (Postfix) with ESMTP id C50E81336; Thu, 22 Jul 2021 02:32:24 +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= 1626913944; x=1628728345; bh=5B+8Xauoht9OrqIA5R0JrRWVy00CYTZ6DJg EbDUnZ38=; b=ve2eeEg6QrM268fu+BOrj8DrQdEkDrRj5Ou0n5thiXsBDIHCSKR 0orG6IsBfRI8yfz/vymI5uVfJpHwenaYsFnRlSx4IKfgM4wxIPtP24vhrvsK8+Ho wpz68xBI/SLjlawbGeYPSYRkpL1P4KJhsxAlUzjJU0HSNr0yBivpeSg+ol/7iqay p/s4HDT4LfOwzNGRTWkIGvP4zRznUXEPWkI1Rk0T0TQLvwHun1/IWiGfbLfrDiFF ASv2USxdvC34Xx9g8PyHLbvRWjF3Gk6tGG6Uu49usarmzQ+UFBh4tXm7l+uUugN2 FJUXNndM/+TbLokVK28ef/qP63XmechwdP3Fkpt6KS4JEnOYY/cZFFLrwjpBxcQB ArIyNFDbIRdYPAPIo95+v3KWxAjow6BWmLD8eLkz7ks5PSs9jhc3JM0xfYr/J33W uEhHf0tzC/T+iLOuOiIe0r68em0NU+qseCITr70I49Vd2ls2ztZHRGySTPIa1eEk 1lerjnbBPIg1CKsycz99lgiJskJkP4BxiC+YmuJQ3kzILkUQ6CfgYHDRXc62jaPu IAu9H0oY8cI4bgvhZ8FNP3CYJk19YK5arPSdfy1vzOYFCzXbCZDWSEG0NSRR/zxo m7MLPbFB1Yp2PL9O2xOmMWBQUv3s4kaQeBTxNw8P6pJlWpVvun4BxDsQ= 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 StbvPvxItYc3; Thu, 22 Jul 2021 02:32:24 +0200 (CEST) Received: from int-mx002.mykolab.com (unknown [10.9.13.2]) by ext-mx-out002.mykolab.com (Postfix) with ESMTPS id DE8988B8; Thu, 22 Jul 2021 02:32:23 +0200 (CEST) Received: from ext-subm001.mykolab.com (unknown [10.9.6.1]) by int-mx002.mykolab.com (Postfix) with ESMTPS id C1E514C02; Thu, 22 Jul 2021 02:32:22 +0200 (CEST) Date: Wed, 21 Jul 2021 21:32:16 -0300 Message-ID: <2955097.dfWu6T0S3y@popigai> In-Reply-To: <87k0lje38c.fsf_-_@gnu.org> References: <27e26df84bc02d681b1ff0904bdd63dfa80313bf.camel@telenet.be> <12914341.VykQ5r6Z2s@popigai> <87k0lje38c.fsf_-_@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Thiago Jung Bauermann X-ACL-Warn: , Thiago Jung Bauermann via Guix-patches From: Thiago Jung Bauermann via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626913988; h=from:from:sender:sender:reply-to: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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=5B+8Xauoht9OrqIA5R0JrRWVy00CYTZ6DJgEbDUnZ38=; b=kvAvEIqVI3DVejOXu2FWuVLu0MlF80DmSOw1kUFpAVxUyXfIkC0Q+DZQvzXeRd7bkeydI8 qCGt6hmwriSIQvTvWkuiKgtedHXA0598Aib61HuSx5sPUmYs94amxEkgG5Ci6q15A9hyND Zh+dGOZIOwFXu45abET5K6TmrggWFUu2s2P5a9DAgZWQG8ju8znWAJORvnPz54x1Ufhbo9 0mM/Pz3X8aHt4FzTuNoPqT0D9X5GZMMImkTZvyIGmyNhKhtxm4Vo3JQAI81D6oOMUYEvNC mCa4irGO4sUWbN1AYSpNWQaJV+PN4zcYQvOHp6K4ZVgdof97UDgcfVXHdTXq/Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626913988; a=rsa-sha256; cv=none; b=nrLRUMZJ0yNUN3y3m3kg8WSAS1AZ8v9MZrZjBoByRTElMWx+oAi05kHw/aonKqjLtAUgib +ll0Zc5uOSJ8Zv1m4Dn+otg6k6koat5SAyCXw3bVIsqSvLngXhk1vbkuEgSvfvqOlxBy7p 88gkRQPQ39SQuhuKmjEFy7QyRdxN++67BDkubo9rADzw9VvMTJcPyfJtPzgQExfYVNnVXi hLbi98Ul2u7gAlVBAOpU+8gBLzhwV6t2BAUZ6Ofj+covdvkf7a0Hqd/o5VyDLPXOKsCPIH M4AMcTw9jOjw8T//7r8pMegZ/7Tn9rTB1Ywgy6BWv/YdbWZL6SBKlFC6lBvZgA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=ve2eeEg6; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -2.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=ve2eeEg6; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 3442FCDAF X-Spam-Score: -2.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: MJPi3kyRss6e Hi Ludo=E2=80=99, Em quarta-feira, 21 de julho de 2021, =C3=A0s 19:01:07 -03, Ludovic Court= =C3=A8s escreveu: > Thiago Jung Bauermann skribis: > > $ ./pre-inst-env guix build --target=3Dpowerpc64le-linux-gnu > > gcc-toolchain@11 substitute: atualizando substitutos de > > "https://ci.guix.gnu.org"... 100.0% substitute: atualizando > > substitutos de "https://bordeaux.guix.gnu.org"... 100.0%>=20 > > The following derivations will be built: > > /gnu/store/8p847f47i8b7si24ybcah8936i698v0h-gcc-toolchain-11.1.0.drv > > /gnu/store/2qq0qdrkz6920gyn3xl4ppjqiijf8qh2-ld-wrapper-0.drv > > /gnu/store/59v10rbcl25bcbvgh1xip2k4b8dfrs8s-libatomic-ops-7.6.10.drv > > /gnu/store/2vv32wdv72734d54r85ahlxzddc37gdb-tar-boot0-1.34.drv > > /gnu/store/5h6sjkz0cw5yn77lf2x5i05wina2c2s1-sed-mesboot-4.0.6.drv > > /gnu/store/9baisja0i8z81cpx9bs8dp6bgwbf5hg2-gzip-mesboot-1.2.4.drv > > /gnu/store/aw84y6dbh7av5077dp9cgj3acqwychvs-xz-mesboot-5.0.0.drv > > /gnu/store/d9f9mqjpb0n8fplzplayc5fz9pwvka7f-grep-mesboot-2.0.drv >=20 > I think you hit a corner with =E2=80=98gcc-toolchain=E2=80=99. The packa= ges in > commencement.scm (*-boot0, *-mesboot, etc.) should never be > cross-compiled; they=E2=80=99re not meant to. If you find a command that= ends > up trying to cross-compile them, it means there=E2=80=99s a problem. My doubt was whether they were being cross-compiled, or Guix was building them natively as an intermediary step in the path to obtain a cross-toolchain. This patch: https://issues.guix.gnu.org/49565#11 allows gcc-toolchain@11 to be cross-compiled without going through mesboot packages =E2=80=93 or it would if bug 49600 didn=E2=80=99t get in the way. = Do you think it is correct? > What you want in this case is: >=20 > ./pre-inst-env guix build -e '(@ (gnu packages gcc) gcc-11)' \ > --target=3Dpowerpc64le-linux-gnu -n >=20 > That is going to build the right thing. Nice! I should have thought of it. > Why is =E2=80=98gcc-toolchain=E2=80=99 a special case? Precisely because= it pulls in > things from commencement.scm: =E2=80=98binutils-final=E2=80=99, =E2=80=98= glibc-final=E2=80=99, etc. >=20 > And why does it pull these =E2=80=98-final=E2=80=99 variants instead of t= he =E2=80=98binutils=E2=80=99, > =E2=80=98glibc=E2=80=99, etc. you ask? :-) That=E2=80=99s to save space= ; that way, you don=E2=80=99t > end up downloading/building another toolchain when you run > =E2=80=98guix install gcc-toolchain=E2=80=99. >=20 > I hope this clarifies things a bit! It does! Thank you very much for these clarifications. The pieces are still falling into place in my mind. =2D-=20 Thanks, Thiago