From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9327 Path: news.gmane.org!not-for-mail From: Alexander Monakov Newsgroups: gmane.linux.lib.musl.general Subject: Re: Compile error with --target=i386 Date: Tue, 16 Feb 2016 22:12:39 +0300 (MSK) Message-ID: References: <56C2E94C.7000705@gkmsoft.ru> <56C2FA8C.4020908@gkmsoft.ru> <20160216165409.GV9349@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1455649975 5472 80.91.229.3 (16 Feb 2016 19:12:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Feb 2016 19:12:55 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9340-gllmg-musl=m.gmane.org@lists.openwall.com Tue Feb 16 20:12:55 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1aVl3N-0003yJ-WB for gllmg-musl@m.gmane.org; Tue, 16 Feb 2016 20:12:54 +0100 Original-Received: (qmail 25662 invoked by uid 550); 16 Feb 2016 19:12:51 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 25639 invoked from network); 16 Feb 2016 19:12:51 -0000 In-Reply-To: <20160216165409.GV9349@brightrain.aerifal.cx> User-Agent: Alpine 2.20 (LNX 67 2015-01-07) Xref: news.gmane.org gmane.linux.lib.musl.general:9327 Archived-At: On Tue, 16 Feb 2016, Rich Felker wrote: > In the case of musl, CFLAGS is always passed even at the linking > stage; I think the problem is just at configure time, where the > user-provided CFLAGS are not used in all the configure-time tests. > Maybe this is contrary to the normal UI for configure scripts and > should be changed? I don't have a strong opinion whether it's contrary or not; my weak opinion is that it is contrary, indeed; but nevertheless I stand by my original point that -m32 is better when specified in $CC, generally speaking. If you look at the opening post, you'll see that -m32 does not appear on the quoted command line. If Petr did it as he has shown, he forgot to 'export' the variable; this would explain the failure (otherwise as you say it should have worked). Also please note that $CC should have -m32 (and any other ABI tweaks) for musl-gcc to work as intended. Alexander