All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@kernel.org>
To: Arjan van de Ven <arjan@infradead.org>
Cc: "Sam Ravnborg" <sam@ravnborg.org>,
	"Thomas Bächler" <thomas@archlinux.org>,
	"Thomas Gleixner" <tglx@linutronix.de>,
	"Ingo Molnar" <mingo@elte.hu>,
	linux-kernel@vger.kernel.org,
	linux-kbuild <linux-kbuild@vger.kernel.org>
Subject: Re: 2.6.24-rc1-82798a1 compile failure (x86_64)
Date: Wed, 7 Nov 2007 01:12:00 +0100	[thread overview]
Message-ID: <20071107001159.GR26163@stusta.de> (raw)
In-Reply-To: <20071106093223.7e6f4f6c@laptopd505.fenrus.org>

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 <bunk@kernel.org> 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


      reply	other threads:[~2007-11-07  0:12 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-29 21:46 2.6.24-rc1-82798a1 compile failure (x86_64) Thomas Bächler
2007-10-29 22:12 ` Thomas Gleixner
     [not found]   ` <47266BF6.6070206@archlinux.org>
     [not found]     ` <alpine.LFD.0.9999.0710300033470.3186@localhost.localdomain>
2007-10-30  9:10       ` Thomas Bächler
2007-11-03 10:04         ` Thomas Bächler
2007-11-03 12:11           ` Sam Ravnborg
2007-11-04  2:02             ` Adrian Bunk
2007-11-04 10:04               ` Ingo Molnar
2007-11-04 10:19                 ` Sam Ravnborg
2007-11-04 10:31                 ` David Miller
2007-11-04 11:16                   ` Sam Ravnborg
2007-11-04 12:27                     ` Thomas Bächler
2007-11-04 15:29                   ` Adrian Bunk
2007-11-04 15:55                     ` Oleg Verych
2007-11-04 16:19                     ` Giacomo Catenazzi
2007-11-04 16:34                       ` Adrian Bunk
2007-11-04 18:33                         ` Giacomo Catenazzi
2007-11-05  4:03                         ` David Miller
2007-11-04 18:10                     ` Sam Ravnborg
2007-11-05  4:01                     ` David Miller
2007-11-06 17:32               ` Arjan van de Ven
2007-11-07  0:12                 ` Adrian Bunk [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071107001159.GR26163@stusta.de \
    --to=bunk@kernel.org \
    --cc=arjan@infradead.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=sam@ravnborg.org \
    --cc=tglx@linutronix.de \
    --cc=thomas@archlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.