This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

error occured when cross compiling gcc


The source is counfigured as

===
./configure --target=arm-elf-linux --build=i686-pc-linux-gnu
--host=i686-pc-linux-gnu --disable-shared --disable-threads
--with-gnu-as --with-gnu-ld --enable-multilib --enable-languages=c
===

But some error occured at the last step

===
checking build system type... i686-pc-linux-gnu
checking host system type... arm-elf-linux-gnu
checking target system type... arm-elf-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for arm-elf-linux-strip... arm-elf-linux-strip
checking for --enable-version-specific-runtime-libs... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for arm-elf-linux-gcc...
/home/yong/software/toolchain/gcc/gcc-4.1.1/host-i686-pc-linux-gnu/gcc/xgcc
-B/home/yong/software/toolchain/gcc/gcc-4.1.1/host-i686-pc-linux-gnu/gcc/
-B/usr/local/arm-elf-linux/bin/ -B/usr/local/arm-elf-linux/lib/
-isystem /usr/local/arm-elf-linux/include -isystem
/usr/local/arm-elf-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]: *** [configure-target-libmudflap] Error 1
make[1]: Leaving directory `/home/yong/software/toolchain/gcc/gcc-4.1.1'
make: *** [all] Error 2
===


How can I solve this problem?


Thanks.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]