[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rtl] root id
In message <3A9447A8.33037D4A@radar.mcgill.ca> Frederic Cazenave wrote:
>
> > > > > I have installed this files :
> > > > > 521612 -rw-r--r-- 1 root root 19090206 Feb 14 20:56
> > > > > linux-2.2.18.tar.gz
> > > > > 521622 -rw-r--r-- 1 root root 450860 Feb 16 15:10
> > > > > rtlinux-3.0.tar.gz
...
> gcc -v
> Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
> gcc version 2.96 20000731 (Red Hat Linux 7.0)
GCC as shipped with RH 7.0 is, ummm..., broken. Let's call it broken.
You cannot use it to compile Linux kernel code. RedHat includes
another (older, working) version of GCC for kernel code; it's called
"kgcc":
-> gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.0)
-> kgcc -v
Reading specs from /usr/lib/gcc-lib/i386-glibc21-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
You will find something like that in RedHat's kernel Makefiles:
CC := $(shell if which $(CROSS_COMPILE)kgcc > /dev/null 2>&1; \
then echo $(CROSS_COMPILE) kgcc; else echo $(CROSS_COMPILE)gcc; fi) \
-D__KERNEL__ -I$(HPATH)
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
A direct quote from the Boss: "We passed over a lot of good people to
get the ones we hired."