From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WH7+B2jN9mAMSAEAgWs5BA (envelope-from ) for ; Tue, 20 Jul 2021 15:19:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id OOe5A2jN9mAlXwAAB5/wlQ (envelope-from ) for ; Tue, 20 Jul 2021 13:19:36 +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 62344B825 for ; Tue, 20 Jul 2021 15:19:35 +0200 (CEST) Received: from localhost ([::1]:56664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m5peo-0001US-D6 for larch@yhetil.org; Tue, 20 Jul 2021 09:19:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5pcM-0004w8-PG for guix-patches@gnu.org; Tue, 20 Jul 2021 09:17:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49903) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m5pcM-00052v-GL for guix-patches@gnu.org; Tue, 20 Jul 2021 09:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m5pcM-000758-Af for guix-patches@gnu.org; Tue, 20 Jul 2021 09:17:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49565] [PATCH core-updates v2] gnu: bootstrap: Use %current-target-system to decide bootstrap path Resent-From: Thiago Jung Bauermann Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 20 Jul 2021 13:17: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: 49565@debbugs.gnu.org Cc: Maxime Devos Received: via spool by 49565-submit@debbugs.gnu.org id=B49565.162678699227178 (code B ref 49565); Tue, 20 Jul 2021 13:17:02 +0000 Received: (at 49565) by debbugs.gnu.org; 20 Jul 2021 13:16:32 +0000 Received: from localhost ([127.0.0.1]:33214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5pbs-00074H-6G for submit@debbugs.gnu.org; Tue, 20 Jul 2021 09:16:32 -0400 Received: from mx.kolabnow.com ([95.128.36.41]:8616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5pbo-00073v-9S for 49565@debbugs.gnu.org; Tue, 20 Jul 2021 09:16:31 -0400 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out001.mykolab.com (Postfix) with ESMTP id E9285B9A; Tue, 20 Jul 2021 15:16:21 +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= 1626786981; x=1628601382; bh=hNaCmBgN9X2DHqeoR6WM7PR7Fi6TtIm5apF ky9m1Wuw=; b=UrfyyIn2Kov79MAC7iMN3kFEJmxpKM23TRXWTy0cfVjVzdF+fiM RzjmZoNozS4C5WaCfT/fn+dTY/k0XZFENKQEOqXpT+iW8rcFJ8PN3365CHgMIa4V aS1GyBRaUB84XjOWTcvD9ZsK5ceX3eNtlP68Kf1Tk3kw3NxL7759ZAx2U8Vcj9r3 CIDVyeVM3N+yZPL+XDwb/exMoJ3LYN4gru77ZvGtFhOw1B1/dR3r+xcxGhyh46OM KvMwbyPhwkISzkfJQl8QUG1Ok3bMdXaNC0M4pb39KFhANEaHSyQJbC99jd6H7X0R SzbhGVGQhx18z1W51Xo0BKMhouiTazSrZLblmsjD29qJORU6z+HQhxOxTgqyzCUz rYHXZG50hqPIsQtn2aQTlV7Tqr/bndI6ruDAUzPtEn3dPUYqrkchxnBd9K/4GbrJ Rsn4TobwEWvKg2ecInaScW9UjSke5moEPOHjEoegFlZuskeqmzCxJIAaJUnzu4E7 yqhlefyUJH75lUS+S99hWaT31vsOtkH/d/nLgl5Fn551H3wfxy8sLbq2OFnYGKn9 mY/7kS+7Y31H2LhMS0nlfldXl8TR4bWRg/+sGCzXrOMrsB+rURD3zberB4vIBHGl fIVKrXoCkvcQ5n9TZ6o/vPYRDaA2Q22s0EC5u4+1zhkLgHH1a3dK0its= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out001.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l3l5JjAXJRqN; Tue, 20 Jul 2021 15:16:21 +0200 (CEST) Received: from int-mx003.mykolab.com (unknown [10.9.13.3]) by ext-mx-out001.mykolab.com (Postfix) with ESMTPS id DA6FD499; Tue, 20 Jul 2021 15:16:19 +0200 (CEST) Received: from ext-subm002.mykolab.com (unknown [10.9.6.2]) by int-mx003.mykolab.com (Postfix) with ESMTPS id ECE0D4105; Tue, 20 Jul 2021 15:16:18 +0200 (CEST) Date: Tue, 20 Jul 2021 10:16:12 -0300 Message-ID: <10364598.u94UDZUMEq@popigai> In-Reply-To: <20210720000133.1619640-1-bauermann@kolabnow.com> References: <27e26df84bc02d681b1ff0904bdd63dfa80313bf.camel@telenet.be> <20210720000133.1619640-1-bauermann@kolabnow.com> 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=1626787175; 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=hNaCmBgN9X2DHqeoR6WM7PR7Fi6TtIm5apFky9m1Wuw=; b=NKI0brGl1B7jKUM+BUC9mA2dTRlWPdiY9gSed+Wvpli46/5FJE5L5XKujp+CJ0ExA6U9EN rcxV+f7JjIJaOed5NCIx3BkbDRA568l6yK/MqKVgN4JxtV4YmLgTrssqMzgriBjVVN/MOi zv1VIUsYcvvt2RGKzJY3IlnXE+1o5REVTaLd3W5ZdiyBopK5OcPxL3Ekwz6GcsT2uA6y95 t9sfqpzgmmEwUBNIQi7KeHLYmARkXx6fZomoF9kVmpd0L7XZmY5ay/RscZJEKIN0Uw/Cna 1WmZT2R0KTbgYJf5fgAkwnj7565G23MpfYjncM5E9cZ1JPDRsmTci4OU84BvKA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626787175; a=rsa-sha256; cv=none; b=d3Gz/KpZ9z0Bj0fI76ml43sM3oUDHmpqToLNJQt3jW1ZuGvP+q+1nAtceTGthT3Fewxu17 9qnhkkw9dYh8MO+1aq/r2NLEZLMULe4xpwiDkkwN+RoMFjB0SoPAj4ONbm98THqnG5vJfU 8y+tqPaWlNe22YoGGyXM3Zp0npQ5U6SGCBwfdQ0Fj3GFo1caqBWzOH2jTZsGEzm7eurtTO 3h8KoJTcGFalCRLhB7b+n3HnFCwmVvGU1w/qYPn3D1uLrq9X8k60b60bpIiI0x4DmpPDjn Fcc3DW23xIKqUrB98K3v91No5kZrFQQ/rfWLbdwGHKWLD6RBoHS9j5AJKrL2hQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=UrfyyIn2; 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=UrfyyIn2; 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: 62344B825 X-Spam-Score: -2.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: OMXCDBCZXCoF Hello, Em segunda-feira, 19 de julho de 2021, =C3=A0s 21:01:33 -03, Thiago Jung Bauermann escreveu: > Before the patch, these are the derivations that Guix tries to build when > cross-compiling gcc-toolchain@11. Note the =E2=80=98mesboot=E2=80=99 pack= ages: One thing I forgot to mention, and which significance only dawned on me later: there was a change in Guix behavior between versions of core-updates since I posted v1 of this patch. Before, I was getting a Guix exception during the build of glibc-mesboot, as detailed in the first message in this issue. Now, the mesboot packages build fine and the command below goes all the way to the gcc-11 package just like when this patch is applied. > --8<---------------cut here---------------start------------->8--- > $ ./pre-inst-env guix build --target=3Dpowerpc64le-linux-gnu gcc-toolchai= n@11 > substitute: atualizando substitutos de "https://ci.guix.gnu.org"... 100.0= %=20 > substitute: atualizando substitutos de "https://bordeaux.guix.gnu.org"...= 100.0% > The following derivations will be built: > /gnu/store/3hrzq7fxj0cxgxkjybki2yi7dj70sgg8-gcc-toolchain-11.1.0.drv > /gnu/store/2xpiffvzzizrjx48ghqac3rgh1cnljv7-linux-libre-headers-5.10.35.d= rv > /gnu/store/4xlm78m6wl56gn4gpifvy8721amhi81j-binutils-2.36.1.drv > /gnu/store/05lnycy4lmn0768r41sgikg795zk9mqg-binutils-cross-boot0-2.36.1.d= rv > /gnu/store/1q62fcaj2gc9mnwvv6cicch6gc7qrnp0-binutils-mesboot-2.20.1a.drv > /gnu/store/1yjrfb846y1mnc7mgab38jbv7pv0hgbh-tar-boot0-1.34.drv > /gnu/store/9c7a2p899ivz16636prf44q0q61i4376-patch-mesboot-2.5.9.drv > /gnu/store/9rmnv55i966wfkx0di4h6p8197hy2836-grep-mesboot-2.0.drv > /gnu/store/advn8cgpcf9fi6424l8bs16r5mvfqs04-gcc-mesboot-wrapper-4.9.4.drv > /gnu/store/bpghw1m585q2wjc0z4in9w0hcpxgiidw-gzip-mesboot-1.2.4.drv > /gnu/store/bx9lr1bg5491dc9i5p2b6zgsq0ahajxb-gcc-mesboot-4.9.4.drv > /gnu/store/dfijxa9mnlymzmsl571qlxx0qc65kxzi-tar-mesboot-1.22.drv > /gnu/store/hp2f5sw9d189p7z930b63wr8k3j9k6j0-coreutils-mesboot-8.32.drv > /gnu/store/i584nxkb39n67vzq5r3yh6spqppzrj43-bzip2-mesboot-1.0.8.drv > /gnu/store/j1accym68y6l8pxz8095jpkwgp3ciphi-gawk-mesboot-3.1.8.drv > /gnu/store/jlwyxh3k6hvpmy60g0ygwnncq66kn590-gash-utils-boot-0.1.0.drv > /gnu/store/9mxvccmf0b8fwq0k7lw0ndsdsbz9y8vn-gash-boot-0.2.0.drv > /gnu/store/p43yklj8d615y68jhcvycg9i3k3bqj2g-xz-mesboot-5.0.0.drv > /gnu/store/rxn5c166a6p0p3y2hlyk67f91a504kfa-make-mesboot-3.82.drv > /gnu/store/sgwdni3iwwrb4ahsnwm43528fzr5csiv-sed-mesboot-4.0.6.drv > /gnu/store/xxaccspqlg90v3cxrbvslva6s8gwxzi9-make-boot0-4.3.drv > /gnu/store/zghmr1xyw5ip3wpi1qw2ysc7p6i75d54-glibc-mesboot-2.16.0.drv > /gnu/store/64cway6pvw5fk7csym2k9i77rhp1pl46-coreutils-boot0-8.32.drv > /gnu/store/7hvyky0i1hf3xbd698rr305br881pwz6-diffutils-boot0-3.7.drv > /gnu/store/hq1lijdac3vqx811jzsg0wizsbgwgpaa-gawk-boot0-5.1.0.drv > /gnu/store/i173n23qpssi7idck4jn7399bfkldlfs-sed-boot0-4.8.drv > /gnu/store/l8kbhm6m9rbwkxn7zv1d06wbl2gi88wp-findutils-boot0-4.8.0.drv > /gnu/store/pfq7g9jx16jlk3829312h88n0k1jnfns-patch-boot0-2.7.6.drv > /gnu/store/qp3yg441ybh6bv44lrcxyp6rzyf0djii-file-boot0-5.39.drv > /gnu/store/x4m7lff1ps5mas719815d54x6x1zwcv3-bzip2-boot0-1.0.8.drv > /gnu/store/h5hwcnr7z57hb9b8bhhx7s22kfawqr0d-ld-wrapper-boot0-0.drv > /gnu/store/v9p5fm974mj4d99vdpp9dhrvpwd4kfgs-glibc-2.33.drv > /gnu/store/0kjyjcxzk5mv6zm86x8f18sbsb9m48k8-bash-static-5.1.8.drv > /gnu/store/6h220skb9ak8ppv5417i8cbry1byv73a-glibc-intermediate-2.33.drv > /gnu/store/rwczga96661d70jcqds8w8pr5s084mh4-gcc-cross-boot0-10.3.0.drv Also, inspecting this gcc-cross-boot0 derivation, I see the following derivations mentioned in it: /gnu/store/034y7d9d36986pin4b5plx2ryda1h8i5-glibc-cross-powerpc64le-linux-g= nu-2.33.drv /gnu/store/0gihg5kfh4m09hmc45kwf7kjnv1m84gz-gcc-cross-powerpc64le-linux-gnu= =2D10.3.0.drv /gnu/store/4ld0jqb2q0di90nizv1vvfngnm39mhln-binutils-cross-powerpc64le-linu= x-gnu-2.36.1.drv /gnu/store/m7ddjasnrl290002kql8szh7ahjvl2ir-linux-libre-headers-cross-power= pc64le-linux-gnu-5.10.35.drv And looking at the gcc-11 build directory, I see: ``` $ find /tmp/guix-build-gcc-11.1.0.drv-0 -name '*.o' -exec file '{}' ';' | c= ut -d: -f2 | sort | uniq -c 3 ELF 64-bit LSB relocatable, 64-bit PowerPC or cisco 7500, version = 1 (GNU/Linux), with debug_info, not stripped 235 ELF 64-bit LSB relocatable, 64-bit PowerPC or cisco 7500, version = 1 (SYSV), not stripped 1496 ELF 64-bit LSB relocatable, 64-bit PowerPC or cisco 7500, version = 1 (SYSV), with debug_info, not stripped 118 ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped 14 ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), with debug_i= nfo, not stripped ``` Which is the exact same output I see with the failed gcc-11 build directory when this patch is applied. So now I wonder whether these mesboot derivations are just used to bootstrap x86_64 packages which are then used to build the cross-toolchain, in which case this patch isn=E2=80=99t actually necessary? > /gnu/store/cglgsds6hxy9swdyymgam9l3rfwizyfr-libstdc++-boot0-4.9.4.drv > /gnu/store/c63lqgh0x2rx1az0ds4b2ma9vgiry31j-gcc-11.1.0.drv > /gnu/store/f4fwnxsha5h2pk750r2p09cnhbhc3nm3-ld-wrapper-0.drv > /gnu/store/605p0jq8wv879n3y6fbqxvaiww1kjaql-libunistring-0.9.10.drv > /gnu/store/5irbp0c5zzvs50wlznpfxcxr8mfndwy9-gcc-10.3.0.drv > /gnu/store/byfbnlkwj9pjwnkx69fi2ycnqdvz2znv-ld-wrapper-boot3-0.drv > /gnu/store/fbm3gv13nggw2qcvxmlccqgi0izzgdwn-libstdc++-10.3.0.drv > /gnu/store/vhwmw9p8l3sysqlm8bh14xkfw1afqqcj-zlib-1.2.11.drv > /gnu/store/60jiv5k1lg2krj3b0f9x7f26ywrda0mw-bash-minimal-5.1.8.drv > /gnu/store/i0lk6zd2vwqqlhn8kkf0529x896lnzr1-guile-3.0.7.drv > /gnu/store/r25wjwjbb13yk8yc4bm77dxxcq9qvx9y-libatomic-ops-7.6.10.drv > /gnu/store/ry3zxxjsnhpdphvnnr991x9yk7gljxy9-libffi-3.3.drv > /gnu/store/y26kx37mkidni8jj4sjn0ryy1wq1pqvs-libgc-8.0.4.drv > /gnu/store/v9p5fm974mj4d99vdpp9dhrvpwd4kfgs-glibc-2.33.drv > --8<---------------cut here---------------end--------------->8--- =2D-=20 Thanks, Thiago