Suddenly errors compiling kernels (any of them)
Erik Slagter
erik at slagter.name
Sun Jun 24 13:25:31 UTC 2007
After the last update of FC7 "updates" I no longer can compile any kernel.
Symptoms:
> CHK include/linux/version.h
> CHK include/linux/utsrelease.h
> CC arch/i386/kernel/asm-offsets.s
> In file included from include/asm/bitops.h:9,
> from include/linux/bitops.h:9,
> from include/asm/cpufeature.h:11,
> from include/asm/processor.h:16,
> from include/asm/atomic.h:5,
> from include/linux/crypto.h:20,
> from arch/i386/kernel/asm-offsets.c:7:
> include/asm/alternative.h:9: error: expected specifier-qualifier-list before ‘u8’
> In file included from include/asm/bitops.h:366,
> from include/linux/bitops.h:9,
> from include/asm/cpufeature.h:11,
> from include/asm/processor.h:16,
> from include/asm/atomic.h:5,
> from include/linux/crypto.h:20,
> from arch/i386/kernel/asm-offsets.c:7:
> include/asm-generic/bitops/sched.h:15:5: warning: "BITS_PER_LONG" is not defined
> include/asm-generic/bitops/sched.h:21:7: warning: "BITS_PER_LONG" is not defined
> include/asm-generic/bitops/sched.h:32:2: error: #error BITS_PER_LONG not defined
etc.
I noticed that the asm/types.h file in x86_64 does have the u8 and
BITS_PER_LONG defined, although the i386 (which I'm using) doesn't?! But
it seems it has been this way for ages.
It looks like the last gcc release (gcc-4.1.2-12) skips some system
header that defines these? Or the latest glibc-headers
(glibc-headers-2.6-3) has something odd irt kernel compiling?
Please note again that I have been able to compile kernels on this
system without any problem for ages.
Tried kernels: 2.6.20.3 and 2.6.22-rc2, both of wich have been compiled
successfully before.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3315 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070624/61e0080e/attachment-0001.bin>
More information about the fedora-list
mailing list