From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 12 12:01:50 2022 Received: (at 34427) by debbugs.gnu.org; 12 Apr 2022 16:01:50 +0000 Received: from localhost ([127.0.0.1]:49468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1neIxi-0005n0-64 for submit@debbugs.gnu.org; Tue, 12 Apr 2022 12:01:50 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1neIxh-0005mj-6e for 34427@debbugs.gnu.org; Tue, 12 Apr 2022 12:01:49 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41002) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1neIxa-0001jA-Bx; Tue, 12 Apr 2022 12:01:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=ZkeOsykqS9YahV6ZijV0iPrKpPf4O7f1HKdgsWuqPFw=; b=W9bFbDOOOX6ZP7HhTaxy Vmn2D7QxXbODGwtwqICOUqZ0s0YgFm6drq8g5KdfGmUU6CVzTtVbJOhieB/ZbqgqfIQUtrK1VbaHT NocaRbC6VAUAAu2OCk4TZduzQcALSVyWGCYZ0GjelJh5lfuIKstWXQ0+VmBhUR5p/27q7ElcfLczm n7CQiepn1VHHQjQcAWaRDVSAtNSR17Impn5iw4VOw/hhno8MZztkBScGxibD6VdiO9IyaZ/lUscSZ F1Rw/zmiCD/eK0liR9Jj9xDP3U6uoFBl/rZ/+S3S9+4v/EQEOe56MT2yXzKZqJMgTuyPFvek4YyGX UzpZzdJ9eOsw5Q==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=48912 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1neIxZ-0004nx-2A; Tue, 12 Apr 2022 12:01:42 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Efraim Flashner Subject: Re: bug#34427: guile-bootstrap@2.2 segfault? References: <20190211091136.GA3284@macbook41> <87y36ljd46.fsf@gnu.org> <20190212154434.GD3284@macbook41> Date: Tue, 12 Apr 2022 18:01:39 +0200 In-Reply-To: <20190212154434.GD3284@macbook41> (Efraim Flashner's message of "Tue, 12 Feb 2019 17:44:34 +0200") Message-ID: <87sfqicmu4.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 34427 Cc: 34427@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Efraim Flashner skribis: > On Tue, Feb 12, 2019 at 03:27:37PM +0100, Ludovic Court=C3=A8s wrote: >> Hello Efraim, >>=20 >> Efraim Flashner skribis: >>=20 >> > I'm testing %bootstrap-guile from bootstrap.scm and I'm getting a >> > segfault when runing guile --version. I've attached an strace of the >> > process. >>=20 >> To be clear, I believe this is for a *cross-compiled* Guile, right? > > That's right, %bootstrap-guile is extracted from $(guix build > --target=3Dpowerpc-linux-gnu bootstrap-tarballs) Cross-compilation to aarch64-linux-gnu works fine: --8<---------------cut here---------------start------------->8--- $ unshare -mrf chroot $(guix build guile-static-stripped --target=3Daarch64= -linux-gnu) /bin/guile guile: warning: failed to install locale GC Warning: pthread_getattr_np or pthread_attr_getstack failed for main thr= ead GC Warning: Couldn't read /proc/stat warning: failed to install locale: Invalid argument GNU Guile 3.0.7 Copyright (C) 1995-2021 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> %host-type $1 =3D "aarch64-unknown-linux-gnu" scheme@(guile-user)> ,q $ guix describe Generation 210 Apr 11 2022 09:34:10 (current) guix 7da907f repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 7da907f90e74a4edf96d76ee457ff958265ef8d4 --8<---------------cut here---------------end--------------->8--- The problem has to do specifically with powerpc-linux-gnu (this is with transparent emulation via QEMU+binfmt_misc): --8<---------------cut here---------------start------------->8--- $ unshare -mrf chroot $(guix build guile-static-stripped --target=3Dpowerpc= -linux-gnu) /bin/guile guile: warning: failed to install locale GC Warning: pthread_getattr_np or pthread_attr_getstack failed for main thr= ead GC Warning: Couldn't read /proc/stat Pre-boot error; key: wrong-type-arg, args: (#f "Wrong type to apply: ~S" (#= f) (#f))qemu: uncaught target signal 6 (Aborted) - core dumped Aborted --8<---------------cut here---------------end--------------->8--- Unfortunately I fail to get a backtrace from that core dump. Efraim, could you get a backtrace on the bare metal? Besides, if PPC32 is the only platform that has a problem, I think this bug should not be a blocker. WDYT? Ludo=E2=80=99.