On Mon, 13 Nov 2000, Hossein S. Zadeh wrote:

> On Sat, 11 Nov 2000, Leonard den Ottolander wrote:
> 
> > > Has anyone been able to compile a kernel (any kernel; RPM or tar ball) on
> > > RH 7? I did edit the main Makefile and tried both gcc and kgcc to no
> > > avail.
> > 
> >  Why would you edit the Makefile? I suggest you don't. Try running make 
> > menuconfig. If you can't compile a kernel after that tell us the error 
> > messages you are getting. Don't forget to read the Kernel-HOWTO.
> 
> Leonard,
> Thanks for the reply.
> 
> I have been compiling kernels even before RedHat was a company (way back
> even before kernel 1.0 was out). Now all of a sudden I cannot compile ANY
> kernels (neither pristine kernels nor 2.2/2.4 RPM kernels) :-(
> 
> After some poking around, I realised that gcc 2.96 was the defualt
> compiler on RH7, and they also boundle egcs (as kgcc) for compiling
> kernels. So I edited the Makefile to use kgcc instead of gcc; but to no
> avail:-( 
> 
> I remember that I changed it only in one place in the Makefile. I just
> read another email on the list saying that there are two instances of gcc
> in the Makefile that need to be changed to kgcc. I'll give it a shot
> tonight.


Found the solution :-)
Sent to the list in case anyone else is scratching his head:

===================================================
<quote>
Quoted from an earlier post by Jason Costomiris To get my kernel compile
(2.2.17) to use it, I had to change line 25 of the top-level Makefile in
the kernel source tree.  Change "cc" to "kgcc", so it looks like this:

CC  =$(CROSS_COMPILE)kgcc -D__KERNEL__ -I$(HPATH)
</quote>
===================================================

cheers,
Hossein



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to