Re: kernel compilation problems


Subject: Re: kernel compilation problems
From: Greg Madden (pabi@gci.net)
Date: Fri Dec 07 2001 - 07:35:41 AKST


Jim Gribbin wrote:
>
> I wanted to try playing around with some patches & software that hasn't
> been updated to work in the 2.4.x kernel tree so I am attempting to
> compile a 'stock' 2.2.x kernel from the kernel mirror.
>
> I am starting out with rh7.0 with all updates (that I know of anyway).
> It comes standard with a RH patched 2.2.16 kernel, definantly non-stock.
>
> I downloaded the stock 2.2.16 kernel source from the aklug mirror and
> checked it with gpg and unpacked it into /usr/src.
>
> I ran 'make mrproper', and 'make oldconfig' (choosing only the
> defaults).
>
> When I 'make bzlilo' I get all sorts of problems and warnings and finish
> up with 1 - error 1 and 2 - error 2's and no kernel.
>
> examples of the messages I get are:
>
> extra tokens at end of #endif directive
> extra tokens at end of #undif directive
> Warning: using '%eax' instead of '%ax' due to 'l' suffix
> warning: parting ...(a bunch of different variables)... does not give a
> valid preprocessing token
> Warning: indirect lcall without '*'
>
> I probably get each of these 50 times or so.
>
> It seems that a stock kernel should compile fairly easily - maybe not
> run, but compile. Is it possible that I am using an incompatable gcc (I
> have 2.96-85)?
>
> Any pointers to what I might have going wrong would be appreciated.
>
> Jim

If you use 'oldconfig' does this imply using the '.config' file from the
patched version of kernel source that shipped with Redhat ? You won't be
able to use the .config file from patched kernel source on clean kernel
source.

-- 
Greg Madden
Precision Air Balance, Inc.
email:pabi@gci.net
Phone:(907)276-0461 Fax:(907)258-0461



This archive was generated by hypermail 2a23 : Fri Dec 07 2001 - 07:36:16 AKST