Subject: Re: [bug#38069] [PATCH]: Adjust make-bootstrap linux headers

From: Ludovic Courtès <[email-masked]>
Date: Thu, 14 Nov 2019 22:23:47 +0100

Hello,

Efraim Flashner <[email-masked]> 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’.