Problem compiling 2.6.12
Quoted 7 lines · George Kasica
Tried that here and got not much farther...here's the error:
[root@eagle linux]# make bzImage
CHK include/linux/version.h SPLIT include/linux/autoconf.h -> include/config/* HOSTCC scripts/mod/sumversion.oIn file included from
/usr/include/linux/errno.h:4,
That last line looks wrong... I think you may have symlinks linking to other older kernel header stuff.
Easy way to test is untar the Linux.2.6.12 to a totally new location (say /home/~/tmp/) and try a build with just the default config.
Nick
Signature · 2 lines
"When you're chewing on life's gristle, Don't grumble, Give a whistle..."
Quoted 10 lines · Nick Warne
Quoted 7 lines · George Kasica
Tried that here and got not much farther...here's the error:
[root@eagle linux]# make bzImage
CHK include/linux/version.h SPLIT include/linux/autoconf.h -> include/config/* HOSTCC scripts/mod/sumversion.oIn file included from
/usr/include/linux/errno.h:4,
Quoted 3 lines
That last line looks wrong... I think you may have symlinks linking to other older kernel header stuff.
...
No, it looks correct.
That's the copy of linux/errno.h shipped with glibc and that's correct when using HOSTCC.
The problem seems to be the /usr/local/ stuff.
Quoted 1 line
Nick
cu
Adrian
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon SeedQuoted 10 lines · Adrian Bunk
Quoted 9 lines · Nick Warne
Quoted 7 lines · George Kasica
Tried that here and got not much farther...here's the error:
[root@eagle linux]# make bzImage
CHK include/linux/version.h SPLIT include/linux/autoconf.h -> include/config/* HOSTCC scripts/mod/sumversion.oIn file included from
/usr/include/linux/errno.h:4,
Quoted 8 lines
Quoted 3 lines
That last line looks wrong... I think you may have symlinks linking to other older kernel header stuff.
...No, it looks correct.
That's the copy of
linux/errno.hshipped with glibc and that's correct when using HOSTCC.
Is it? I thought kernel didn't care what Glibc or what kernel headers you had (that is system requirement) - it is automous. Isn't HOSTCC explicitly just what compiler you have?
I build regular in other places... my latest builds are on /mnt/hdb/
Nick
Signature · 2 lines
"When you're chewing on life's gristle, Don't grumble, Give a whistle..."
Quoted 17 lines · Nick Warne
Quoted 16 lines · Adrian Bunk
Quoted 9 lines · Nick Warne
Quoted 7 lines · George Kasica
Tried that here and got not much farther...here's the error:
[root@eagle linux]# make bzImage
CHK include/linux/version.h SPLIT include/linux/autoconf.h -> include/config/* HOSTCC scripts/mod/sumversion.oIn file included from
/usr/include/linux/errno.h:4,Quoted 3 lines
That last line looks wrong... I think you may have symlinks linking to other older kernel header stuff.
...No, it looks correct.
Quoted 7 lines
Quoted 2 lines
That's the copy of
linux/errno.hshipped with glibc and that's correct when using HOSTCC.Is it? I thought kernel didn't care what Glibc or what kernel headers you had (that is system requirement) - it is automous. Isn't HOSTCC explicitly just what compiler you have?
...
CC is the compiler to actually compile the kernel for the target platform.
HOSTCC is the compiler to build helper programs for kernel compilation.
The helper programs HOSTCC compiles aren't part of the kernel, they are ordinary userspace programs that could have as well been written in Perl.
Quoted 1 line
Nick
cu
Adrian
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon SeedOn 22 Jun 2005, Nick Warne stipulated:
Quoted 3 lines
Is it? I thought kernel didn't care what Glibc or what kernel headers you had (that is system requirement) - it is automous. Isn't HOSTCC explicitly just what compiler you have?
HOSTCC is a non-cross-compiler, i.e. for building userspace stuff to run on the build machine. There are a number of such things built during a normal kernel build (code generators, the config system, et al) and they use the C library just like any userspace app does.
Signature · 2 lines
`It's as bizarre an intrusion as, I don't know, the hobbits coming home to find that the Shire has been taken over by gangsta rappers.'