LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
[stats]
From: Richard Sharpe <rsharpe@richardsharpe.com>
To : Matthew Geddes <mgeddes@tellurian.com.au>
Date: Tue, 14 Jan 2003 15:55:37 -0800 (PST)
Re: Black Magic and Kernel recompiles
On Wed, 15 Jan 2003, Matthew Geddes wrote:
> Hey all,
>
> For the entire 7.x series and release 8.0 of RedHat's distribution, I
> and a number of others have had problems when trying to recompile the
> kernel from the sources provided by RedHat. Has anyone worked out what
> black magic is required to build a RedHat kernel?
>
> I've tried using my usual build method, which works on all other
> distributions I run. I have also tried (on a freshly installed
> kernel-source-* RPM) the RedHat Way(tm):
>
> http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/custom-guide/ch-custom-kernel.html
>
> I've tried using an unmodified .config file from the configs directory.
> The architecture I'm building for (as well as the CPU model) all match,
> but it doesn't compile.
>
> The errors I see are different depending on which build process I follow
> and which .config options I use, but more often than not, gcc complains
> about syntax errors. The kernel headers also match the version of the
> kernel source and gcc is being called with the '-nostdinc', so it
> shouldn't be the fact that the kernel includes under /usr/include are
> not the version as the kernel (but rather the same as the kernel that
> was used to build glibc).
I think I got this to work once, and I think I posted the secret sauce to
LinuxSA at some stage. I think it is Makefile cruft left around.
You have to move the .config file out of the way, then do a 'make
reallyclean' or something like that, and then move the .config file back,
and then you are right.
Red Hat seem to have got this wrong for a long time.
Regards
-----
Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org,
sharpe[at]ethereal.com, http://www.richardsharpe.com
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.openprojects.net
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
[stats]
Return to the LinuxSA Mailing List Information Page