GNU bug report logs - #38069
[PATCH]: Adjust make-bootstrap linux headers

Previous Next

Package: guix-patches;

Reported by: Efraim Flashner <efraim <at> flashner.co.il>

Date: Tue, 5 Nov 2019 12:57:01 UTC

Severity: normal

Tags: patch

Merged with 38194

Done: Efraim Flashner <efraim <at> flashner.co.il>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 38069 in the body.
You can then email your comments to 38069 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#38069; Package guix-patches. (Tue, 05 Nov 2019 12:57:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Efraim Flashner <efraim <at> flashner.co.il>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 05 Nov 2019 12:57:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: guix-patches <at> gnu.org
Subject: [PATCH]: Adjust make-bootstrap linux headers
Date: Tue, 5 Nov 2019 14:56:33 +0200
[Message part 1 (text/plain, inline)]
I was experimenting with creating bootstrap-tarballs for powerpc-linux
and it turns out that 'a.out.h' is no longer in the linux headers.


-- 
Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[0001-make-bootstrap-Adjust-copied-linux-headers.patch (text/plain, attachment)]
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#38069; Package guix-patches. (Wed, 13 Nov 2019 22:15:02 GMT) Full text and rfc822 format available.

Message #8 received at 38069 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Efraim Flashner <efraim <at> flashner.co.il>
Cc: 38069 <at> debbugs.gnu.org
Subject: Re: [bug#38069] [PATCH]: Adjust make-bootstrap linux headers
Date: Wed, 13 Nov 2019 23:14:29 +0100
Hello,

Efraim Flashner <efraim <at> flashner.co.il> skribis:

> I was experimenting with creating bootstrap-tarballs for powerpc-linux
> and it turns out that 'a.out.h' is no longer in the linux headers.

It works for me though:

--8<---------------cut here---------------start------------->8---
$ guix build -e '(@@ (gnu packages make-bootstrap) %linux-libre-headers-stripped)'
/gnu/store/bz4g5bh2mkihh1w38qg99phlnl7drfv3-linux-libre-headers-stripped-4.19.56
$ guix describe
Generacio 115	Nov 11 2019 21:33:10	(nuna)
  guix a2161c8
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: a2161c861f8c971c5b9e547f1997be4b1d4ba529
--8<---------------cut here---------------end--------------->8---

Or is it something you noticed after upgrading ‘linux-libre-headers’?

Thanks,
Ludo’.




Merged 38069 38194. Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 13 Nov 2019 22:21:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#38069; Package guix-patches. (Thu, 14 Nov 2019 08:31:03 GMT) Full text and rfc822 format available.

Message #13 received at 38069 <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 38069 <at> debbugs.gnu.org
Subject: Re: [bug#38069] [PATCH]: Adjust make-bootstrap linux headers
Date: Thu, 14 Nov 2019 10:30:12 +0200
[Message part 1 (text/plain, inline)]
On Wed, Nov 13, 2019 at 11:14:29PM +0100, Ludovic Courtès wrote:
> Hello,
> 
> Efraim Flashner <efraim <at> flashner.co.il> skribis:
> 
> > I was experimenting with creating bootstrap-tarballs for powerpc-linux
> > and it turns out that 'a.out.h' is no longer in the linux headers.
> 
> It works for me though:
> 
> --8<---------------cut here---------------start------------->8---
> $ guix build -e '(@@ (gnu packages make-bootstrap) %linux-libre-headers-stripped)'
> /gnu/store/bz4g5bh2mkihh1w38qg99phlnl7drfv3-linux-libre-headers-stripped-4.19.56
> $ guix describe
> Generacio 115	Nov 11 2019 21:33:10	(nuna)
>   guix a2161c8
>     repository URL: https://git.savannah.gnu.org/git/guix.git
>     branch: master
>     commit: a2161c861f8c971c5b9e547f1997be4b1d4ba529
> --8<---------------cut here---------------end--------------->8---
> 
> Or is it something you noticed after upgrading ‘linux-libre-headers’?
> 

I can't find the actual package piece to make it happen, but it happens
when building the glibc-stripped:

guix build --no-grafts --no-build-hook bootstrap-tarballs --target=powerpc-linux-gnu
The following derivations will be built:
   /gnu/store/4g4gzgzamm6drrw1vasgpmk1l8i4ysm1-bootstrap-tarballs-0.drv
   /gnu/store/70b1109af993j8gwc4axnjc73w1w9bbh-glibc-stripped-tarball-2.29.drv
   /gnu/store/m37c7qf2ga428f7kx1ingbm2cswmimw6-glibc-stripped-2.29.drv
builder for `/gnu/store/qmdvsqm62181mhgd7h2rjqw0adkqdayz-glibc-stripped-2.29' failed previously (cached)
build of /gnu/store/m37c7qf2ga428f7kx1ingbm2cswmimw6-glibc-stripped-2.29.drv failed
View build log at '/var/log/guix/drvs/m3/7c7qf2ga428f7kx1ingbm2cswmimw6-glibc-stripped-2.29.drv.gz'.
cannot build derivation `/gnu/store/70b1109af993j8gwc4axnjc73w1w9bbh-glibc-stripped-tarball-2.29.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/4g4gzgzamm6drrw1vasgpmk1l8i4ysm1-bootstrap-tarballs-0.drv': 1 dependencies couldn't be built
guix build: error: build of `/gnu/store/4g4gzgzamm6drrw1vasgpmk1l8i4ysm1-bootstrap-tarballs-0.drv' failed

;;; (src "/gnu/store/391glyjmliibp0xi1mq8mq6ad02cgyl1-linux-libre-headers-4.19.56/include/linux/a.out.h")

;;; (dest "/gnu/store/qmdvsqm62181mhgd7h2rjqw0adkqdayz-glibc-stripped-2.29/include/linux")
Backtrace:
           4 (primitive-load "/gnu/store/89bq4a8mbg36gjmqi7b0h0a80yz?")
In ice-9/eval.scm:
   191:35  3 (_ _)
In /gnu/store/q7w7k3mngscbzzdqmj57726radqzagn4-module-import/guix/build/make-bootstrap.scm:
     46:4  2 (copy-linux-headers _ "/gnu/store/391glyjmliibp0xi1mq8m?")
In srfi/srfi-1.scm:
    640:9  1 (for-each #<procedure 7fffef04f840 at /gnu/store/q7w7k?> ?)
In unknown file:
           0 (copy-file "/gnu/store/391glyjmliibp0xi1mq8mq6ad02cgyl?" ?)

ERROR: In procedure copy-file:
In procedure copy-file: No such file or directory


-- 
Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#38069; Package guix-patches. (Thu, 14 Nov 2019 21:24:01 GMT) Full text and rfc822 format available.

Message #16 received at 38069 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Efraim Flashner <efraim <at> flashner.co.il>
Cc: 38069 <at> debbugs.gnu.org
Subject: Re: [bug#38069] [PATCH]: Adjust make-bootstrap linux headers
Date: Thu, 14 Nov 2019 22:23:47 +0100
Hello,

Efraim Flashner <efraim <at> flashner.co.il> skribis:

> I can't find the actual package piece to make it happen, but it happens
> when building the glibc-stripped:
>
> guix build --no-grafts --no-build-hook bootstrap-tarballs --target=powerpc-linux-gnu
> The following derivations will be built:
>    /gnu/store/4g4gzgzamm6drrw1vasgpmk1l8i4ysm1-bootstrap-tarballs-0.drv
>    /gnu/store/70b1109af993j8gwc4axnjc73w1w9bbh-glibc-stripped-tarball-2.29.drv
>    /gnu/store/m37c7qf2ga428f7kx1ingbm2cswmimw6-glibc-stripped-2.29.drv
> builder for `/gnu/store/qmdvsqm62181mhgd7h2rjqw0adkqdayz-glibc-stripped-2.29' failed previously (cached)
> build of /gnu/store/m37c7qf2ga428f7kx1ingbm2cswmimw6-glibc-stripped-2.29.drv failed
> View build log at '/var/log/guix/drvs/m3/7c7qf2ga428f7kx1ingbm2cswmimw6-glibc-stripped-2.29.drv.gz'.
> cannot build derivation `/gnu/store/70b1109af993j8gwc4axnjc73w1w9bbh-glibc-stripped-tarball-2.29.drv': 1 dependencies couldn't be built
> cannot build derivation `/gnu/store/4g4gzgzamm6drrw1vasgpmk1l8i4ysm1-bootstrap-tarballs-0.drv': 1 dependencies couldn't be built
> guix build: error: build of `/gnu/store/4g4gzgzamm6drrw1vasgpmk1l8i4ysm1-bootstrap-tarballs-0.drv' failed
>
> ;;; (src "/gnu/store/391glyjmliibp0xi1mq8mq6ad02cgyl1-linux-libre-headers-4.19.56/include/linux/a.out.h")
>
> ;;; (dest "/gnu/store/qmdvsqm62181mhgd7h2rjqw0adkqdayz-glibc-stripped-2.29/include/linux")
> Backtrace:
>            4 (primitive-load "/gnu/store/89bq4a8mbg36gjmqi7b0h0a80yz?")
> In ice-9/eval.scm:
>    191:35  3 (_ _)
> In /gnu/store/q7w7k3mngscbzzdqmj57726radqzagn4-module-import/guix/build/make-bootstrap.scm:
>      46:4  2 (copy-linux-headers _ "/gnu/store/391glyjmliibp0xi1mq8m?")
> In srfi/srfi-1.scm:
>     640:9  1 (for-each #<procedure 7fffef04f840 at /gnu/store/q7w7k?> ?)
> In unknown file:
>            0 (copy-file "/gnu/store/391glyjmliibp0xi1mq8mq6ad02cgyl?" ?)
>
> ERROR: In procedure copy-file:
> In procedure copy-file: No such file or directory

Oh, got it; the problem shows up only when cross-compiling, it seems.

So I guess you can go ahead and push.  If this ‘a.out’ file turns out to
be needed somewhere during bootstrap, which seems unlikely, we can
always revisit this issue.

Thank you!

Ludo’.




Reply sent to Efraim Flashner <efraim <at> flashner.co.il>:
You have taken responsibility. (Fri, 15 Nov 2019 11:02:02 GMT) Full text and rfc822 format available.

Notification sent to Efraim Flashner <efraim <at> flashner.co.il>:
bug acknowledged by developer. (Fri, 15 Nov 2019 11:02:02 GMT) Full text and rfc822 format available.

Message #21 received at 38069-done <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 38069-done <at> debbugs.gnu.org
Subject: Re: [bug#38069] [PATCH]: Adjust make-bootstrap linux headers
Date: Fri, 15 Nov 2019 13:01:14 +0200
[Message part 1 (text/plain, inline)]
Ok. Patch pushed


-- 
Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]

Reply sent to Efraim Flashner <efraim <at> flashner.co.il>:
You have taken responsibility. (Fri, 15 Nov 2019 11:02:02 GMT) Full text and rfc822 format available.

Notification sent to Efraim Flashner <efraim <at> flashner.co.il>:
bug acknowledged by developer. (Fri, 15 Nov 2019 11:02:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#38069; Package guix-patches. (Fri, 15 Nov 2019 16:36:01 GMT) Full text and rfc822 format available.

Message #29 received at 38069 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Efraim Flashner <efraim <at> flashner.co.il>
Cc: 38069 <at> debbugs.gnu.org, Jan Nieuwenhuizen <janneke <at> gnu.org>
Subject: Re: [bug#38069] [PATCH]: Adjust make-bootstrap linux headers
Date: Fri, 15 Nov 2019 17:35:48 +0100
Hello,

Efraim Flashner <efraim <at> flashner.co.il> skribis:

> From 1a4f163ca174d5edc09db0dacd2ff188ee4cc1ae Mon Sep 17 00:00:00 2001
> From: Efraim Flashner <efraim <at> flashner.co.il>
> Date: Tue, 5 Nov 2019 14:55:05 +0200
> Subject: [PATCH] make-bootstrap: Adjust copied linux headers.
>
> * guix/build/make-bootstrap.scm (copy-linux-headers): Remove header
> file 'a.out.h' is no longer part of the linux kernel headers.
> ---
>  guix/build/make-bootstrap.scm | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/guix/build/make-bootstrap.scm b/guix/build/make-bootstrap.scm
> index e5ef1d6d2b..0d29338ce3 100644
> --- a/guix/build/make-bootstrap.scm
> +++ b/guix/build/make-bootstrap.scm
> @@ -47,7 +47,6 @@ bootstrap libc."
>                  (install-file (pk 'src (string-append kernel-headers "/include/linux/" file))
>                                (pk 'dest (string-append incdir "/linux"))))
>                '(
> -                "a.out.h"               ; for 2.2.5

Looking at the comment here, which was added by Janneke, I suspect this
header is actually required to build glibc 2.2.5 in commencement.scm.
Did I get it right, Janneke?

If so, perhaps we should reinstate it and simply add a

  when (file-exists? file)

guard before calling ‘install-file’?

Thanks,
Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#38069; Package guix-patches. (Sat, 16 Nov 2019 15:52:02 GMT) Full text and rfc822 format available.

Message #32 received at 38069-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Efraim Flashner <efraim <at> flashner.co.il>
Cc: 38069-done <at> debbugs.gnu.org
Subject: Re: [bug#38069] [PATCH]: Adjust make-bootstrap linux headers
Date: Sat, 16 Nov 2019 16:51:00 +0100
Efraim Flashner <efraim <at> flashner.co.il> skribis:

> Ok. Patch pushed

Cool, thank you!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 15 Dec 2019 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 132 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.