From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9329 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Compile error with --target=i386 Date: Tue, 16 Feb 2016 14:49:22 -0500 Message-ID: <20160216194922.GW9349@brightrain.aerifal.cx> 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 1455652179 14770 80.91.229.3 (16 Feb 2016 19:49:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Feb 2016 19:49:39 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9342-gllmg-musl=m.gmane.org@lists.openwall.com Tue Feb 16 20:49:38 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 1aVlcv-0003pA-Mv for gllmg-musl@m.gmane.org; Tue, 16 Feb 2016 20:49:37 +0100 Original-Received: (qmail 15560 invoked by uid 550); 16 Feb 2016 19:49:35 -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 15539 invoked from network); 16 Feb 2016 19:49:35 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:9329 Archived-At: On Tue, Feb 16, 2016 at 10:12:39PM +0300, Alexander Monakov wrote: > 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. Yes, I agree with all this. I was just wondering if we should be including that invoking user's CFLAGS when running tests in configure. Right now I think it's inconsistent whether we do or not. Rich