X-Loop: help-debbugs@HIDDEN Subject: bug#68494: cross-compile code for LD setup does not use the right system macro Resent-From: Mike Frysinger <vapier@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-libtool@HIDDEN Resent-Date: Tue, 16 Jan 2024 01:33:02 +0000 Resent-Message-ID: <handler.68494.B.170536874829265 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 68494 X-GNU-PR-Package: libtool X-GNU-PR-Keywords: To: Eric PAIRE <eric.paire@HIDDEN> Cc: 8912 <at> debbugs.gnu.org, 68494 <at> debbugs.gnu.org X-Debbugs-Original-Cc: 8912 <at> debbugs.gnu.org, "bug-libtool@HIDDEN" <bug-libtool@HIDDEN> Received: via spool by submit <at> debbugs.gnu.org id=B.170536874829265 (code B ref -1); Tue, 16 Jan 2024 01:33:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Jan 2024 01:32:28 +0000 Received: from localhost ([127.0.0.1]:47323 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1rPYJY-0007bw-7H for submit <at> debbugs.gnu.org; Mon, 15 Jan 2024 20:32:28 -0500 Received: from lists.gnu.org ([2001:470:142::17]:60068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <vapier@HIDDEN>) id 1rPYJW-0007bY-00 for submit <at> debbugs.gnu.org; Mon, 15 Jan 2024 20:32:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <vapier@HIDDEN>) id 1rPYJP-0004gd-GY for bug-libtool@HIDDEN; Mon, 15 Jan 2024 20:32:19 -0500 Received: from woodpecker.gentoo.org ([140.211.166.183] helo=smtp.gentoo.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from <vapier@HIDDEN>) id 1rPYJM-0001w9-HM for bug-libtool@HIDDEN; Mon, 15 Jan 2024 20:32:19 -0500 Received: by smtp.gentoo.org (Postfix, from userid 559) id DF95B3432A0; Tue, 16 Jan 2024 01:32:12 +0000 (UTC) From: Mike Frysinger <vapier@HIDDEN> User-Agent: GNU debbugs/0 Message-Id: <20240116013212.DF95B3432A0@HIDDEN> Date: Tue, 16 Jan 2024 01:32:12 +0000 (UTC) Received-SPF: pass client-ip=140.211.166.183; envelope-from=vapier@HIDDEN; helo=smtp.gentoo.org X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.6 (/) 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: -0.4 (/) On Tue, 21 Jun 2011 14:12:02 +0200, Eric PAIRE wrote: > While compiling on 64-bit Linux a package that will be executed on a 32-bit Linux ([--build=x86_64-unknown-linux-gnu] --host=i686-pc-linux-gnu), I am facing an issue with the value of the LD macro generated in libtool, as the libtool part of configure does not add the '-m elf_i386' option for LD to generate a 32-bit object/program. can you share an example project/configure/config.log showing the problem ? > Actually, the problem is that libtool.m4 checks for the build system type with $host, whereas it should be $build. I have understood that $build is the system on which the program is generated (64-bit in my case) and $host the system on which the program created (32-bit in my case) is meant to run. So the right macro should test build system, and not host. this is incorrect. $build controls where things are compiling. $host controls where the things will run. please see: https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.72/html_node/Specifying-Target-Triplets.html -mike
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Mike Frysinger <vapier@HIDDEN> Subject: bug#68494: Acknowledgement (cross-compile code for LD setup does not use the right system macro) Message-ID: <handler.68494.B.170536874829265.ack <at> debbugs.gnu.org> References: <20240116013212.DF95B3432A0@HIDDEN> X-Gnu-PR-Message: ack 68494 X-Gnu-PR-Package: libtool Reply-To: 68494 <at> debbugs.gnu.org Date: Tue, 16 Jan 2024 01:33:03 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-libtool@HIDDEN If you wish to submit further information on this problem, please send it to 68494 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 68494: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D68494 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
Received: (at control) by debbugs.gnu.org; 16 Jan 2024 02:48:03 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 15 21:48:03 2024 Received: from localhost ([127.0.0.1]:47361 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1rPZUh-0006Lr-45 for submit <at> debbugs.gnu.org; Mon, 15 Jan 2024 21:48:03 -0500 Received: from woodpecker.gentoo.org ([140.211.166.183]:39416 helo=smtp.gentoo.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <vapier@HIDDEN>) id 1rPZUf-0006Ko-JJ for control <at> debbugs.gnu.org; Mon, 15 Jan 2024 21:48:02 -0500 Received: by smtp.gentoo.org (Postfix, from userid 559) id 0D2A034328C; Tue, 16 Jan 2024 02:47:55 +0000 (UTC) From: Mike Frysinger <vapier@HIDDEN> To: control <at> debbugs.gnu.org Subject: Control message User-Agent: GNU debbugs/0 Message-Id: <20240116024755.0D2A034328C@HIDDEN> Date: Tue, 16 Jan 2024 02:47:54 +0000 (UTC) X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control 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: -3.3 (---) merge 68494 8912 thankyou
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.