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

Re: [Sheflug] Forcing the use of kgcc



* Barrie Bremner (TheEnglishman [at] ecosse.net) wrote:
> Richard Lowe wrote:
> > 
> > * Barrie Bremner (TheEnglishman [at] ecosse.net) wrote:
> > >
> > >  OK, so RedHat are wierdos - including a CVS snapshot for gcc...
> > >
> > >  wierder still is the fact that "kgcc" which is used for kernel rebuilds
> > > is gcc-2.95.2...
> > >
> > >  How do I force my system to use kgcc?
> > >
> > >  The latest 2.2.18-pre kernels do it automagically, but how do I do for
> > > kernels that don't do their own magic?
> > 
> > Now this is just a guess (not very helpful I know, but I'm trying),
> > 
> > export CC=kgcc
> > 
> > before doing the build.
> 
> 
>  Mmmm. Found some stuff in the kernel archives, recommending changing
> the /usr/src/linux/Makefile.
> 
>  HOSTCC=kgcc
> 
>  running a rebuild as I type....and I've just checked, it fails. No
> bzImage...few errors there.
> 
>  Grrr.

http://www.redhat.com/support/docs/gotchas/7.0/gotchas-7-6.html

basically

change: 
  CC      =$(CROSS_COMPILE)gcc -D__KERNEL__ -I$(HPATH)  

for:
  CC      =$(CROSS_COMPILE)kgcc -D__KERNEL__ -I$(HPATH)

in the top level Makefile (/usr/src/linux/Makefile)



--
|*-------------------=| Richard Lowe |=------------------*|
| richlowe [at] btinternet.com                   UIN: 74724348 |           
|*-------------------------------------------------------*|
| Europe has the Kilogram and the Meter.                  |
| America has the Pound and the Inch.                     |
| Childrens TV has the Elephant and the Double Decker Bus |
|*-------------------------------------------------------*|
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.