Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756303AbXKGAMf (ORCPT ); Tue, 6 Nov 2007 19:12:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755962AbXKGAM0 (ORCPT ); Tue, 6 Nov 2007 19:12:26 -0500 Received: from mailout.stusta.mhn.de ([141.84.69.5]:36980 "EHLO mailhub.stusta.mhn.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755949AbXKGAMX (ORCPT ); Tue, 6 Nov 2007 19:12:23 -0500 Date: Wed, 7 Nov 2007 01:12:00 +0100 From: Adrian Bunk To: Arjan van de Ven Cc: Sam Ravnborg , Thomas =?utf-8?Q?B=C3=A4chler?= , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, linux-kbuild Subject: Re: 2.6.24-rc1-82798a1 compile failure (x86_64) Message-ID: <20071107001159.GR26163@stusta.de> References: <47266BF6.6070206@archlinux.org> <4726F510.9060207@archlinux.org> <472C47B4.4030808@archlinux.org> <20071103121149.GA22149@uranus.ravnborg.org> <20071104020217.GJ12045@stusta.de> <20071106093223.7e6f4f6c@laptopd505.fenrus.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20071106093223.7e6f4f6c@laptopd505.fenrus.org> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2142 Lines: 51 On Tue, Nov 06, 2007 at 09:32:23AM -0800, Arjan van de Ven wrote: > On Sun, 4 Nov 2007 03:02:17 +0100 > Adrian Bunk wrote: > > > On Sat, Nov 03, 2007 at 01:11:49PM +0100, Sam Ravnborg wrote: > > > On Sat, Nov 03, 2007 at 11:04:36AM +0100, Thomas Bächler wrote: > > > > Thomas Bächler schrieb: > > > > > > > > > > I just remembered, a friend of mine got it to compile with the > > > > > exact same toolchain, but with a different configuration (which > > > > > I don't have). He used a snapshot tarball from yesterday > > > > > though, not the git tree. > > > > > > > > > > > > > I found the problem and eliminated it. While this is my own > > > > fault, it is still a bug in either the kernel or the build > > > > system: I had CFLAGS set to "-Wall -O3 -march=native -pipe". I > > > > always thought the kernel would ignore those and set its own > > > > CFLAGS, but I was wrong. Either the -O3 or the -march=native > > > > break the build process on gcc 4.2.2. > > > > > > > The kernel will now honour the users CFLAGS setting as you just > > > discovered. The flags will be appended to the flags specified by > > > the kernel. > > >... > > I think we can solve a ton of issues if we don't make the CFLAGS > *append* but just *prepend*. That way, if the KConfig overrides a > certain CFLAG, that sticks... since gcc picks the last one in case of > conflicting options. That gives us both the honoring of cflags, and the > principle of least surprise in that KConfig options are honored... CFLAGS="-I/usr/include -I/usr/local/dist/include" I think the solution with KCFLAGS that is in 2.6.24-rc2 is the best one. cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/