From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id EMNJLrYFb18fbgAA0tVLHw (envelope-from ) for ; Sat, 26 Sep 2020 09:11:18 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QHgEKrYFb1/IEQAAB5/wlQ (envelope-from ) for ; Sat, 26 Sep 2020 09:11:18 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8D59C9404D0 for ; Sat, 26 Sep 2020 09:11:17 +0000 (UTC) Received: from localhost ([::1]:56696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kM6Ec-00047n-TE for larch@yhetil.org; Sat, 26 Sep 2020 05:11:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kM6EQ-00046R-Pg for bug-guix@gnu.org; Sat, 26 Sep 2020 05:11:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34247) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kM6EQ-0008JR-GC for bug-guix@gnu.org; Sat, 26 Sep 2020 05:11:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kM6EQ-0001Xc-Au for bug-guix@gnu.org; Sat, 26 Sep 2020 05:11:02 -0400 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 X-Spam-Score: -3.3 (---) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -0.01 X-TUID: yAalcihz0sa4 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.