From unknown Fri Aug 08 22:21:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#48086: libtool refers to native bash instead of a cross-compiled bash Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 28 Apr 2021 21:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48086 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 48086@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161964618914142 (code B ref -1); Wed, 28 Apr 2021 21:44:01 +0000 Received: (at submit) by debbugs.gnu.org; 28 Apr 2021 21:43:09 +0000 Received: from localhost ([127.0.0.1]:54281 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbrxd-0003g2-E9 for submit@debbugs.gnu.org; Wed, 28 Apr 2021 17:43:09 -0400 Received: from lists.gnu.org ([209.51.188.17]:33532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbrxb-0003fu-27 for submit@debbugs.gnu.org; Wed, 28 Apr 2021 17:43:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbrxa-0002r4-Ih for bug-guix@gnu.org; Wed, 28 Apr 2021 17:43:06 -0400 Received: from baptiste.telenet-ops.be ([2a02:1800:120:4::f00:13]:46964) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lbrxV-0002bJ-7Y for bug-guix@gnu.org; Wed, 28 Apr 2021 17:43:06 -0400 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by baptiste.telenet-ops.be with bizsmtp id yMiu2400b0mfAB401Miv0G; Wed, 28 Apr 2021 23:42:55 +0200 Message-ID: <1cc7dfe8243ad4618be455688ba1e12b8ee3deed.camel@telenet.be> From: Maxime Devos Date: Wed, 28 Apr 2021 23:42:26 +0200 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-SMf83yJ5ivaikrwU8jIr" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1619646175; bh=XRny4ZUvxDQCvxh9UgrlofNrnyUmqnDSn/MxSEjfTxY=; h=Subject:From:To:Date; b=ZLyqWniksf5VyHzjOEfm8Slcuqwnpv1CmxlzulQV9eGgIhiGXVNh+tASQ6b9xmBPl pZ2bTxjWwRK6wQ+WqGoNPyv9hAmnACKWG+x2TVzDquBnOJj8DAQRW4KFgzf7XKW7eL WB7XOLTF420D49nur5Xf/k5/fI0N5qBa+rh0BfzB79l4TRONwelXXRkp9Z9YD1LQi8 T8m5BDdZYRTb+1FF9lBPNU1pW4qKa5kyfl7n6zodM9CGvjvWjx/ihECg1jueUTawCL n3hmpMwVefTeaGgO6xvsIZDJ4rdQozd3DUW4bwyeg5iD99g4D5x4+Ysc4lqqOc9rQ6 bl9YEw3gQD/hQ== Received-SPF: pass client-ip=2a02:1800:120:4::f00:13; envelope-from=maximedevos@telenet.be; helo=baptiste.telenet-ops.be X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.2 (/) 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: -2.3 (--) --=-SMf83yJ5ivaikrwU8jIr Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable severity: minor To reproduce: $ guix --version > guix (GNU Guix) f97e220b45aba1c10f155e760667df7ef4cae382 > [...] This is on a x86_64-linux-gnu, without transparant qemu emulation. $ guix build libtool --target=3Daarch64-linux-gnu > /gnu/store/yspdgc9wk8ap20729f6a7k0f640r6h7c-libtool-2.4.6 $ head -n 1 /gnu/store/yspdgc9wk8ap20729f6a7k0f640r6h7c-libtool-2.4.6/bin/l= ibtool > #! /gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/ba= sh $ objdump -h /gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.1= 6/bin/bash > /gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/bash:= \ > file format elf64-x86-64 > [...] It seems the "libtool" script refers to a native bash, instead of the cross= bash, even though I used --target=3Daarch64-linux-gnu! What I expected: a libtool package that I could run in a aarch64 VM. Why? One possible use case, replacing "aarch64-linux-gnu" with "i586-pc-gnu= ": (cross-compiled) childhurd images that have a (cross-compiled) GCC, binutil= s, autoconf, automake, make, ... in the system profile, ready for Hurd hacking= . There are also some other problems when using libtool in as a cross-compile= r, but unless you're using libtool in a Canadian cross, these are separate iss= ues, so I'll leave those for a separate bug report. Greetings, Maxime. --=-SMf83yJ5ivaikrwU8jIr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYInWwhccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7qd9AQDFv5Bfdpvz6EFcOfm2i3uQq6Rv 6ITHfJi6kNafEO1GngD+O4G1igvdkmWjyY/p8LDugLe4e57SEkwO1hK99NTLUQc= =v+CU -----END PGP SIGNATURE----- --=-SMf83yJ5ivaikrwU8jIr-- From unknown Fri Aug 08 22:21:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#48086: libtool refers to native bash instead of a cross-compiled bash Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 04 May 2021 19:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48086 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxime Devos Cc: 48086@debbugs.gnu.org Received: via spool by 48086-submit@debbugs.gnu.org id=B48086.162015495327590 (code B ref 48086); Tue, 04 May 2021 19:03:01 +0000 Received: (at 48086) by debbugs.gnu.org; 4 May 2021 19:02:33 +0000 Received: from localhost ([127.0.0.1]:54839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1le0JV-0007Ak-G7 for submit@debbugs.gnu.org; Tue, 04 May 2021 15:02:33 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35512) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1le0JT-00075c-G4 for 48086@debbugs.gnu.org; Tue, 04 May 2021 15:02:31 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58097) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1le0JN-0007xJ-C9; Tue, 04 May 2021 15:02:25 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=60436 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1le0JM-0003ou-TW; Tue, 04 May 2021 15:02:25 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <1cc7dfe8243ad4618be455688ba1e12b8ee3deed.camel@telenet.be> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 15 =?UTF-8?Q?Flor=C3=A9al?= 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: Tue, 04 May 2021 21:02:23 +0200 In-Reply-To: <1cc7dfe8243ad4618be455688ba1e12b8ee3deed.camel@telenet.be> (Maxime Devos's message of "Wed, 28 Apr 2021 23:42:26 +0200") Message-ID: <87h7jimif4.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-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 Maxime, Maxime Devos skribis: > $ guix build libtool --target=3Daarch64-linux-gnu >> /gnu/store/yspdgc9wk8ap20729f6a7k0f640r6h7c-libtool-2.4.6 > $ head -n 1 /gnu/store/yspdgc9wk8ap20729f6a7k0f640r6h7c-libtool-2.4.6/bin= /libtool >> #! /gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/b= ash > $ objdump -h /gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0= .16/bin/bash >> /gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/bash= : \ >> file format elf64-x86-64 >> [...] > > It seems the "libtool" script refers to a native bash, instead of the cro= ss bash, > even though I used --target=3Daarch64-linux-gnu! As discussed as , I think this is not much of a problem because this =E2=80=98libtool=E2=80=99 is unused in p= ractice. I=E2=80=99d be in favor of dismissing this bug; WDYT? Thanks, Ludo=E2=80=99.