From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from vigilia.groessler.org (vigilia.groessler.org [79.143.177.135]) by sourceware.org (Postfix) with ESMTPS id A1CA33836009 for ; Mon, 9 May 2022 12:13:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A1CA33836009 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=groessler.org Authentication-Results: sourceware.org; spf=none smtp.mailfrom=groessler.org Received: from [192.168.2.114] (p5495f53e.dip0.t-ipconnect.de [84.149.245.62]) by vigilia.groessler.org (8.16.0.45/8.14.6) with ESMTPS id 249CDYGG077558 (version=TLSv1.3 cipher=AEAD-AES128-GCM-SHA256 bits=128 verify=OK) for ; Mon, 9 May 2022 14:13:34 +0200 (CEST) Message-ID: <20188446-d3c5-2ebe-de7d-14fe03f981a0@groessler.org> Date: Mon, 9 May 2022 14:13:27 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: how should I configure my buuild for i386-*linux* Content-Language: en-US To: binutils@sourceware.org References: <66894813-ea77-858f-40e9-addaac539c04@oracle.com> <2a2f06b6-5a0c-4cdc-b4ef-2fcd21e3d9f6@oracle.com> <87sfpl8o7s.fsf@esperi.org.uk> <87y1zdh189.fsf@igel.home> <87ilqevrry.fsf@esperi.org.uk> From: Christian Groessler In-Reply-To: <87ilqevrry.fsf@esperi.org.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2022 12:13:38 -0000 On 5/9/22 14:01, Nick Alcock via Binutils wrote: > On 7 May 2022, Andreas Schwab told this: > >> On Mai 07 2022, Nick Alcock via Binutils wrote: >> >>> Thankfully the answer is pretty simple. Try configuring like this: >>> >>> configure CC="gcc -m32" ... >> That would would conflict with the value of the --host option. > Well, you'd use --host if you want to trigger a cross-compilation: but > most uses in this case are not cross-compilations at all but different > compiler configurations on a multiarch system capable of executing > x86-32 and x86-64 programs. Just flipping the CC flags is enough in this > case. Obviously before this can work you need a 32-bit libc etc etc > but almost everyone who's even thinking of doing this will either > already have one or will have one trivially available to install. If you're on a Debian system (maybe others), run "linux32" and configure in this subshell. It lets the programs think they are running on a 32bit machine. regards, chris