hey mates, I'm compiling a cross-toolchain for ARM and i get error on compiling gcc in pass2. ERROR:- configure: error: in `/home/toolchain/Control-project/build-tools/build-gcc/arm-linux/libgomp': configure: error: C compiler cannot create executables See `config.log' for more details. make[1]: *** [configure-target-libgomp] Error 1 make[1]: Leaving directory `/home/toolchain/Control-project/build-tools/build-gcc' make: *** [all] Error 2 configure it with: ../gcc-4.5.1/configure --target=${TARGET} --prefix=$PREFIX --enable-languages="c,c++" --disable-shared --disable-threads And im using these packages:- linux-2.6.18 (headers) gcc-4.5.1 gmp-5.0.1 mpc-0.8.2 mpfr-3.0.0 binutils-2.20.1 glibc-2.13 glibc-ports-2.13 working on- fedora15 + linux-2.6.38. I've no idea whats wrong with this. plzzzzzz... help me find a solution as soon as possible. Thnk you
Error in compiling gcc (pass2)
build-gcc2/arm-linux/libgomp/config.log :- This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by GNU OpenMP Runtime Library configure 1.0, which was generated by GNU Autoconf 2.64. Invocation command line was $ /home/toolchain2/build-tools/gcc-4.5.1/libgomp/configure --cache-file=./config.cache --enable-multilib --with-cross-host=i686-pc-linux-gnu --prefix=/home/toolchain2/tools --disable-shared --disable-threads --enable-languages=c,c++ --program-transform-name=s&^&arm-linux-& --disable-option-checking --with-target-subdir=arm-linux --build=i686-pc-linux-gnu --host=arm-linux --target=arm-linux --srcdir=../../../gcc-4.5.1/libgomp ## --------- ## ## Platform. ## ## --------- ## hostname = localhost.localdomain uname -m = i686 uname -r = 2.6.38 uname -s = Linux uname -v = #1 SMP Sun Nov 4 23:46:35 IST 2012 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = i686 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /home/toolchain2/tools/bin PATH: /home/toolchain2/tools/bin PATH: /home/toolchain2/tools/bin PATH: /usr/lib/ccache PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /sbin PATH: /bin PATH: /usr/sbin PATH: /usr/bin PATH: /root/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:2454: loading cache ./config.cache configure:2545: checking for --enable-version-specific-runtime-libs configure:2560: result: no configure:2568: checking for --enable-generated-files-in-srcdir configure:2583: result: no configure:2640: checking build system type configure:2654: result: i686-pc-linux-gnu configure:2674: checking host system type configure:2687: result: arm-unknown-linux-gnu configure:2707: checking target system type configure:2720: result: arm-unknown-linux-gnu configure:2776: checking for a BSD-compatible install configure:2844: result: /usr/bin/install -c configure:2855: checking whether build environment is sane configure:2905: result: yes configure:2954: checking for arm-linux-strip configure:2981: result: /home/toolchain2/tools/arm-linux/bin/strip configure:3046: checking for a thread-safe mkdir -p configure:3085: result: /bin/mkdir -p configure:3098: checking for gawk configure:3125: result: gawk configure:3136: checking whether make sets $(MAKE) configure:3158: result: yes configure:3322: checking for arm-linux-gcc configure:3349: result: /home/toolchain2/build-tools/build-gcc2/./gcc/xgcc -B/home/toolchain2/build-tools/build-gcc2/./gcc/ -B/home/toolchain2/tools/arm-linux/bin/ -B/home/toolchain2/tools/arm-linux/lib/ -isystem /home/toolchain2/tools/arm-linux/include -isystem /home/toolchain2/tools/arm-linux/sys-include configure:3618: checking for C compiler version configure:3627: /home/toolchain2/build-tools/build-gcc2/./gcc/xgcc -B/home/toolchain2/build-tools/build-gcc2/./gcc/ -B/home/toolchain2/tools/arm-linux/bin/ -B/home/toolchain2/tools/arm-linux/lib/ -isystem /home/toolchain2/tools/arm-linux/include -isystem /home/toolchain2/tools/arm-linux/sys-include --version >&5 xgcc (GCC) 4.5.1 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:3638: $? = 0 configure:3627: /home/toolchain2/build-tools/build-gcc2/./gcc/xgcc -B/home/toolchain2/build-tools/build-gcc2/./gcc/ -B/home/toolchain2/tools/arm-linux/bin/ -B/home/toolchain2/tools/arm-linux/lib/ -isystem /home/toolchain2/tools/arm-linux/include -isystem /home/toolchain2/tools/arm-linux/sys-include -v >&5 Reading specs from /home/toolchain2/build-tools/build-gcc2/./gcc/specs COLLECT_GCC=/home/toolchain2/build-tools/build-gcc2/./gcc/xgcc COLLECT_LTO_WRAPPER=/home/toolchain2/build-tools/build-gcc2/./gcc/lto-wrapper Target: arm-linux Configured with: ../gcc-4.5.1/configure --target=arm-linux --prefix=/home/toolchain2/tools --enable-languages=c,c++ --disable-shared --disable-threads : (reconfigured) ../gcc-4.5.1/configure --target=arm-linux --prefix=/home/toolchain2/tools --enable-languages=c,c++ --disable-shared --disable-threads Thread model: single gcc version 4.5.1 (GCC) configure:3638: $? = 0 configure:3627: /home/toolchain2/build-tools/build-gcc2/./gcc/xgcc -B/home/toolchain2/build-tools/build-gcc2/./gcc/ -B/home/toolchain2/tools/arm-linux/bin/ -B/home/toolchain2/tools/arm-linux/lib/ -isystem /home/toolchain2/tools/arm-linux/include -isystem /home/toolchain2/tools/arm-linux/sys-include -V >&5 xgcc: '-V' must come at the start of the command line configure:3638: $? = 1 configure:3627: /home/toolchain2/build-tools/build-gcc2/./gcc/xgcc -B/home/toolchain2/build-tools/build-gcc2/./gcc/ -B/home/toolchain2/tools/arm-linux/bin/ -B/home/toolchain2/tools/arm-linux/lib/ -isystem /home/toolchain2/tools/arm-linux/include -isystem /home/toolchain2/tools/arm-linux/sys-include -qversion >&5 xgcc: unrecognized option '-qversion' xgcc: no input files configure:3638: $? = 1 configure:3658: checking for C compiler default output file name configure:3680: /home/toolchain2/build-tools/build-gcc2/./gcc/xgcc -B/home/toolchain2/build-tools/build-gcc2/./gcc/ -B/home/toolchain2/tools/arm-linux/bin/ -B/home/toolchain2/tools/arm-linux/lib/ -isystem /home/toolchain2/tools/arm-linux/include -isystem /home/toolchain2/tools/arm-linux/sys-include -g -O2 conftest.c >&5 /home/toolchain2/tools/arm-linux/bin/ld: /home/toolchain2/tools/arm-linux/lib/Scrt1.o: Relocations in generic ELF (EM: 3) /home/toolchain2/tools/arm-linux/bin/ld: /home/toolchain2/tools/arm-linux/lib/Scrt1.o: Relocations in generic ELF (EM: 3) /home/toolchain2/tools/arm-linux/bin/ld: /home/toolchain2/tools/arm-linux/lib/Scrt1.o: Relocations in generic ELF (EM: 3) /home/toolchain2/tools/arm-linux/bin/ld: /home/toolchain2/tools/arm-linux/lib/Scrt1.o: Relocations in generic ELF (EM: 3) /home/toolchain2/tools/arm-linux/lib/Scrt1.o: could not read symbols: File in wrong format collect2: ld returned 1 exit status configure:3684: $? = 1 configure:3721: result: configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU OpenMP Runtime Library" | #define PACKAGE_TARNAME "libgomp" | #define PACKAGE_VERSION "1.0" | #define PACKAGE_STRING "GNU OpenMP Runtime Library 1.0" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "http://www.gnu.org/software/libgomp/" | #define PACKAGE "libgomp" | #define VERSION "1.0" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3727: error: in `/home/toolchain2/build-tools/build-gcc2/arm-linux/libgomp': configure:3731: error: C compiler cannot create executables See `config.log' for more details. ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=i686-pc-linux-gnu ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_FCFLAGS_set= ac_cv_env_FCFLAGS_value= ac_cv_env_FC_set= ac_cv_env_FC_value= ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_build_alias_set=set ac_cv_env_build_alias_value=i686-pc-linux-gnu ac_cv_env_host_alias_set=set ac_cv_env_host_alias_value=arm-linux ac_cv_env_target_alias_set=set ac_cv_env_target_alias_value=arm-linux ac_cv_host=arm-unknown-linux-gnu ac_cv_path_mkdir=/bin/mkdir ac_cv_prog_AWK=gawk ac_cv_prog_CC='/home/toolchain2/build-tools/build-gcc2/./gcc/xgcc -B/home/toolchain2/build-tools/build-gcc2/./gcc/ -B/home/toolchain2/tools/arm-linux/bin/ -B/home/toolchain2/tools/arm-linux/lib/ -isystem /home/toolchain2/tools/arm-linux/include -isystem /home/toolchain2/tools/arm-linux/sys-include ' ac_cv_prog_STRIP=/home/toolchain2/tools/arm-linux/bin/strip ac_cv_prog_make_make_set=yes ac_cv_target=arm-unknown-linux-gnu ## ----------------- ## ## Output variables. ## ## ----------------- ## ACLOCAL='${SHELL} /home/toolchain2/build-tools/gcc-4.5.1/missing --run aclocal-1.11' AMDEPBACKSLASH='' AMDEP_FALSE='' AMDEP_TRUE='' AMTAR='${SHELL} /home/toolchain2/build-tools/gcc-4.5.1/missing --run tar' AR='/home/toolchain2/tools/arm-linux/bin/ar' AUTOCONF='${SHELL} /home/toolchain2/build-tools/gcc-4.5.1/missing --run autoconf' AUTOHEADER='${SHELL} /home/toolchain2/build-tools/gcc-4.5.1/missing --run autoheader' AUTOMAKE='${SHELL} /home/toolchain2/build-tools/gcc-4.5.1/missing --run automake-1.11' AWK='gawk' BUILD_INFO_FALSE='' BUILD_INFO_TRUE='' CC='/home/toolchain2/build-tools/build-gcc2/./gcc/xgcc -B/home/toolchain2/build-tools/build-gcc2/./gcc/ -B/home/toolchain2/tools/arm-linux/bin/ -B/home/toolchain2/tools/arm-linux/lib/ -isystem /home/toolchain2/tools/arm-linux/include -isystem /home/toolchain2/tools/arm-linux/sys-include ' CCDEPMODE='' CFLAGS='-g -O2' CPP='' CPPFLAGS='' CYGPATH_W='echo' DEFS='' DEPDIR='' DSYMUTIL='' DUMPBIN='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='' EXEEXT='' FC='' FCFLAGS='' FGREP='' GENINSRC_FALSE='' GENINSRC_TRUE='#' GREP='' INSTALL_DATA='/usr/bin/install -c -m 644' INSTALL_PROGRAM='/usr/bin/install -c' INSTALL_SCRIPT='/usr/bin/install -c' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' LD='/home/toolchain2/build-tools/build-gcc2/./gcc/collect-ld' LDFLAGS='' LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='' LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='' LIBOBJS='' LIBS='' LIBTOOL='' LIPO='arm-linux-lipo' LN_S='' LTLIBOBJS='' MAINT='' MAINTAINER_MODE_FALSE='' MAINTAINER_MODE_TRUE='' MAKEINFO='makeinfo --split-size=5000000' MKDIR_P='/bin/mkdir -p' NM='/home/toolchain2/build-tools/build-gcc2/./gcc/nm' NMEDIT='' OBJDUM...stripped-down