Skip to contentSkip to conversation

Problem compiling 2.6.12

DISCUSSION Nick Warne 3 participants 5 messages Jun 22, 2005 – Jun 23, 2005

lore
Share & tools
lore

Nick Warne

author
#0 lore raw
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.o

In 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..."
#1 lore raw
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.o

In 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 Seed
author
#2 lore raw
Quoted 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.o

In 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.h shipped 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..."
#3 lore raw
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.o

In 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.h shipped 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 Seed
#4 lore raw
In reply to Nick Warne

On 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.'