From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Nieuwenhuizen Subject: Re: powerpc64[le]-linux port progress Date: Sat, 22 Feb 2020 13:34:25 +0100 Message-ID: <87imjyvm0e.fsf@gnu.org> References: <5f6558fb-5aba-770e-1097-2730262876d4@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:60229) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5TzK-0006gF-21 for guix-devel@gnu.org; Sat, 22 Feb 2020 07:34:31 -0500 In-Reply-To: <5f6558fb-5aba-770e-1097-2730262876d4@free.fr> (dftxbs3e@free.fr's message of "Sat, 22 Feb 2020 12:39:56 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: dftxbs3e Cc: Guix Devel 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/commence= ment.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 */) =3D -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 `s= h` 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 p= ackages 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 t= hat does not solve the problem. > The final gawk binary still contains a reference to bash-static, and I ha= ve no idea where it comes from. > Do note that during gawk build process, there's a 'set-shell-filename pha= se, that I removed in gnu/packages/make-bootstrap.scm and instead replace e= very 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/co= mmencement.scm?h=3Dcore-updates#n251 HTH, janneke --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com