From: Jan Nieuwenhuizen <janneke@gnu.org>
To: dftxbs3e <dftxbs3e@free.fr>
Cc: Guix Devel <guix-devel@gnu.org>
Subject: Re: powerpc64[le]-linux port progress
Date: Sat, 22 Feb 2020 13:34:25 +0100 [thread overview]
Message-ID: <87imjyvm0e.fsf@gnu.org> (raw)
In-Reply-To: <5f6558fb-5aba-770e-1097-2730262876d4@free.fr> (dftxbs3e@free.fr's message of "Sat, 22 Feb 2020 12:39:56 +0100")
dftxbs3e writes:
Hello!
> So here's my current tree:
> https://gitlab.com/lle-bout/guix - master branch
> Bootstrap binaries are uploaded over LFS at:
> https://gitlab.com/lle-bout/guix-bootstrap - master branch
> The current issue is during 'glibc-intermediate' in gnu/packages/commencement.scm
> The statically linked gawk binary tries to execute:
> execve("/gnu/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bash-static-5.0.7/bin/bash", ["sh", "-c", "test -d nptl"], 0x3fffd261ecc0 /* 57 vars */) = -1
> According to Ludovic Courtes, store references with 'eeeeeee' characters in them are removed store references.
> So I went and tried to strip the reference to bash and replace it with `sh` so that either gawk or any of its dependency can look up `sh` in PATH at bootstrap time (we do not know any path yet).
Have you tried building static gawk standalone and check it for that
bash? You could do something like
grep -ao '/gnu/store/e*-bash' $(./pre-inst-env guix build -e '(@@ (gnu packages make-bootstrap) %static-binaries)')
On my x86_64-linux system, I get
/gnu/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bash
> In the commit history, you can see I tried to patch glibc and gawk, but that does not solve the problem.
> The final gawk binary still contains a reference to bash-static, and I have no idea where it comes from.
> Do note that during gawk build process, there's a 'set-shell-filename phase, that I removed in gnu/packages/make-bootstrap.scm and instead replace every occurrence of /bin/sh with `sh`.
>
> I would appreciate help here.
For the new Scheme-only bootstrap, I solved a similar problem for
%bootstrap-mes by replacing the /gnu/store/eee* store-references with
actual bootstrap file names; see `%bootstrap-mes-rewired' in
core-updates http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/commencement.scm?h=core-updates#n251
HTH,
janneke
--
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com
next prev parent reply other threads:[~2020-02-22 12:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-22 11:39 powerpc64[le]-linux port progress dftxbs3e
2020-02-22 12:34 ` Jan Nieuwenhuizen [this message]
2020-02-23 1:34 ` dftxbs3e
2020-02-23 9:01 ` Jan Nieuwenhuizen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87imjyvm0e.fsf@gnu.org \
--to=janneke@gnu.org \
--cc=dftxbs3e@free.fr \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.