From unknown Sat Jun 14 18:45:07 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#68494 <68494@debbugs.gnu.org> To: bug#68494 <68494@debbugs.gnu.org> Subject: Status: cross-compile code for LD setup does not use the right system macro Reply-To: bug#68494 <68494@debbugs.gnu.org> Date: Sun, 15 Jun 2025 01:45:07 +0000 retitle 68494 cross-compile code for LD setup does not use the right system= macro reassign 68494 libtool submitter 68494 Mike Frysinger severity 68494 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 15 20:32:28 2024 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 ) id 1rPYJY-0007bw-7H for submit@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 ) id 1rPYJW-0007bY-00 for submit@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 ) id 1rPYJP-0004gd-GY for bug-libtool@gnu.org; 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 ) id 1rPYJM-0001w9-HM for bug-libtool@gnu.org; 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 To: Eric PAIRE Subject: Re: cross-compile code for LD setup does not use the right system macro User-Agent: GNU debbugs/0 Message-Id: <20240116013212.DF95B3432A0@smtp.gentoo.org> Date: Tue, 16 Jan 2024 01:32:12 +0000 (UTC) Received-SPF: pass client-ip=140.211.166.183; envelope-from=vapier@gentoo.org; 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-Debbugs-Envelope-To: submit Cc: 8912@debbugs.gnu.org, "bug-libtool@gnu.org" 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: -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 From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 15 21:48:03 2024 Received: (at control) by debbugs.gnu.org; 16 Jan 2024 02:48:03 +0000 Received: from localhost ([127.0.0.1]:47361 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPZUh-0006Lr-45 for submit@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 ) id 1rPZUf-0006Ko-JJ for control@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 To: control@debbugs.gnu.org Subject: Control message User-Agent: GNU debbugs/0 Message-Id: <20240116024755.0D2A034328C@smtp.gentoo.org> Date: Tue, 16 Jan 2024 02:47:54 +0000 (UTC) X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control 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 (---) merge 68494 8912 thankyou