From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: smallerizing bootstrap guile? Date: Wed, 06 Nov 2019 18:35:09 +0100 Message-ID: <87a798x60i.fsf@gnu.org> References: <20191104105756.GC372@E5400> 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]:47786) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSPD7-0003IS-9j for guix-devel@gnu.org; Wed, 06 Nov 2019 12:35:14 -0500 In-Reply-To: <20191104105756.GC372@E5400> (Efraim Flashner's message of "Mon, 4 Nov 2019 12:57:56 +0200") 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: Efraim Flashner Cc: guix-devel@gnu.org Hi! Efraim Flashner skribis: > 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: lin= e 8: 5 Segmentation fault GUILE_SYSTEM_PATH=3D$out/share/guile/2.2= GUILE_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-ap= pend out \"/bin/guile\")) (guile-real (string-append out > \"/bin/.guile-real\")) (dollar (string (integer->char 36)))) (chmod bin-= dir 493) (rename-file guile guile-real) (call-with-output-file guile (lambd= a (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/ccach= e\\nexec -a \\\"~a0\\\" ~a \\\"~a@\\\"\\n\" bash out out dollar guile-real = dollar))) (chmod guile 365) (chmod bin-dir 365)))))" $out > /gnu/store/rbz12p3wl7dlrn5gyk6yp62ixmcir3vb-bash > /gnu/store/krb9h94g81f4xgsjwfs58p8fiir5gmpq-build-bootstrap-guile.sh: lin= e 11: 6 Segmentation fault $out/bin/guile --version > builder for `/gnu/store/cr6anc23kmprmilvyhi721b5b4sacln5-guile-bootstrap-= 2.2.drv' failed with exit code 139 Indeed, here=E2=80=99s what I see: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix build guile-static-stripped --target=3Dpowerpc-linux-= gnu=20 5.5 MB will be downloaded: /gnu/store/nsscff8a2yic1x4cgdqlzd5829asln4w-guile-static-stripped-2.2.6 substituting /gnu/store/nsscff8a2yic1x4cgdqlzd5829asln4w-guile-static-strip= ped-2.2.6... downloading from https://ci.guix.gnu.org/nar/lzip/nsscff8a2yic1x4cgdqlzd582= 9asln4w-guile-static-stripped-2.2.6... guile-static-stripped-2.2.6 5.2MiB 2.2MiB/s 00:02 [#############= #####] 100.0% /gnu/store/nsscff8a2yic1x4cgdqlzd5829asln4w-guile-static-stripped-2.2.6 $ qemu-ppc /gnu/store/nsscff8a2yic1x4cgdqlzd5829asln4w-guile-static-strippe= d-2.2.6/bin/guile -q guile: warning: failed to install locale qemu: uncaught target signal 11 (Segmentation fault) - core dumped Adres-eraro $ git log |head -1 commit 198a7ac02fe52acfed996cb66d3c79e2e8595747 --8<---------------cut here---------------end--------------->8--- I=E2=80=99d need a cross-gdb for powerpc-linux-gnu to actually get a backtr= ace, though. Are you able to get a backtrace on the actual PowerPC machine? Thanks, Ludo=E2=80=99.