|
|
安装gcc-2.95.3的时候根据资料,打完补丁,用如下命令进行configure:
$../gcc-2.95.3/configure --target=$TARGET --prefix=$PREFIX \
>--without-headers --enable-languages=c --disable-threads
其中的$TARGET是arm-linux,configure之后通过,
但是make all-gcc或者是直接make,或者make bootstrap都出现错误(就是说不管怎么make都出现错误):
gcc -c -DCROSS_COMPILE -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config -I./../include ./config/arm/arm.c
./config/arm/arm.c: 在函数 ‘arm_override_options’ 中:
./config/arm/arm.c:286: 警告: assignment discards qualifiers from pointer target type
./config/arm/arm.c:530: 错误: 赋值运算中的左值无效
make[2]: *** [arm.o] 错误 1
make[2]: Leaving directory `/home/spirit/embedded/build-tools/gcc-2.95.3/gcc'
make[1]: *** [bootstrap] 错误 2
make[1]: Leaving directory `/home/spirit/embedded/build-tools/gcc-2.95.3/gcc'
make: *** [bootstrap] 错误 2
spirit@spirit-freeOS:~/embedded/build-tools/gcc-2.95.3$
因为它提示./config/arm/arm.c:530: 错误: 赋值运算中的左值无效,所以我将arm.c中的这行程序注释掉,但重新编译还是有新的错误出现!
请问大家这是怎么回事?谢谢 |
|