From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iIeGHtbl8WBJHwAAgWs5BA (envelope-from ) for ; Fri, 16 Jul 2021 22: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 mp0 with LMTPS id MJcFGtbl8WDqDQAA1q6Kng (envelope-from ) for ; Fri, 16 Jul 2021 20: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 ABDE59E73 for ; Fri, 16 Jul 2021 22:02:29 +0200 (CEST) Received: from localhost ([::1]:58884 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m4U2W-0001dV-BU for larch@yhetil.org; Fri, 16 Jul 2021 16:02:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4U26-0001G1-KL for guix-patches@gnu.org; Fri, 16 Jul 2021 16:02:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40829) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m4U26-0006uJ-9F for guix-patches@gnu.org; Fri, 16 Jul 2021 16:02:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m4U26-0004y8-3l for guix-patches@gnu.org; Fri, 16 Jul 2021 16:02:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49565] [PATCH core-updates] 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: Fri, 16 Jul 2021 20: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: 49565@debbugs.gnu.org, Maxime Devos Received: via spool by 49565-submit@debbugs.gnu.org id=B49565.162646568819061 (code B ref 49565); Fri, 16 Jul 2021 20:02:02 +0000 Received: (at 49565) by debbugs.gnu.org; 16 Jul 2021 20:01:28 +0000 Received: from localhost ([127.0.0.1]:52375 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4U1Y-0004xN-5Z for submit@debbugs.gnu.org; Fri, 16 Jul 2021 16:01:28 -0400 Received: from mx.kolabnow.com ([95.128.36.40]:53536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4U1W-0004x9-7x for 49565@debbugs.gnu.org; Fri, 16 Jul 2021 16:01:27 -0400 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out003.mykolab.com (Postfix) with ESMTP id AAACC40D27; Fri, 16 Jul 2021 22:01:19 +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= 1626465679; x=1628280080; bh=fW8691an7LGRsoTaOAe5MwIUVy+LqehIJv7 HTZRNyb8=; b=qDZlizMx8evV3+ruo3PE5bVaggrO2v9bBhpcNBnjmWexsrp7+et PEXcBRD4RLZSPL+XfgEMaDOag+E87lxwLiV21olT0Uk9zhxrlnn60D2jtNrBH1MD cHTHhg7G/MtOn2LgPf6VobpsR5ieY9RG0N3f6iq2sc58sRH3Azt9N4e0j8Bt+6p7 za+eibC1ubwOkj+ypJvDQNywjD3RoLJ1vXKpeTpcw1BWcurGola1AIz6Ed6wZBdv 1AQ5nAT3IJVo3io5lroaTo2Tr5Yc2frcayKRCmOkkLkW1tOenUphp9j2OoyyxNav qSW++PKjoYeTQFH5Von4TJf24O9lX5DY8D1b2lYU5xPc3qu72WcymKyb5KTy0P9B 3Q+XXaVcm8RklHo3Us63OF+jUPezT9cxu/DFV1YHJR8h2tKtCqexc67ZmO9NrtRO HU+Noeguv1klnugoJyrT3fEUEcX2cfwBYwnZVFgr3D1azmoNzLk+VrmNqLVPgiMm ZBDukQ/2lPHYotTJSE5iHajc9FLWrwN8SO3ku/3HmZil2zXBdkXtcfQlyFx46GzE 1FKfxMc+kHOhmw46svvvrF6ILCa/Uk7DcEoGMGVU/lWAfx6AFYB2fthi/C03df1J NSttBYo1621Ml8kmmeH6Thoufz8u2UG5nKIW7t0+KKT1J6mYj4bvDHA8= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out003.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KZSAw5AdpeVP; Fri, 16 Jul 2021 22:01:19 +0200 (CEST) Received: from int-mx001.mykolab.com (unknown [10.9.13.1]) by ext-mx-out003.mykolab.com (Postfix) with ESMTPS id DD75340610; Fri, 16 Jul 2021 22:01:17 +0200 (CEST) Received: from ext-subm002.mykolab.com (unknown [10.9.6.2]) by int-mx001.mykolab.com (Postfix) with ESMTPS id 6015021E5; Fri, 16 Jul 2021 22:01:16 +0200 (CEST) Date: Fri, 16 Jul 2021 17:01:09 -0300 Message-ID: <38562486.AUsm6asf6Y@popigai> In-Reply-To: <27e26df84bc02d681b1ff0904bdd63dfa80313bf.camel@telenet.be> References: <20210715004613.763843-1-bauermann@kolabnow.com> <20210716013143.901859-1-bauermann@kolabnow.com> <27e26df84bc02d681b1ff0904bdd63dfa80313bf.camel@telenet.be> 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=1626465750; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=fW8691an7LGRsoTaOAe5MwIUVy+LqehIJv7HTZRNyb8=; b=t1px96z6io4cEezjxzQ3IBXrNMM9W0hODRtWACCx5OMQyCiVNQiH4N3PLM8/xMTV9sdk9Q qlV6h2uJ9ZyKke79wbFjsrsXxMHpT6/QF3yqS9IKgOPKP4CiSWAAyL+NIjzhgfQKjGLg6N +TuXqISZAa4A+bL15zu41ccM8r22FiNR9YCxdpziTaH+CbJyN3Le7uFcPIfhDbiwOBMXy8 ZtvmvnGU+LuLK6rzqvWCzUCgxfqwv3yxOVfZWhpycVKXYeq35cHzF3oAmFTHzixxTZMuCq YnWTElKDV2A83o8U97cN4aDYDWGimUpuYhbf//5B5edtR3QZc15duIxuvgRIqg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626465750; a=rsa-sha256; cv=none; b=DE9yhZLe3QKMtohpnpHerWIIlh22GeeYNb8Am93W/euRd+/fZgeFTl4geTJC6v6CFRzbkl 33PEjqf4eo4Famw5GZirqXaKZ41zaY8fTZSwFolYQLucJDlikZs+J32NqJATZYdZ8jHrjj OKvKPvEP1a2NjGvOYxUn4QxwpZEekS4ZAVvZiZvMffkN8YnLu+W8/byALP7zpZ82dghaZc B89bdHyY8Y2LSZI2MgCZTKwGJ72KPjFV5jF9d8CCh6W3MYhIR/lIDj3o2C7bRfMJUMyPKC 1gSP/Mo0WUpsOXqARoP/WUAcYRwgOG+/aaVnUEgUgUcWK01SP8gNPwmhYItAyA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=qDZlizMx; 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.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=qDZlizMx; 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: ABDE59E73 X-Spam-Score: -2.41 X-Migadu-Scanner: scn1.migadu.com X-TUID: Nme1uvIdBcWe Hello, Em sexta-feira, 16 de julho de 2021, =C3=A0s 05:20:20 -03, Maxime Devos escreveu: > Hi, >=20 > > diff --git a/gnu/packages/bootstrap.scm b/gnu/packages/bootstrap.scm > > index 5a8028a4652c..b14dc63062e8 100644 > > --- a/gnu/packages/bootstrap.scm > > +++ b/gnu/packages/bootstrap.scm > > @@ -927,7 +927,7 @@ exec ~a/bin/.gcc-wrapped -B~a/lib \ > >=20 > > (define (%bootstrap-inputs) > > =20 > > ;; The initial, pre-built inputs. From now on, we can start > > building our ;; own packages. > >=20 > > - (match (%current-system) > > + (match (or (%current-target-system) (%current-system)) > >=20 > > ((or "i686-linux" "x86_64-linux") > > =20 > > `(("linux-libre-headers" ,%bootstrap-linux-libre-headers) > > =20 > > ("bootstrap-mescc-tools" ,%bootstrap-mescc-tools) >=20 > This makes sense to me. > However, you may need to modify 'package-from-tarball' as well, > replacing > ("tarball" ,(bootstrap-origin (source (%current-system)))))) > with > ("tarball" ,(bootstrap-origin (source (or (%current-target-system) > (%current-system))))))) Thanks! I did that but it doesn=E2=80=99t work in this case because the =E2= =80=98source=E2=80=99 functions expect a Nix system string and =E2=80=98%current-target-system=E2= =80=99 is a GNU triplet string. After I defined a function which calls =E2=80=98gnu-triplet->nix-system=E2=80=99 on it, then it worked. This made me realize that all places which do `(or (%current-target-system) (%current-system))` have this inconsistency. I=E2=80=99m currently preparing a couple of patches to clean them up. > Could you verify the architecture of the binaries in the output > of "./pre-inst-env guix build gcc-toolchain@11 > --target=3Dpowerpc64le-linux-gnu", and its references (you can use "guix > gc --references /gnu/store/..." and objdump)? I can=E2=80=99t do that on the output because the GCC build fails =E2=80=93= which is what I originally set out to investigate when I stumbled on this problem. :-) I did a `guix build -K =E2=80=A6` and this is the result on the build direc= tory: =2D-8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix build \ -K \ --target=3Dpowerpc64le-linux-gnu \ gcc-toolchain@11 =E2=8B=AE =E2=8B=AE make[1]: *** [Makefile:11850: all-target-libstdc++-v3] Error 2 make[1]: Leaving directory '/tmp/guix-build-gcc-11.1.0.drv-0/build' make: *** [Makefile:962: all] Error 2 error: in phase 'build': uncaught exception: %exception #<&invoke-error program: "make" arguments: ("-j" "8" "CFLAGS=3D-= g0 -O2") exit-status: 2 term-signal: #f stop-signal: #f> phase `build' failed after 810.7 seconds command "make" "-j" "8" "CFLAGS=3D-g0 -O2" failed with status 2 note: keeping build directory `/tmp/guix-build-gcc-11.1.0.drv-0' builder for `/gnu/store/lw6xvva92vb6yrg5s73c6m507mmg4wpn-gcc-11.1.0.drv' fa= iled with exit code 1 build of /gnu/store/lw6xvva92vb6yrg5s73c6m507mmg4wpn-gcc-11.1.0.drv failed View build log at '/var/log/guix/drvs/lw/6xvva92vb6yrg5s73c6m507mmg4wpn-gcc= =2D11.1.0.drv.bz2'. cannot build derivation `/gnu/store/gnsdxz7r9l6d9wafwcms2dgz6hhi6gvn-gcc-to= olchain-11.1.0.drv': 1 dependencies couldn't be built guix build: error: build of `/gnu/store/gnsdxz7r9l6d9wafwcms2dgz6hhi6gvn-gc= c-toolchain-11.1.0.drv' failed $ 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 =2D-8<---------------cut here---------------end--------------->8--- The vast majority of the files are ppc64le. Of the x86-64 ones, 87 are in /tmp/guix-build-gcc-11.1.0.drv-0/build/build-x86_64-unknown-linux-gnu/ and 45 are in /tmp/guix-build-gcc-11.1.0.drv-0/build/gcc/build/. I=E2=80=99m not very familiar with GCC=E2=80=99s build system, so I can=E2= =80=99t say whether it=E2=80=99s expected to have it create these x86-64 objects, but I wouldn=E2=80=99t be = surprised if it needed to build some native auxiliaryprograms for the build process. Because there=E2=80=99s no finished output, I wasn=E2=80=99t able to check = for references. I can make a more conclusive test when this GCC cross build problem is fixe= d. =2D-=20 Thanks, Thiago