From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kP5qM/LbiWBGBgAAgWs5BA (envelope-from ) for ; Thu, 29 Apr 2021 00:04:34 +0200 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 6IkdL/LbiWDMMgAAB5/wlQ (envelope-from ) for ; Wed, 28 Apr 2021 22:04:34 +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 52FCE108F1 for ; Thu, 29 Apr 2021 00:04:34 +0200 (CEST) Received: from localhost ([::1]:36176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbsIJ-0005mL-4a for larch@yhetil.org; Wed, 28 Apr 2021 18:04:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36222) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbsHq-0005mE-B4 for bug-guix@gnu.org; Wed, 28 Apr 2021 18:04:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42752) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lbsHq-0007Fj-3j for bug-guix@gnu.org; Wed, 28 Apr 2021 18:04:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lbsHp-0006JP-Vu for bug-guix@gnu.org; Wed, 28 Apr 2021 18:04:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48088: libtool hardcodes native (cross-)compiler, incorrect when using libtool as cross-compiler Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 28 Apr 2021 22:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48088 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 48088@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161964743724250 (code B ref -1); Wed, 28 Apr 2021 22:04:01 +0000 Received: (at submit) by debbugs.gnu.org; 28 Apr 2021 22:03:57 +0000 Received: from localhost ([127.0.0.1]:54298 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbsHk-0006J4-Np for submit@debbugs.gnu.org; Wed, 28 Apr 2021 18:03:57 -0400 Received: from lists.gnu.org ([209.51.188.17]:37772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbsHh-0006Iv-N0 for submit@debbugs.gnu.org; Wed, 28 Apr 2021 18:03:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36162) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbsHh-0005lc-H9 for bug-guix@gnu.org; Wed, 28 Apr 2021 18:03:53 -0400 Received: from albert.telenet-ops.be ([2a02:1800:110:4::f00:1a]:36236) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lbsHe-00076G-9f for bug-guix@gnu.org; Wed, 28 Apr 2021 18:03:53 -0400 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by albert.telenet-ops.be with bizsmtp id yN3m240040mfAB406N3mnT; Thu, 29 Apr 2021 00:03:46 +0200 Message-ID: From: Maxime Devos Date: Thu, 29 Apr 2021 00:03:33 +0200 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-bqsbxLIQVyHb6S0hzwy5" 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=1619647426; bh=VJ9GsapFArO494hcz+PNd8uIyOv0OikmxBOzkKrNgoA=; h=Subject:From:To:Cc:Date; b=mBAu0mDKSZLCw8ZUWO6ktRjRpy3m96LbF1XpgBkCT9N6wtEHPusbD+wr94dY3gIDK gIN/a4VGGXIhitKjgGDP1wg5c+WiE2qR1NPHgdVPKvodKp5peBJ+8HeiLr71RqFlJo 4ZGo9RyQEHki/oltmZ5OmqqKUcZP1Q7NNk83d8baSu+a7HDd1PGaTPmZBFTpdG4tu6 lSlI6u3cKX2kzIgbsoO74xB6tM4U9BWWg4YHa1EfVfuQ5pXFYUWmo1EKY9v3gaORLU vuSSYx07R0nxllqqBEvgpory5sKzqlLxrF8YH8ym/3XhHrWvrFvBlXz/ZM6Df99Aby KyWBwoIoPWXUQ== Received-SPF: pass client-ip=2a02:1800:110:4::f00:1a; envelope-from=maximedevos@telenet.be; helo=albert.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=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: libtool@gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619647474; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=VJ9GsapFArO494hcz+PNd8uIyOv0OikmxBOzkKrNgoA=; b=nwZbhdOVdNJ6/zijYtROcX6Slj3Xv94etRvYBr/Z+wP3Q+lrr+NpVjtjz1ANx2dpCPPuhc Av8LiZ+grmMS0Fc1cgbGbk0c9qqIQB0VxdkUI878ezgmPMYvlu9qE//j3pHMbS/4dCk29u ZAc9/8gTmBz5A/AbRTzQUuMeo5yMTP8RhEJ3YoJDkY2Uwc7hmc7sDVdQFla+uRDK8ppfu4 OQ6Ywy8sPiNJTeFOp3sEHZsW1Rik+3YycOHIn4VlYh8J81wpqO1aqsa28ka40derYVnTpR +sclhEiAWWdOqeJ9enIbz1wanrbVjNAyadVD8nAHFuQrXXrSGV/qDWRAUw+SYA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619647474; a=rsa-sha256; cv=none; b=bcpdpYdly9u8leF6k6DFtzFmIxdcDzH63m5uPLhiE2MFy01E9gKPdSJet4sXqt4sniE12L 5WZaDqWb4OL2ifIymPikS19oshwYOxNVbqydjkjnwUQ2XcYzNE0HE5Y4VmjYbljeYj791q f/go8Bc3sLVUMXKGbnvrp6okHORVUB8lGsBTXubTUZYe4hyxHcDdqMNU7b4C7q51T+6PpP 1L1RdsghxrItDqrIN930Y1abbyA1c2P6cyCtwtYJjtdN/JkI71g39vl+sutKWrOON5RhjK i8bJsOii0V0XwfO4QYRRYq3GPQL+J6nBjrVBvJZBHfj8FexaUGuNaFy7NSUajA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=mBAu0mDK; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); 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-Migadu-Spam-Score: -3.45 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=mBAu0mDK; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); 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-Migadu-Queue-Id: 52FCE108F1 X-Spam-Score: -3.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: G9DXDJDwhyCM --=-bqsbxLIQVyHb6S0hzwy5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, [CC'ing to libtool mailing list, maybe they can shed some light on the matt= er of how libtool can be used as a cross-compiler. This concerns the definiti= on of the libtool package in guix.] $ cat $(guix build libtool)/bin/libtool Some relevant output: > # A C compiler. > LTCC=3D"gcc" > # Compile-time system search path for libraries. > sys_lib_search_path_spec=3D"/gnu/store/8zvc5mvk0xm3ygrxsgpyy5ilxb5rzjry-p= erl-5.30.2/lib /gnu/store/i5a9qb07y9xjh9ry8hp6km43kji16nmd-libltdl-2.4.6/li= b /gnu/store/i8h2pcxqdq07ijm3ibkka8f4smn1w48v-bzip2- 1.0.8/lib /gnu/store/9860f1abqj8wjjnwl8a9v54pdcc3bhgf-xz-5.2.4/lib /gnu/sto= re/60g7r3l01fd7c58yjbm6krgcwj1jkpwg-file-5.38/lib /gnu/store/swqdvwri9dbv6z= ssg6v0by7l05hd6wxp-gawk-5.0.1/lib /gnu/store/m1z7cdbqsqyp9xnjw5cvlb4a7gkcg3m4-binutils-2.34/lib /gnu/store/fa= 6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/lib /gnu/store/s3dcqzwqaakv1yx37b= y9chksdbkgih17-glibc-2.31-static/lib /gnu/store/hwcky7446s952w0mwchhmm211ll07zrq-glibc-utf8-locales-2.31/lib /gn= u/store/01b4w3m6mp55y531kyi1g8shh722kwqm-gcc-7.5.0-lib/lib/gcc/x86_64-unkno= wn-linux-gnu/7.5.0 /gnu/store/01b4w3m6mp55y531kyi1g8shh722kwqm-gcc-7.5.0-lib/lib " Usually, libtool uses the compiler it was passed. However, during linking, (at least during the compilation of libtomsmath II= RC), libtool uses LTCC instead. Thus, when a package X has libtool in native-in= puts, and it is being cross-compiled, it should really use a variant of libtool t= hat has been configured to set LTCC=3DTARGET-gcc (or LTCC=3DTARGET-clang). There do not seem to exist any such variants currently. (For a relatively = clean method for automatically using a cross-compiling variant, see the "pkg-conf= ig" macro.) Thus, I thought it would =E2=80=98simply=E2=80=99 be a matter of pa= ssing an appropriate "--target=3DTARGET" option to libtool's configure script when libtool is be= ing used as cross-compiler. But alas, libtool configure only supports --build and -= -host, no --target in sight! Any ideas? Maxime. --=-bqsbxLIQVyHb6S0hzwy5 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+4iGRcl7gUCYInbtRccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7vZeAQCGtyJdyUTwNktd8k1Ac6KrNlAA T3rqzbc6WwUYHTNC1QD9EQ6twfYyfl1s8VPhthGN3/ZrFEHqNnwAnZ0oTcINdwU= =GdcH -----END PGP SIGNATURE----- --=-bqsbxLIQVyHb6S0hzwy5--