From mboxrd@z Thu Jan 1 00:00:00 1970 From: dftxbs3e Subject: powerpc64[le]-linux port progress Date: Sat, 22 Feb 2020 12:39:56 +0100 Message-ID: <5f6558fb-5aba-770e-1097-2730262876d4@free.fr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="r7r6ktgojgXzm7bsGd66Otvo4kUG6pyTV" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:55887) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5T8z-0004n4-C3 for guix-devel@gnu.org; Sat, 22 Feb 2020 06:40:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j5T8y-0007ag-10 for guix-devel@gnu.org; Sat, 22 Feb 2020 06:40:25 -0500 Received: from smtp1-g21.free.fr ([212.27.42.1]:54391) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j5T8x-0007ZN-MP for guix-devel@gnu.org; Sat, 22 Feb 2020 06:40:23 -0500 Received: from [IPv6:2a01:e0a:2a2:1590:8ddc:5a0b:e4e6:220a] (unknown [IPv6:2a01:e0a:2a2:1590:8ddc:5a0b:e4e6:220a]) by smtp1-g21.free.fr (Postfix) with ESMTP id 2441EB00579 for ; Sat, 22 Feb 2020 12:40:21 +0100 (CET) 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: Guix Devel This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --r7r6ktgojgXzm7bsGd66Otvo4kUG6pyTV Content-Type: multipart/mixed; boundary="YIWltzQABwVvRHaL3rw3lxFwJXKB4KQTv"; protected-headers="v1" From: dftxbs3e To: Guix Devel Message-ID: <5f6558fb-5aba-770e-1097-2730262876d4@free.fr> Subject: powerpc64[le]-linux port progress --YIWltzQABwVvRHaL3rw3lxFwJXKB4KQTv Content-Type: multipart/alternative; boundary="------------0AB82E0ECA504068FF216F35" Content-Language: en-US This is a multi-part message in MIME format. --------------0AB82E0ECA504068FF216F35 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello! So here's my current tree: https://gitlab.com/lle-bout/guix - master bran= ch 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 */) =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 `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). 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. Thank you --------------0AB82E0ECA504068FF216F35 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hello!
    
So here's my curr=
ent tree:
https://gitlab.com/lle-bout/guix - master branch
Bootstrap binarie=
s are uploaded over LFS at:
https://gitlab.com/lle-bout/guix-bootstrap - master bra=
nch
The current issue=
 is during 'glibc-intermediate' in gnu/packages/commencement.scm
    
The statically li=
nked 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).
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=
 every occurrence of /bin/sh with `sh`.

I would appreciate help here.

Thank you
= --------------0AB82E0ECA504068FF216F35-- --YIWltzQABwVvRHaL3rw3lxFwJXKB4KQTv-- --r7r6ktgojgXzm7bsGd66Otvo4kUG6pyTV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQQozTys6hLca3Ekt8u3HhLxn6GoewUCXlETJAAKCRC3HhLxn6Go e2kHAQCvONP1f9oK8YrlrlXes1YXsRYHCxRmXYsTxYbBD57QsAEAy+GIEvV5Iowi VgbIN02oB9rTLSx0uG8XsPNN32doRwg= =u1BE -----END PGP SIGNATURE----- --r7r6ktgojgXzm7bsGd66Otvo4kUG6pyTV--