From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 20 09:16:32 2021 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 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-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) From: Thiago Jung Bauermann To: 49565@debbugs.gnu.org Subject: Re: [PATCH core-updates v2] gnu: bootstrap: Use %current-target-system to decide bootstrap path 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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49565 Cc: 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 (-) 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