From unknown Thu Aug 14 21:55:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43629: Cross-compiled guile-lzlib unusable, causing =?UTF-8?Q?=E2=80=98guix_?= =?UTF-8?Q?substitute=E2=80=99?= to crash on GNU/Hurd Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 26 Sep 2020 09:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43629 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 43629@debbugs.gnu.org X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.16011114045830 (code B ref -1); Sat, 26 Sep 2020 09:11:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Sep 2020 09:10:04 +0000 Received: from localhost ([127.0.0.1]:45793 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kM6DT-0001Vy-Qj for submit@debbugs.gnu.org; Sat, 26 Sep 2020 05:10:04 -0400 Received: from lists.gnu.org ([209.51.188.17]:51346) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kM6DR-0001VS-3s for submit@debbugs.gnu.org; Sat, 26 Sep 2020 05:10:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41712) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kM6DQ-0003z8-Vi for bug-guix@gnu.org; Sat, 26 Sep 2020 05:10:00 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58189) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kM6DQ-00082s-Mj for bug-guix@gnu.org; Sat, 26 Sep 2020 05:10:00 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=35516 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kM6DQ-0006au-7G for bug-guix@gnu.org; Sat, 26 Sep 2020 05:10:00 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 5 =?UTF-8?Q?Vend=C3=A9miaire?= an 229 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 26 Sep 2020 11:09:57 +0200 Message-ID: <87v9g0hpju.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) 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 (---) Seen on i586-gnu (cross-compiled childhurd): --8<---------------cut here---------------start------------->8--- root@childhurd ~# /gnu/store/*-guile-3.0.4/bin/guile -L /run/current-system= /profile/share/guile/site/3.0/ -C /run/current-system/profile/lib/guile/3.0= /site-ccache/ GNU Guile 3.0.4 Copyright (C) 1995-2020 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.=20=20 scheme@(guile-user)> ,use(guix scripts substitute) scheme@(guile-user)> (guix-substitute "--substitute" "/gnu/store/vq7zyb4hm= lrafflmrcjbqccxp4dsx0s3-bash" "/tmp/t") sha256:1as8649aqaibahhhrvkj10ci8shpi4hq5n7gnik8rhhy0dc1jarg Downloading http://ci.guix.gnu.org/nar/lzip/vq7zyb4hmlrafflmrcjbqccxp4dsx0s= 3-bash... bash 717KiB +nan.0TiB/s 00:00 [ ] = 0.0%ice-9/boot-9.scm:1669:16: In procedure raise-exception: Wrong type to apply: #f Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(guile-user) [1]> ,bt In ice-9/boot-9.scm: 1669:16 0 (raise-exception _ #:continuable? _) scheme@(guile-user) [1]> ,q --8<---------------cut here---------------end--------------->8--- Trick to get a proper backtrace, I added a breakpoint on =E2=80=98raise-exception=E2=80=99: --8<---------------cut here---------------start------------->8--- scheme@(guile-user) [1]> ,bt In ice-9/boot-9.scm: 1731:15 9 (with-exception-handler # _ #:unwind? _ #:unwind-for-type _) 1736:10 8 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) 1731:15 7 (with-exception-handler # _ #:unwind? _ #:unwind-for-type _) In guix/scripts/substitute.scm: 1162:10 6 (_) 1008:19 5 (process-substitution _ "/tmp/t" #:cache-urls _ #:acl _ #:prin= t-build-trace? _) In guix/utils.scm: 212:12 4 (decompressed-port _ _) In lzlib.scm: 589:2 3 (make-lzip-input-port #) 287:25 2 (_) 287:25 1 (_) In ice-9/boot-9.scm: 1615:4 0 (raise-exception #<&compound-exception components: (#<&asserti= on-failure> #<&origin origin: #f> #<&message message: "Wrong type to apply:= ~S"> #<&irritants irritants: (#f)> #<&exc?>) --8<---------------cut here---------------end--------------->8--- This is because under the hood liblz.so could not be loaded (but the actual error is silently swallowed): --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> ,m(lzlib) scheme@(lzlib)> (lzlib-procedure int "LZ_decompress_open" '()) $1 =3D #f scheme@(lzlib)> %liblz=20 $2 =3D "liblz" scheme@(lzlib)> (dynamic-link %liblz) ice-9/boot-9.scm:1669:16: In procedure raise-exception: In procedure dynamic-link: file: "liblz", message: "file not found" Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(lzlib) [1]> ,q --8<---------------cut here---------------end--------------->8--- Compare with a native build of guile-lzlib on GNU/Linux: --8<---------------cut here---------------start------------->8--- scheme@(lzlib)> %liblz $2 =3D "/gnu/store/jqr5bz89gfwhxcndnhq333dyclvkq7ws-lzlib-1.11/lib/liblz" --8<---------------cut here---------------end--------------->8--- Indeed, the cross-compilation build log shows: --8<---------------cut here---------------start------------->8--- checking dependency style of i586-pc-gnu-gcc... none checking lzlib's file name...=20 --8<---------------cut here---------------end--------------->8--- Ludo=E2=80=99. From unknown Thu Aug 14 21:55:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43629: Cross-compiled guile-lzlib unusable, causing =?UTF-8?Q?=E2=80=98guix_?= =?UTF-8?Q?substitute=E2=80=99?= to crash on GNU/Hurd Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 26 Sep 2020 09:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43629 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 43629@debbugs.gnu.org Received: via spool by 43629-submit@debbugs.gnu.org id=B43629.16011117156391 (code B ref 43629); Sat, 26 Sep 2020 09:16:02 +0000 Received: (at 43629) by debbugs.gnu.org; 26 Sep 2020 09:15:15 +0000 Received: from localhost ([127.0.0.1]:45800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kM6IU-0001f1-MX for submit@debbugs.gnu.org; Sat, 26 Sep 2020 05:15:14 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35534) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kM6IT-0001eo-0A for 43629@debbugs.gnu.org; Sat, 26 Sep 2020 05:15:13 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58243) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kM6IN-0000Ei-PU; Sat, 26 Sep 2020 05:15:07 -0400 Received: from [2a01:e0a:19b:d9a0:d549:2a8f:de3b:c9c0] (port=48460 helo=cervin) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kM6IN-00070x-0d; Sat, 26 Sep 2020 05:15:07 -0400 From: Mathieu Othacehe References: <87v9g0hpju.fsf@inria.fr> Date: Sat, 26 Sep 2020 11:15:05 +0200 In-Reply-To: <87v9g0hpju.fsf@inria.fr> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sat, 26 Sep 2020 11:09:57 +0200") Message-ID: <87tuvkc31i.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) 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 (---) Hey Ludo, > checking dependency style of i586-pc-gnu-gcc... none > checking lzlib's file name... Oh, I guess the same goes for guile-zlib and all cross-compilation targets. I'll have a look later on. Thanks, Mathieu -- https://othacehe.org From unknown Thu Aug 14 21:55:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43629: Cross-compiled guile-lzlib unusable, causing =?UTF-8?Q?=E2=80=98guix_?= =?UTF-8?Q?substitute=E2=80=99?= to crash on GNU/Hurd Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 27 Sep 2020 21:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43629 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Mathieu Othacehe Cc: 43629@debbugs.gnu.org Received: via spool by 43629-submit@debbugs.gnu.org id=B43629.160124272727920 (code B ref 43629); Sun, 27 Sep 2020 21:39:02 +0000 Received: (at 43629) by debbugs.gnu.org; 27 Sep 2020 21:38:47 +0000 Received: from localhost ([127.0.0.1]:50583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMeNa-0007GF-Vr for submit@debbugs.gnu.org; Sun, 27 Sep 2020 17:38:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMeNX-0007G0-Cj for 43629@debbugs.gnu.org; Sun, 27 Sep 2020 17:38:46 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57638) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMeNS-0004sw-41 for 43629@debbugs.gnu.org; Sun, 27 Sep 2020 17:38:38 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=43874 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kMeNR-0005PF-DQ; Sun, 27 Sep 2020 17:38:37 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87v9g0hpju.fsf@inria.fr> <87tuvkc31i.fsf@gnu.org> Date: Sun, 27 Sep 2020 23:38:35 +0200 In-Reply-To: <87tuvkc31i.fsf@gnu.org> (Mathieu Othacehe's message of "Sat, 26 Sep 2020 11:15:05 +0200") Message-ID: <87ft72ew84.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) 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 Mathieu, Mathieu Othacehe skribis: >> checking dependency style of i586-pc-gnu-gcc... none >> checking lzlib's file name...=20 > > Oh, I guess the same goes for guile-zlib and all cross-compilation > targets. I'll have a look later on. Fixed in Guile-lzlib here: https://notabug.org/guile-lzlib/guile-lzlib/commit/82576e34b4870b8977e131= a40831219f8c1ea521 Guile-zlib doesn=E2=80=99t have this problem because it uses pkg-config to determine LIBZ_LIBDIR. When you feel like it, we can have a .2 release of Guile-lzlib with this fix. Thanks, Ludo=E2=80=99. From unknown Thu Aug 14 21:55:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43629: Cross-compiled guile-lzlib unusable, causing =?UTF-8?Q?=E2=80=98guix_?= =?UTF-8?Q?substitute=E2=80=99?= to crash on GNU/Hurd Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 28 Sep 2020 09:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43629 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 43629@debbugs.gnu.org Received: via spool by 43629-submit@debbugs.gnu.org id=B43629.160128605023337 (code B ref 43629); Mon, 28 Sep 2020 09:41:02 +0000 Received: (at 43629) by debbugs.gnu.org; 28 Sep 2020 09:40:50 +0000 Received: from localhost ([127.0.0.1]:51436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMpeL-00064L-K2 for submit@debbugs.gnu.org; Mon, 28 Sep 2020 05:40:49 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMpeJ-000648-WC for 43629@debbugs.gnu.org; Mon, 28 Sep 2020 05:40:48 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40241) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMpeE-0005VE-BK; Mon, 28 Sep 2020 05:40:42 -0400 Received: from [2a01:e0a:19b:d9a0:d549:2a8f:de3b:c9c0] (port=34272 helo=cervin) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kMpeD-0006G2-V3; Mon, 28 Sep 2020 05:40:42 -0400 From: Mathieu Othacehe References: <87v9g0hpju.fsf@inria.fr> <87tuvkc31i.fsf@gnu.org> <87ft72ew84.fsf@gnu.org> Date: Mon, 28 Sep 2020 11:40:40 +0200 In-Reply-To: <87ft72ew84.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sun, 27 Sep 2020 23:38:35 +0200") Message-ID: <871rimdysn.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) 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 (---) Hello, > When you feel like it, we can have a .2 release of Guile-lzlib with this > fix. Done with af56f60ef0394b35ab7926d10a4f825c2b1245f6. Thanks, Mathieu From unknown Thu Aug 14 21:55:16 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#43629: closed (Re: bug#43629: Cross-compiled guile-lzlib unusable, causing =?UTF-8?Q?=E2=80=98guix_?= =?UTF-8?Q?substitute=E2=80=99?= to crash on GNU/Hurd) Message-ID: References: <87wo0dk710.fsf@gnu.org> <87v9g0hpju.fsf@inria.fr> X-Gnu-PR-Message: they-closed 43629 X-Gnu-PR-Package: guix Reply-To: 43629@debbugs.gnu.org Date: Mon, 28 Sep 2020 19:59:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1601323142-11581-1" This is a multi-part message in MIME format... ------------=_1601323142-11581-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #43629: Cross-compiled guile-lzlib unusable, causing =E2=80=98guix substitu= te=E2=80=99 to crash on GNU/Hurd which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 43629@debbugs.gnu.org. --=20 43629: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D43629 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1601323142-11581-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 43629-done) by debbugs.gnu.org; 28 Sep 2020 19:58:54 +0000 Received: from localhost ([127.0.0.1]:54106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMzIU-00030U-5c for submit@debbugs.gnu.org; Mon, 28 Sep 2020 15:58:54 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55876) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMzIS-00030F-T2 for 43629-done@debbugs.gnu.org; Mon, 28 Sep 2020 15:58:53 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51288) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMzIN-0005pP-1h for 43629-done@debbugs.gnu.org; Mon, 28 Sep 2020 15:58:47 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=43784 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kMzID-0005GD-1j; Mon, 28 Sep 2020 15:58:39 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Mathieu Othacehe Subject: Re: bug#43629: Cross-compiled guile-lzlib unusable, causing =?utf-8?Q?=E2=80=98guix_substitute=E2=80=99?= to crash on GNU/Hurd References: <87v9g0hpju.fsf@inria.fr> <87tuvkc31i.fsf@gnu.org> <87ft72ew84.fsf@gnu.org> <871rimdysn.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 7 =?utf-8?Q?Vend=C3=A9miaire?= an 229 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 28 Sep 2020 21:58:35 +0200 In-Reply-To: <871rimdysn.fsf@gnu.org> (Mathieu Othacehe's message of "Mon, 28 Sep 2020 11:40:40 +0200") Message-ID: <87wo0dk710.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (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: 43629-done Cc: 43629-done@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, Mathieu Othacehe skribis: >> When you feel like it, we can have a .2 release of Guile-lzlib with this >> fix. > > Done with af56f60ef0394b35ab7926d10a4f825c2b1245f6. Woohoo, thank you! Ludo=E2=80=99. ------------=_1601323142-11581-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 26 Sep 2020 09:10:04 +0000 Received: from localhost ([127.0.0.1]:45793 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kM6DT-0001Vy-Qj for submit@debbugs.gnu.org; Sat, 26 Sep 2020 05:10:04 -0400 Received: from lists.gnu.org ([209.51.188.17]:51346) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kM6DR-0001VS-3s for submit@debbugs.gnu.org; Sat, 26 Sep 2020 05:10:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41712) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kM6DQ-0003z8-Vi for bug-guix@gnu.org; Sat, 26 Sep 2020 05:10:00 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58189) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kM6DQ-00082s-Mj for bug-guix@gnu.org; Sat, 26 Sep 2020 05:10:00 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=35516 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kM6DQ-0006au-7G for bug-guix@gnu.org; Sat, 26 Sep 2020 05:10:00 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Subject: Cross-compiled guile-lzlib unusable, causing =?utf-8?Q?=E2=80=98g?= =?utf-8?Q?uix_substitute=E2=80=99?= to crash on GNU/Hurd X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 5 =?utf-8?Q?Vend=C3=A9miaire?= an 229 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 26 Sep 2020 11:09:57 +0200 Message-ID: <87v9g0hpju.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (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: submit 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 (---) Seen on i586-gnu (cross-compiled childhurd): --8<---------------cut here---------------start------------->8--- root@childhurd ~# /gnu/store/*-guile-3.0.4/bin/guile -L /run/current-system= /profile/share/guile/site/3.0/ -C /run/current-system/profile/lib/guile/3.0= /site-ccache/ GNU Guile 3.0.4 Copyright (C) 1995-2020 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.=20=20 scheme@(guile-user)> ,use(guix scripts substitute) scheme@(guile-user)> (guix-substitute "--substitute" "/gnu/store/vq7zyb4hm= lrafflmrcjbqccxp4dsx0s3-bash" "/tmp/t") sha256:1as8649aqaibahhhrvkj10ci8shpi4hq5n7gnik8rhhy0dc1jarg Downloading http://ci.guix.gnu.org/nar/lzip/vq7zyb4hmlrafflmrcjbqccxp4dsx0s= 3-bash... bash 717KiB +nan.0TiB/s 00:00 [ ] = 0.0%ice-9/boot-9.scm:1669:16: In procedure raise-exception: Wrong type to apply: #f Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(guile-user) [1]> ,bt In ice-9/boot-9.scm: 1669:16 0 (raise-exception _ #:continuable? _) scheme@(guile-user) [1]> ,q --8<---------------cut here---------------end--------------->8--- Trick to get a proper backtrace, I added a breakpoint on =E2=80=98raise-exception=E2=80=99: --8<---------------cut here---------------start------------->8--- scheme@(guile-user) [1]> ,bt In ice-9/boot-9.scm: 1731:15 9 (with-exception-handler # _ #:unwind? _ #:unwind-for-type _) 1736:10 8 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) 1731:15 7 (with-exception-handler # _ #:unwind? _ #:unwind-for-type _) In guix/scripts/substitute.scm: 1162:10 6 (_) 1008:19 5 (process-substitution _ "/tmp/t" #:cache-urls _ #:acl _ #:prin= t-build-trace? _) In guix/utils.scm: 212:12 4 (decompressed-port _ _) In lzlib.scm: 589:2 3 (make-lzip-input-port #) 287:25 2 (_) 287:25 1 (_) In ice-9/boot-9.scm: 1615:4 0 (raise-exception #<&compound-exception components: (#<&asserti= on-failure> #<&origin origin: #f> #<&message message: "Wrong type to apply:= ~S"> #<&irritants irritants: (#f)> #<&exc?>) --8<---------------cut here---------------end--------------->8--- This is because under the hood liblz.so could not be loaded (but the actual error is silently swallowed): --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> ,m(lzlib) scheme@(lzlib)> (lzlib-procedure int "LZ_decompress_open" '()) $1 =3D #f scheme@(lzlib)> %liblz=20 $2 =3D "liblz" scheme@(lzlib)> (dynamic-link %liblz) ice-9/boot-9.scm:1669:16: In procedure raise-exception: In procedure dynamic-link: file: "liblz", message: "file not found" Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(lzlib) [1]> ,q --8<---------------cut here---------------end--------------->8--- Compare with a native build of guile-lzlib on GNU/Linux: --8<---------------cut here---------------start------------->8--- scheme@(lzlib)> %liblz $2 =3D "/gnu/store/jqr5bz89gfwhxcndnhq333dyclvkq7ws-lzlib-1.11/lib/liblz" --8<---------------cut here---------------end--------------->8--- Indeed, the cross-compilation build log shows: --8<---------------cut here---------------start------------->8--- checking dependency style of i586-pc-gnu-gcc... none checking lzlib's file name...=20 --8<---------------cut here---------------end--------------->8--- Ludo=E2=80=99. ------------=_1601323142-11581-1--