From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 11 18:02:04 2020 Received: (at submit) by debbugs.gnu.org; 11 Jul 2020 22:02:04 +0000 Received: from localhost ([127.0.0.1]:44999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1juNZM-00046M-5b for submit@debbugs.gnu.org; Sat, 11 Jul 2020 18:02:04 -0400 Received: from lists.gnu.org ([209.51.188.17]:48750) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1juNZI-00045w-Qm for submit@debbugs.gnu.org; Sat, 11 Jul 2020 18:02:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50892) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1juNZI-0006nK-Ja for bug-guix@gnu.org; Sat, 11 Jul 2020 18:02:00 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60471) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1juNZH-0005Yl-7y; Sat, 11 Jul 2020 18:02:00 -0400 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=33752 helo=dundal.peder.onsbrabantnet.nl) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1juNZE-0007Tj-VR; Sat, 11 Jul 2020 18:01:58 -0400 From: Jan Nieuwenhuizen To: bug-guix@gnu.org Subject: Offload build to Childhurd selects linux-libre-headers Organization: AvatarAcademy.nl X-Url: http://AvatarAcademy.nl Date: Sun, 12 Jul 2020 00:01:54 +0200 Message-ID: <87tuydemnh.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit 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: -3.3 (---) --=-=-= Content-Type: text/plain Hi! The offload build works, yay!...all the way up to --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix build --system=i586-gnu \ -e '(@@ (gnu packages commencement) glibc-final-with-bootstrap-bash)' /gnu/store/cah6lzl8cxdhfink3a1ij0m1p5vk66kw-glibc-intermediate-2.31-debug /gnu/store/i7l6dnq6br3jg5qzhfssrp11mg499d2b-glibc-intermediate-2.31 /gnu/store/lr2ymww5imjl3hxrzyc7dmsadw7dxbdh-glibc-intermediate-2.31-static --8<---------------cut here---------------end--------------->8--- With static-bash-for-glibc, however, it goes off track --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix build --system=i586-gnu \ -e '(@@ (gnu packages commencement) static-bash-for-glibc)' The following derivations will be built: /gnu/store/gv40jpz4g0hbia28wa6d50z9x6ncgdlh-bash-static-5.0.16.drv /gnu/store/apj2ihazv6x3anhvfvmmqrkyak05p9yc-gcc-cross-boot0-wrapped-7.5.0.drv /gnu/store/yfpy5b3xqkarxchyhi339fw2ldwczj1d-linux-libre-headers-5.4.20.drv --8<---------------cut here---------------end--------------->8--- ...oops! Note that a native build on the Childhurd works all the way up to "hello". The "glibc-final-with-bootstrap-bash" has a propagated-inputs that looks like this --8<---------------cut here---------------start------------->8--- (define* (kernel-headers-boot0 #:optional (system (%current-system))) (match system ("i586-gnu" hurd-core-headers-boot0) (_ linux-libre-headers-boot0))) (define glibc-final-with-bootstrap-bash [..] (propagated-inputs `(("kernel-headers" ,(kernel-headers-boot0)))) [..]) --8<---------------cut here---------------end--------------->8--- In KERNEL-HEADERS-BOOT0, SYSTEM is "x86_64-linux". Passing SYSTEM from a LET-SYSTEM clause (see attached patch) seems to fix this...but i'm afraid that triggers a world rebuild. Our offload Childhurds can only run master, right? Is there any way around this? Thoughts? Greetings, --a-mildly-disappointed-- Janneke --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-commencement-glibc-final-with-bootstrap-bash-Fix-ker.patch Content-Transfer-Encoding: quoted-printable >From 28bdd162e5430517df3957b8454c49d037d684ba Mon Sep 17 00:00:00 2001 From: "Jan (janneke) Nieuwenhuizen" Date: Sat, 11 Jul 2020 22:44:39 +0200 Subject: [PATCH] commencement: glibc-final-with-bootstrap-bash: Fix kernel-headers. Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=3DUTF-8 * gnu/packages/commencement.scm (glibc-final-with-bootstrap-bash) [propagated-inputs]: Use let-system to pass correct system kernel-headers-boot0. --- gnu/packages/commencement.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm index d0393ebe25..518ffd0bd8 100644 --- a/gnu/packages/commencement.scm +++ b/gnu/packages/commencement.scm @@ -49,6 +49,7 @@ #:use-module (gnu packages pkg-config) #:use-module (gnu packages rsync) #:use-module (gnu packages xml) + #:use-module (guix gexp) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system gnu) @@ -3298,7 +3299,8 @@ memoized as a function of '%current-system'." "export CPATH\n" all "\n"))) #t))))))) - (propagated-inputs `(("kernel-headers" ,(kernel-headers-boot0)))) + (propagated-inputs `(("kernel-headers" ,(let-system (system target) + (kernel-headers-boot0 system= ))))) (native-inputs `(("bison" ,bison-boot0) ("texinfo" ,texinfo-boot0) --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 13 10:50:06 2020 Received: (at control) by debbugs.gnu.org; 13 Jul 2020 14:50:06 +0000 Received: from localhost ([127.0.0.1]:49035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1juzmP-0001L8-SH for submit@debbugs.gnu.org; Mon, 13 Jul 2020 10:50:06 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43270) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1juzmM-0001KV-7b for control@debbugs.gnu.org; Mon, 13 Jul 2020 10:50:04 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37360) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1juzmG-0005Pu-V1 for control@debbugs.gnu.org; Mon, 13 Jul 2020 10:49:56 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=35086 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1juzmF-0007hW-W3 for control@debbugs.gnu.org; Mon, 13 Jul 2020 10:49:56 -0400 Date: Mon, 13 Jul 2020 16:49:53 +0200 Message-Id: <877dv7o4fi.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #42327 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control 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: -3.3 (---) retitle 42327 '%current-system' value influences 'bag-transitive-inputs' quit From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 13 10:52:11 2020 Received: (at 42327-done) by debbugs.gnu.org; 13 Jul 2020 14:52:11 +0000 Received: from localhost ([127.0.0.1]:49039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1juzoR-0001OV-9T for submit@debbugs.gnu.org; Mon, 13 Jul 2020 10:52:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1juzoP-0001OG-A4 for 42327-done@debbugs.gnu.org; Mon, 13 Jul 2020 10:52:09 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37497) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1juzoK-00063l-1L; Mon, 13 Jul 2020 10:52:04 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=35088 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1juzoJ-00086J-F9; Mon, 13 Jul 2020 10:52:03 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Jan Nieuwenhuizen Subject: Re: bug#42327: Offload build to Childhurd selects linux-libre-headers References: <87tuydemnh.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 26 Messidor an 228 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 13 Jul 2020 16:52:02 +0200 In-Reply-To: <87tuydemnh.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Sun, 12 Jul 2020 00:01:54 +0200") Message-ID: <875zaro4bx.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 42327-done Cc: 42327-done@debbugs.gnu.org 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: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi! Jan Nieuwenhuizen skribis: > With static-bash-for-glibc, however, it goes off track > > $ ./pre-inst-env guix build --system=3Di586-gnu \ > -e '(@@ (gnu packages commencement) static-bash-for-glibc)' > The following derivations will be built: > /gnu/store/gv40jpz4g0hbia28wa6d50z9x6ncgdlh-bash-static-5.0.16.drv > /gnu/store/apj2ihazv6x3anhvfvmmqrkyak05p9yc-gcc-cross-boot0-wrapped-7.= 5.0.drv > /gnu/store/yfpy5b3xqkarxchyhi339fw2ldwczj1d-linux-libre-headers-5.4.20= .drv > > > ...oops! Note that a native build on the Childhurd works all the way up > to "hello". > > The "glibc-final-with-bootstrap-bash" has a propagated-inputs that looks > like this > > (define* (kernel-headers-boot0 #:optional (system (%current-system))) > (match system > ("i586-gnu" hurd-core-headers-boot0) > (_ linux-libre-headers-boot0))) > > (define glibc-final-with-bootstrap-bash > [..] > (propagated-inputs `(("kernel-headers" ,(kernel-headers-boot0)))) > [..]) > > In KERNEL-HEADERS-BOOT0, SYSTEM is "x86_64-linux". Passing SYSTEM from > a LET-SYSTEM clause (see attached patch) seems to fix this...but i'm > afraid that triggers a world rebuild. Our offload Childhurds can only > run master, right? Is there any way around this? Thoughts? Here=E2=80=99s my powerful debugging trick for such dynamic binding issues = (it=E2=80=99s not related to offloading): --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm index d0393ebe25..5ec7facd02 100644 --- a/gnu/packages/commencement.scm +++ b/gnu/packages/commencement.scm @@ -3116,6 +3116,9 @@ memoized as a function of '%current-system'." ,@(%boot0-inputs))))) (define* (kernel-headers-boot0 #:optional (system (%current-system))) + (when (string=? system "x86_64-linux") + (pk system) + (display-backtrace (make-stack #t) (current-error-port) #f 80)) (match system ("i586-gnu" hurd-core-headers-boot0) (_ linux-libre-headers-boot0))) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable That gives me this: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix build -s i586-gnu hello -d --no-grafts ;;; ("x86_64-linux") In ice-9/boot-9.scm: 1736:10 30 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) In unknown file: 29 (apply-smob/0 #) In ice-9/boot-9.scm: 718:2 28 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 27 (_ #(#(#))) In guix/ui.scm: 1953:12 26 (run-guix-command _ . _) 663:2 25 (call-with-error-handling _) In ice-9/boot-9.scm: 1736:10 24 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) 1731:15 23 (with-exception-handler # _ #:unwind? _ # _) In guix/status.scm: 776:4 22 (call-with-status-report _ _) In ice-9/boot-9.scm: 1736:10 21 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) In guix/store.scm: 631:22 20 (thunk) 1299:8 19 (call-with-build-handler # =E2=80=A6) In guix/scripts/build.scm: 925:2 18 (_) In ice-9/boot-9.scm: 1731:15 17 (with-exception-handler # _ #:unwind? _ # _) 1736:10 16 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) In guix/ui.scm: 440:6 15 (_) In guix/scripts/build.scm: 927:5 14 (_) In srfi/srfi-1.scm: 673:15 13 (append-map # ("i586-gnu")) 586:17 12 (map1 ("i586-gnu")) In guix/scripts/build.scm: 929:20 11 (_ _) In guix/store.scm: 1340:2 10 (map/accumulate-builds #= _ _) In srfi/srfi-1.scm: 586:17 9 (map1 (#)) In guix/store.scm: 1299:8 8 (call-with-build-handler # _) In guix/scripts/build.scm: 888:18 7 (_ _) In guix/packages.scm: 1075:16 6 (package-derivation _ # _ #:graft? _) 1393:22 5 (thunk) 927:4 4 (bag->derivation # #< name: "hello-2.10" system: "i586-=E2=80=A6> =E2=80=A6) 812:23 3 (transitive-inputs _) In gnu/packages/commencement.scm: 3304:44 2 (propagated-inputs #) 3121:23 1 (kernel-headers-boot0 _) In unknown file: 0 (make-stack #t) --8<---------------cut here---------------end--------------->8--- At that point, it looks like a d=C3=A9j=C3=A0-vu to me. :-) Should be fixed with efb10f175fa6323024aa471c58ea1da445085298. Thanks, Ludo=E2=80=99. --=-=-=-- From unknown Sat Sep 13 23:21:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 11 Aug 2020 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator