From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oOriMnaZ+GBpAQAAgWs5BA (envelope-from ) for ; Thu, 22 Jul 2021 00:02:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id IB2ALnaZ+GD7cgAAB5/wlQ (envelope-from ) for ; Wed, 21 Jul 2021 22:02:30 +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 80E818352 for ; Thu, 22 Jul 2021 00:02:30 +0200 (CEST) Received: from localhost ([::1]:52346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6KIP-0004v9-LY for larch@yhetil.org; Wed, 21 Jul 2021 18:02:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38192) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6KHy-0004bx-St for guix-patches@gnu.org; Wed, 21 Jul 2021 18:02:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55556) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m6KHy-0005J2-Kd for guix-patches@gnu.org; Wed, 21 Jul 2021 18:02:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m6KHy-0005jp-B3 for guix-patches@gnu.org; Wed, 21 Jul 2021 18:02:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49565] [PATCH] gnu: glibc-headers-mesboot: Use %build-inputs in setenv phase Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 21 Jul 2021 22:02:02 +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: Thiago Jung Bauermann Cc: 49565@debbugs.gnu.org, Maxime Devos Received: via spool by 49565-submit@debbugs.gnu.org id=B49565.162690487919968 (code B ref 49565); Wed, 21 Jul 2021 22:02:02 +0000 Received: (at 49565) by debbugs.gnu.org; 21 Jul 2021 22:01:19 +0000 Received: from localhost ([127.0.0.1]:38869 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6KHG-0005Bd-St for submit@debbugs.gnu.org; Wed, 21 Jul 2021 18:01:19 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6KHE-00054q-OS for 49565@debbugs.gnu.org; Wed, 21 Jul 2021 18:01:17 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35732) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6KH7-0004jB-Nh; Wed, 21 Jul 2021 18:01:09 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=45284 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6KH6-0003A2-Sn; Wed, 21 Jul 2021 18:01:09 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <27e26df84bc02d681b1ff0904bdd63dfa80313bf.camel@telenet.be> <20210720000133.1619640-1-bauermann@kolabnow.com> <10364598.u94UDZUMEq@popigai> <12914341.VykQ5r6Z2s@popigai> Date: Thu, 22 Jul 2021 00:01:07 +0200 In-Reply-To: <12914341.VykQ5r6Z2s@popigai> (Thiago Jung Bauermann's message of "Wed, 21 Jul 2021 17:30:33 -0300") Message-ID: <87k0lje38c.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626904950; 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: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; bh=UeaLB7rqc5rLhsjflMPQAC4bELDagoyYM/iB+y1sRJ8=; b=Ri1/CJzx3AvQNYOO6094ryVzAEZhbE0nTZfbFiDPbip+goLk9fT96kBVLxtP+/3rz9pOeh W7NDhwMKfivjaWsFBlGQjYHH7wL+6BlZqja0ZCLbmNk7H/6ljPo0EUSiVJ2MJTYs/LUnpi J+AQxRkVwGCuQ/6rml/3T7hPUTJhctOhUyeFXW3Hh6dKFdWlUi5lTm7201Q8kAqfZiKNtc Q4eJCzcjgkwxQon/AVJUdp2WVMt+z/s8S+f9Nz7MffYSVtpZSRB2H+IOoXBKjMXVOLhhFf LNN1925u0z0dMJaN+vY1a+WONDnr/vxeJbBnjyR8hd5pxS4SHxNqJ23ffBqveg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626904950; a=rsa-sha256; cv=none; b=bRjuzYiwIgzR0k1DCbxqeE+iDmmKPgrysixYv6aAqZkwtxEQB9ZqsxPI0ihq8HsOay3Rn3 bIXRjpUjlw3CKUbD4u6nIvFpwmJn16/ZkDWfea6WMwWLyfBNTPzmxCvNRLn5ApjQUin7GO E0GdIDjYCnl9nN+XyI7b013tYHpb5LG+Rbz6/bNx7XMXPRJ1RFtOIzyCHe+1m/VC8axgwL jYylRJ9AvrhAs/ouz2tYo7IhaQAnR+P9zS22VZyFf65kOtZexkwHlUmfNEg2mKnQnY5fZC MAoMbYhVQuMHTtP6RYvAVJWb8yULKx6VisbG+m8NWDhbpY61tJe14CefiH48QQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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.92 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: 80E818352 X-Spam-Score: -2.92 X-Migadu-Scanner: scn1.migadu.com X-TUID: N1VUvMhB4Uee Hi! Thiago Jung Bauermann skribis: > $ ./pre-inst-env guix build --target=3Dpowerpc64le-linux-gnu gcc-toolchai= n@11 > substitute: atualizando substitutos de "https://ci.guix.gnu.org"... 100.0% > substitute: atualizando substitutos de "https://bordeaux.guix.gnu.org"...= 100.0% > 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 I think you hit a corner with =E2=80=98gcc-toolchain=E2=80=99. The package= s in commencement.scm (*-boot0, *-mesboot, etc.) should never be cross-compiled; they=E2=80=99re not meant to. If you find a command that e= nds up trying to cross-compile them, it means there=E2=80=99s a problem. What you want in this case is: ./pre-inst-env guix build -e '(@ (gnu packages gcc) gcc-11)' \ --target=3Dpowerpc64le-linux-gnu -n That is going to build the right thing. Why is =E2=80=98gcc-toolchain=E2=80=99 a special case? Precisely because i= t pulls in things from commencement.scm: =E2=80=98binutils-final=E2=80=99, =E2=80=98gl= ibc-final=E2=80=99, etc. And why does it pull these =E2=80=98-final=E2=80=99 variants instead of the= =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. I hope this clarifies things a bit! Ludo=E2=80=99.