高手过来看一下
我配置gcc-2.95.3我设置了如下配置:
../configure --target=$TARGET --prefix=${PREFIX} --without-headers --with-newlib --enable-language=c
并修改了gcc/config/arm/t-linux这个文件,将TARGET_LIBGCC2_CFLAGS = -fomit-frame-pointer -fPIC这一行改为:
TARGET_LIBGCC2_CFLAGS = -fomit-frame-pointer -fPIC -Dinhibit_libc -D__gthr_posix_h
但是出现了如下的错误:
decl.c: In function `start_struct':
decl.c:4451: error: argument "code" doesn't match prototype
ch-tree.h:736: error: prototype declaration
make[2]: *** [decl.o] Error 1
make[2]: Leaving directory `/root/armlinux ild-tools/gcc-2.95.3/gcc '
make[1]: *** [cc1chill] Error 2
make[1]: Leaving directory `/root/armlinux/build-tools/gcc-2.95.3/gcc'
make: *** [all-gcc] Error 2
我是在虚拟机上跑的,用的红旗,gcc version 3.4.3 20041212 (Asianux 2.0 3.4.3-9.EL4.2)
哪位高手指点一下呀