From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: smallerizing bootstrap guile? Date: Mon, 4 Nov 2019 12:57:56 +0200 Message-ID: <20191104105756.GC372@E5400> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="XWOWbaMNXpFDWE00" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:56863) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRa3b-0000GK-Jw for guix-devel@gnu.org; Mon, 04 Nov 2019 05:58:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iRa3a-0004yo-GA for guix-devel@gnu.org; Mon, 04 Nov 2019 05:57:59 -0500 Received: from flashner.co.il ([178.62.234.194]:44940) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iRa3a-0004yR-6M for guix-devel@gnu.org; Mon, 04 Nov 2019 05:57:58 -0500 Received: from localhost (unknown [141.226.13.108]) by flashner.co.il (Postfix) with ESMTPSA id 42C38401B0 for ; Mon, 4 Nov 2019 10:57:57 +0000 (UTC) Content-Disposition: inline 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.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --XWOWbaMNXpFDWE00 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Ok, 'smallerizing' isn't a real word. I'm trying again to see about porting Guix to 32-bit powerpc and I've come across a problem with the static guile. static guile has bin/ share/ and lib/ outputs. Looking at (gnu packages bootstrap), the make-guile-wrapper function around line 377 takes its own bin/guile to wrap itself in the code from share and the precompiled go files in lib/. Unfortunately on powerpc I'm getting the error: /gnu/store/krb9h94g81f4xgsjwfs58p8fiir5gmpq-build-bootstrap-guile.sh: line = 8: 5 Segmentation fault GUILE_SYSTEM_PATH=3D$out/share/guile/2.2 G= UILE_SYSTEM_COMPILED_PATH=3D$out/lib/guile/2.2/ccache $out /bin/guile -c "(begin (use-modules (ice-9 match)) (match (command-line) ((_= out bash) (let ((bin-dir (string-append out \"/bin\")) (guile (string-appe= nd out \"/bin/guile\")) (guile-real (string-append out \"/bin/.guile-real\")) (dollar (string (integer->char 36)))) (chmod bin-di= r 493) (rename-file guile guile-real) (call-with-output-file guile (lambda = (p) (format p \"#!~a\\nexport GUILE_SYSTEM_PATH=3D~a/sha re/guile/2.2\\nexport GUILE_SYSTEM_COMPILED_PATH=3D~a/lib/guile/2.2/ccache\= \nexec -a \\\"~a0\\\" ~a \\\"~a@\\\"\\n\" bash out out dollar guile-real do= llar))) (chmod guile 365) (chmod bin-dir 365)))))" $out /gnu/store/rbz12p3wl7dlrn5gyk6yp62ixmcir3vb-bash /gnu/store/krb9h94g81f4xgsjwfs58p8fiir5gmpq-build-bootstrap-guile.sh: line = 11: 6 Segmentation fault $out/bin/guile --version builder for `/gnu/store/cr6anc23kmprmilvyhi721b5b4sacln5-guile-bootstrap-2.= 2.drv' failed with exit code 139 If I change it so that GUILE_SYSTEM_COMPILED_PATH=3D"" then it seems to recompile in memory the .go files for each subsequent thing it builds and then throw them out. Is there a good way to actually compile the .go files and use them to replace the ones shipped in the guile-static tarball? Can we do this on purpose and ship just the bin/ output, grab guile sources and compile it for real? Or can I delete the .go files, take the =2Escm files and compile them? Any hints on the guild invocation? --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --XWOWbaMNXpFDWE00 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl3ABDEACgkQQarn3Mo9 g1Gcdg/7BlWELiFpy3l02/tBuMTkl3pjhzHYFM5Vh73pga+Hu64IuWSq0PzRazjb PQkzAAD2Jz6fojspa3BKnSGWaxXBK4nq7WKVIxAE+2hCKv7aoSFxnZhLWRzxESW+ FHq/zmaXVb6vNnAcGVZbPvU1g7mP/LFK3roNKwGyBkNUtBhsYnixK98J+zoUS9r2 A8+9fpBvhdy5fXbBQKdiYOxSw31hSes/atIvcsN9oy/L5fWYIaBaIW/LvL2Ov41A cBk7gLiVBkLTbNTxATd9A4GzxJDkTy3N+0UJCWxoFOpforlqNXcfnMl9Ud+h6GIe k1FI78f+ioI9UUYHLdX1GDbVrJkHYg4cs4z2D3y8aFujdJ5yG2rZ6FfgrNKsYzY9 2k9JsgiG7Z2hMkXBZkM0RSpftFeRhZkWbg/tT9twJD1yTiTS1K4CeY+YhZYa7Pjg yzMvBa7uIhSfzbv03hix/mTdSGTQKhNJKrFlZk0zMkR0POUf8Kt5p2/n5X2rWo3Y oSVKbgb5KUji9LgedIas1cMIsgoFyYQG21r4Zp5vNG6QORKUic3tCoOd1miow/Nl //r5WZwGezqBS5anyifsN4iuA3JEszP5xnwKu0xEyS9mfT+Th4i8Vp7ldUMLfZKa i5LpHe/YNQ4fxKWYMC8k5f2hTmCYeEGeGdKz8A8VuceZ12A/L64= =f/aA -----END PGP SIGNATURE----- --XWOWbaMNXpFDWE00--