keywords: gcc kgcc rh70 kernel comiles
any others?
Terry Collins wrote:
>
> I'm trying to do make bzImage (RH70 - 2.2.17) and getting this error
> that I can not fathom the meaning of. Can anyone explain what it means,
> and preferrably the fix or how to find the fix.
>
As Ken Yap reminded me;
Are you using kgcc? The RH7.0 gcc is broken for compiling kernels.
And Greg Hosler said;
I believe that you need to be using kgcc, rather than gcc, up until
2.2.18
And RH says at ;
http://www.redhat.com/support/docs/gotchas/7.0/gotchas-7-7.html#ss7.1
7.1 Compiling a kernel from source in Red Hat Linux 7
For various reasons, gcc is no longer able to compile the kernel from
source because it uses the 2.96 version of the GNU C Compiler. However,
it is still easy to compile
your kernel, as version 2.91.66 of the egcs C compiler has been included
with the distribution. Please note that the details involved with
compiling a kernel are not
covered here. For more information please read the Linux Kernel HOWTO at
http://www.redhat.com/mirrors/LDP/HOWTO/Kernel-HOWTO.html. This document
is
assuming you have a basic grasp of what is necessary to compile a kernel
and simply cannot get the @$&%@$@*% thing to compile in Red Hat Linux 7.
This
information only applies to pristine source, downloaded from a site such
as kernel.org, as the changes necessary to compile have already been
made to the source from
the kernel-source-2.2.16-22.i386.rpm package.
After downloading and extracting the source in /usr/src, cd
to/usr/src/linux and open the Makefile in your favorite editor. You will
need to look for a line similar to this:
CC =$(CROSS_COMPILE)gcc -D__KERNEL__ -I$(HPATH)
This line specifies which C compiler to use to build the kernel. It
should be changed to:
CC =$(CROSS_COMPILE)kgcc -D__KERNEL__ -I$(HPATH)
for Red Hat Linux 7. The kgcc compiler is egcs 2.91.66. From here you
can proceed with the typical compiling steps.
.......
This now puts the fix into the Slug List archives.
In my case (2.2.17), the make file was not this clear, but mentioned
kgcc in preference to gcc and all I had to do was install the kgcc rpm
(some how all the compat* rpms were installed as well - from the "kgcc
compiler is egcs 2.91.66" bit above).
that fixed the "make bzImage" hanging.
Thanks.
--
Terry Collins {:-)}}} Ph(02) 4627 2186 Fax(02) 4628 7861
email: [EMAIL PROTECTED] www: http://www.woa.com.au
WOA Computer Services <lan/wan, linux/unix, novell>
"People without trees are like fish without clean water"
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug