求助,制作交叉编译gcc时出现错误
checking whether make sets $(MAKE)... yeschecking for arm-linux-strip... /mygod/arm/arm-linux/bin/strip
checking for --enable-version-specific-runtime-libs... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for arm-linux-gcc... /mygod/gcc-4.2.0/host-i686-pc-linux-gnu/gcc/xgcc -B/mygod/gcc-4.2.0/host-i686-pc-linux-gnu/gcc/ -B/mygod/arm/arm-linux/bin/ -B/mygod/arm/arm-linux/lib/ -isystem /mygod/arm/arm-linux/include -isystem /mygod/arm/arm-linux/sys-include
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
make: *** 错误 1
make: Leaving directory `/mygod/gcc-4.2.0'
make: *** 错误 2
我的配置参数如下
./configure --target=arm-linux --prefix=/mygod/arm --disable-shared --disable-threads --disable-nls --with-newlib --enable-languages=c --without-headers --with-binutils=/mygod/arm/arm-linux/bin configure +--disable-libmudflap即可 如果编译成功了,回复一下过程,我刚搞定这个libmudflap的问题,后面又是出现没法libiberty的问题了,disable也不行,用的是gcc-4.2,fedora5下,host上的gcc是4.1版本,不知道是不是这个原因 后边出现了一个相似的错误,忘了是什么了,disable过去了。还有就是把binutils的目录给设一下,这个也出错过
页:
[1]