[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Kernel will not compile

On Tue, 17 Jun 2003 at 9:25am, Gary Hennigan wrote:

:"Patrick Wiseman" <pwiseman@mindspring.com> writes:
:> On Tue, 17 Jun 2003 at 1:42am, Roberto Sanchez wrote:


:> :> Anyone know why this is not compiling?
:> No, but I grabbed the 2.4.20 source and had all sorts of other problems.
:> I'm on a 'testing' system; you too?  I suspect it's the testing gcc which
:> is causing the problem (from Googling another error I was getting trying
:> to compile 2.4.20).  Can anyone confirm?
:I think, in general, it's best to stick with 2.95 compilers for the
:kernel. There are exceptions, but the easiest route is to use gcc-2.95
:for compiling kernel source. You can do this by editing the
:kernel-source-2.4.20/Makefile and setting HOSTCC=gcc-2.95 and
:CC=$(CROSS_COMPILE)gcc-2.95. If you have external modules you're
:building then you'll also want to add CC=gcc-2.95 to the
:environment. Like:
:   CC=gcc-2.95 make-kpkg --revision foo.1 --bzimage kernel_image
:and then
:    CC=gcc-2.95 make-kpkg --revision foo.1 --bzimage modules_image

Thanks!  That worked.  I should pay closer attention - I didn't even know
I still had 2.95 on the system after upgrading, if that's the word, to


Patrick Wiseman                               pwiseman@mindspring.com
Linux user #17943                             *Google First, Ask Later*

Reply to: