kernel2.4.18 problem

Ben benhoskings at
Fri Oct 4 04:09:33 PDT 2002

Yeah, you're right. I don't know why I started talking about CFLAGS, 
cause the kernel config takes care of flags itself.

Then again, I once tried to mess with the kernel Makefile to make it 
build with -O3... the kernel source wasn't at all impressed and 
procedded to give me a few kilometres of error as I remember. :D

Ken Moffat wrote:
> On Sat, 21 Sep 2002, Ben Hoskings wrote:
>>Rebooting problems in my experience are caused by comiling with 
>>inappropriate optimisations - like -march-i686, then trying to run it on 
>>a pentium classic. Try clearing your CFLAGS and CXXFLAGS ev's, and check 
>>the processor type in the kernel config to make sure it's right for the 
>>target system.
>  I almost agree with this, but unless you are into deep voodoo *never*
> play about with CFLAGS for the kernel - you don't need to set them *or*
> unset them, the kernel should default to -O2, anything else is
> unsupported. (Actually, I haven't tested if the kernel will ignore my
> CFLAGS if I set them to something exotic, this part is just supposition,
> but I never explicitly set CFLAGS for my kernels and they all build -O2.)
>  The biggest error with kernel configurations is picking up the default
> .config which *might* be appropriate for Linus or Marcelo but is probably
> not appropriate for you, Ben's example follows from this. Funnily enough,
> on ppc the default .config looks as if it might be useful for most ppc
> users.
> Ken

Unsubscribe: send email to listar at
and put 'unsubscribe lfs-support' in the subject header of the message

More information about the lfs-support mailing list