cnsword 发表于 2007-5-21 12:28:05

求助,制作交叉编译gcc时出现错误

checking whether make sets $(MAKE)... yes
checking 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

fycfy000 发表于 2007-6-1 11:50:21

configure +--disable-libmudflap即可

fycfy000 发表于 2007-6-1 12:11:09

如果编译成功了,回复一下过程,我刚搞定这个libmudflap的问题,后面又是出现没法libiberty的问题了,disable也不行,用的是gcc-4.2,fedora5下,host上的gcc是4.1版本,不知道是不是这个原因

cnsword 发表于 2007-6-4 22:22:05

后边出现了一个相似的错误,忘了是什么了,disable过去了。还有就是把binutils的目录给设一下,这个也出错过
页: [1]
查看完整版本: 求助,制作交叉编译gcc时出现错误