GNU bug report logs - #48086
libtool refers to native bash instead of a cross-compiled bash

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Severity: minor; Reported by: Maxime Devos <maximedevos@HIDDEN>; dated Wed, 28 Apr 2021 21:44:01 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Apr 2021 21:43:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 28 17:43:09 2021
Received: from localhost ([127.0.0.1]:54281 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lbrxd-0003g2-E9
	for submit <at> 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 <maximedevos@HIDDEN>) id 1lbrxb-0003fu-27
 for submit <at> 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 <maximedevos@HIDDEN>)
 id 1lbrxa-0002r4-Ih
 for bug-guix@HIDDEN; 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 <maximedevos@HIDDEN>)
 id 1lbrxV-0002bJ-7Y
 for bug-guix@HIDDEN; 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@HIDDEN>
Subject: libtool refers to native bash instead of a cross-compiled bash
From: Maxime Devos <maximedevos@HIDDEN>
To: bug-guix@HIDDEN
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@HIDDEN; 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-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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--





Acknowledgement sent to Maxime Devos <maximedevos@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#48086; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 28 Apr 2021 21:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.