From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 21 20:32:33 2021 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 X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-10 required=5 tests=[BAYES_00=-1.9] autolearn=ham autolearn_force=no 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) From: Thiago Jung Bauermann To: Ludovic =?ISO-8859-1?Q?Court=E8s?= Subject: Re: bug#49565: [PATCH] gnu: glibc-headers-mesboot: Use %build-inputs in setenv phase 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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49565 Cc: 49565@debbugs.gnu.org, Maxime Devos X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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