2002-07-22 03:18:59

by zhengchuanbo

[permalink] [raw]
Subject: error when build linux-2.5.27


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]


2002-07-22 15:36:22

by Kai Germaschewski

[permalink] [raw]
Subject: Re: error when build linux-2.5.27

On Mon, 22 Jul 2002, zhengchuanbo wrote:

>
> 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