2.6.18-rc6-mm1 breaks glibc build
Greetings,
For whatever reason, glibc sets sysincludes to point to the running kernel's include directory ala...
sysincludes = -I /lib/modules/2.6.18-rc6-mm1-smp/build/include
in it's config.make instead of using installed headers, and this leads to the compile failure below.
I just edited config.make to point to different headers, dunno if it _should_ work as before (2.6.18-rc6 does) or not.
/lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h: Assembler messages:/lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h:22: Error: no such instruction: static inline void *ERR_PTR(long error)' /lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h:23: Error: junk at end of line, first unrecognized character is {' /lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h:24: Error: no such instruction: return (void *)error' /lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h:25: Error: junk at end of line, first unrecognized character is }' /lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h:27: Error: no such instruction: static inline long PTR_ERR(const void *ptr)' /lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h:28: Error: junk at end of line, first unrecognized character is {' /lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h:29: Error: no such instruction: return (long)ptr' /lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h:30: Error: junk at end of line, first unrecognized character is }' /lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h:32: Error: no such instruction: static inline long IS_ERR(const void *ptr)' /lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h:33: Error: junk at end of line, first unrecognized character is {' /lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h:34: Error: no such instruction: return unlikely(((unsigned long)ptr)>=(unsigned long)-4095)' /lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h:35: Error: junk at end of line, first unrecognized character is }' make[2]: *** [/usr/local/src/gnu/glibc/snapshots/glibc-20060904/i686-suse-linux/csu/sysdep.o] Error 1
make[2]: Leaving directory `/usr/local/src/gnu/glibc/snapshots/glibc-20060904/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/usr/local/src/gnu/glibc/snapshots/glibc-20060904'
make: *** [all] Error 2
Quoted 5 lines · Mike Galbraith
For whatever reason, glibc sets sysincludes to point to the running kernel's include directory ala...
sysincludes = -I /lib/modules/2.6.18-rc6-mm1-smp/build/includein it's config.make instead of using installed headers, and this leads to the compile failure below.
That's wrong. When you run 'make headers_install', the result is placed in /lib/modules/uname -r/abi/include/
It looks like glibc is pointed at the raw kernel headers in the build tree.
Quoted 4 lines
I just edited config.make to point to different headers, dunno if it _should_ work as before (2.6.18-rc6 does) or not.
/lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h: Assembler messages:
Don't care. <linux/err.h> is not a header which is exported to userspace by 'make headers_install'. No userspace build, including glibc, should ever be able to see it.
Signature · 1 line
dwmw2
Quoted 7 lines · David Woodhouse
Quoted 1 line · Mike Galbraith
/lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h: Assembler messages:Don't care. <
linux/err.h> is not a header which is exported to userspace by 'makeheaders_install'. No userspace build, including glibc, should ever be able to see it.
I kinda figured that was going to be the answer, but not knowing why glibc was doing that, I thought it was worth a mention. Thanks.
-Mike