Skip to contentSkip to conversation

error when build linux-2.5.27

DISCUSSION zhengchuanbo 2 participants 2 messages Jul 22, 2002

lore
Share & tools
lore
#0 lore raw

when i build linux-2.5.27,i met some problem. the error message is as this:

linux-kernelmake[1]: Entering directory `/usr/src/linux-2.5.27/arch/i386/kernel'
gcc -Wp,-MD,./.entry.o.d -D__ASSEMBLY__ -D__KERNEL__ -I/usr/src/linux-2.5.27/i
nclude -nostdinc -iwithprefix include -traditional -c -o entry.o entry.S /usr/lib/gcc-lib/i386-redhat-linux/2.96/tradcpp0: Usage: /usr/lib/gcc-lib/i386-r edhat-linux/2.96/tradcpp0 [switches] input output
make[1]: *** [entry.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.5.27/arch/i386/kernel'
make: *** [arch/i386/kernel] Error 2

so how to solve the problem?
please cc. thanks.

chuanbo zheng
[email protected]

#1 lore raw
Quoted 11 lines · zhengchuanbo

when i build linux-2.5.27,i met some problem. the error message is as this:

linux-kernelmake[1]: Entering directory `/usr/src/linux-2.5.27/arch/i386/kernel'
gcc -Wp,-MD,./.entry.o.d -D__ASSEMBLY__ -D__KERNEL__ -I/usr/src/linux-2.5.27/i
nclude -nostdinc -iwithprefix include -traditional -c -o entry.o entry.S /usr/lib/gcc-lib/i386-redhat-linux/2.96/tradcpp0: Usage: /usr/lib/gcc-lib/i386-r edhat-linux/2.96/tradcpp0 [switches] input output
make[1]: *** [entry.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.5.27/arch/i386/kernel'
make: *** [arch/i386/kernel] Error 2

Hmmh, I have really no idea how that would happen, short of a compiler bug.

What version of gcc are you using? (2.96-X, it seems, what does "rpm -qa | grep gcc" say?)

Does the error go away without the -traditional?

--Kai