I was trying to build gcc 4.6. Configure goes fine with the following command: ./configure prefix=/scratch/local/Bilal/gcc/ --with-gmp=/scratch/local/Bilal/gmp --with-mpfr=/scratch/local/Bilal/mpfr --with-mpc=/scratch/local/Bilal/mpc but make fails with the following error: checking for suffix of object files... configure: error: in `/scratch/local/Bilal/gccSource/i686-pc-linux-gnu/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. Can anyone tell me how to tackle this problem? The file /scratch/local/Bilal/gccSource2/i686-pc-linux-gnu/libgcc/config.log is pasted below: This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by GNU C Runtime Library configure 1.0, which was generated by GNU Autoconf 2.64. Invocation command line was $ /scratch/local/Bilal/gccSource2/libgcc/configure --cache-file=./config.cache --enable-multilib --with-gmp=/scratch/local/Bilal/gmp --with-mpfr=/scratch/local/Bilal/mpfr --with-mpc=/scratch/local/Bilal/mpc --enable-languages=c,c++,fortran,java,lto,objc --program-transform-name=s,y,y, --disable-option-checking --with-target-subdir=i686-pc-linux-gnu --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --srcdir=../.././libgcc --disable-intermodule --enable-checking=yes,types --disable-coverage --enable-languages=c,lto ## --------- ## ## Platform. ## ## --------- ## hostname = dynamis.ae.uiuc.edu uname -m = i686 uname -r = 2.6.24-28-generic uname -s = Linux uname -v = #1 SMP Fri Feb 11 17:36:45 UTC 2011 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /site/local/pkg/sge/bin/lx24-x86 PATH: /home/mehdi1/bin PATH: /usr/local/bin PATH: /usr/bin PATH: /bin PATH: /usr/bin/X11 ## ----------- ## ## Core tests. ## ## ----------- ## configure:1742: creating cache ./config.cache configure:1903: checking for --enable-version-specific-runtime-libs configure:1916: result: no configure:1964: checking for a BSD-compatible install configure:2032: result: /usr/bin/install -c configure:2048: checking for gawk configure:2075: result: gawk configure:2095: checking build system type configure:2109: result: i686-pc-linux-gnu configure:2129: checking host system type configure:2142: result: i686-pc-linux-gnu configure:2245: checking for i686-pc-linux-gnu-ar configure:2272: result: ar configure:2337: checking for i686-pc-linux-gnu-lipo configure:2364: result: lipo configure:2429: checking for i686-pc-linux-gnu-nm configure:2456: result: /scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/nm configure:2521: checking for i686-pc-linux-gnu-ranlib configure:2548: result: ranlib configure:2613: checking for i686-pc-linux-gnu-strip configure:2640: result: strip configure:2702: checking whether ln -s works configure:2706: result: yes configure:2723: checking for i686-pc-linux-gnu-gcc configure:2750: result: /scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/xgcc -B/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/ -B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/bin/ -B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/lib/ -isystem /scratch/local/Bilal/gcc/i686-pc-linux-gnu/include -isystem /scratch/local/Bilal/gcc/i686-pc-linux-gnu/sys-include configure:3019: checking for C compiler version configure:3028: /scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/xgcc -B/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/ -B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/bin/ -B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/lib/ -isystem /scratch/local/Bilal/gcc/i686-pc-linux-gnu/include -isystem /scratch/local/Bilal/gcc/i686-pc-linux-gnu/sys-include --version >&5 xgcc (GCC) 4.6.0 Copyright (C) 2011 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:3039: $? = 0 configure:3028: /scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/xgcc -B/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/ -B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/bin/ -B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/lib/ -isystem /scratch/local/Bilal/gcc/i686-pc-linux-gnu/include -isystem /scratch/local/Bilal/gcc/i686-pc-linux-gnu/sys-include -v >&5 Reading specs from /scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/specs COLLECT_GCC=/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/xgcc COLLECT_LTO_WRAPPER=/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/lto-wrapper Target: i686-pc-linux-gnu Configured with: ./configure prefix=/scratch/local/Bilal/gcc/ --with-gmp=/scratch/local/Bilal/gmp --with-mpfr=/scratch/local/Bilal/mpfr --with-mpc=/scratch/local/Bilal/mpc Thread model: posix gcc version 4.6.0 (GCC) configure:3039: $? = 0 configure:3028: /scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/xgcc -B/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/ -B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/bin/ -B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/lib/ -isystem /scratch/local/Bilal/gcc/i686-pc-linux-gnu/include -isystem /scratch/local/Bilal/gcc/i686-pc-linux-gnu/sys-include -V >&5 xgcc: error: unrecognized option '-V' xgcc: fatal error: no input files compilation terminated. configure:3039: $? = 1 configure:3028: /scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/xgcc -B/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/ -B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/bin/ -B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/lib/ -isystem /scratch/local/Bilal/gcc/i686-pc-linux-gnu/include -isystem /scratch/local/Bilal/gcc/i686-pc-linux-gnu/sys-include -qversion >&5 xgcc: error: unrecognized option '-qversion' xgcc: fatal error: no input files compilation terminated. configure:3039: $? = 1 configure:3055: /scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/xgcc -B/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/ -B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/bin/ -B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/lib/ -isystem /scratch/local/Bilal/gcc/i686-pc-linux-gnu/include -isystem /scratch/local/Bilal/gcc/i686-pc-linux-gnu/sys-include -o conftest -g -O2 conftest.c >&5 /scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory configure:3058: $? = 1 configure:3246: checking for suffix of object files configure:3268: /scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/xgcc -B/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/ -B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/bin/ -B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/lib/ -isystem /scratch/local/Bilal/gcc/i686-pc-linux-gnu/include -isystem /scratch/local/Bilal/gcc/i686-pc-linux-gnu/sys-include -c -g -O2 conftest.c >&5 /scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory configure:3272: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU C Runtime Library" | #define PACKAGE_TARNAME "libgcc" | #define PACKAGE_VERSION "1.0" | #define PACKAGE_STRING "GNU C Runtime Library 1.0" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "http://www.gnu.org/software/libgcc/" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3286: error: in `/scratch/local/Bilal/gccSource2/i686-pc-linux-gnu/libgcc': configure:3289: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=i686-pc-linux-gnu ac_cv_env_CC_set=set ac_cv_env_CC_value='/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/xgcc -B/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/ -B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/bin/ -B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/lib/ -isystem /scratch/local/Bilal/gcc/i686-pc-linux-gnu/include -isystem /scratch/local/Bilal/gcc/i686-pc-linux-gnu/sys-include ' ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-g -O2' ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_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=i686-pc-linux-gnu ac_cv_env_target_alias_set=set ac_cv_env_target_alias_value=i686-pc-linux-gnu ac_cv_host=i686-pc-linux-gnu ac_cv_prog_AR=ar ac_cv_prog_AWK=gawk ac_cv_prog_CC='/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/xgcc -B/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/ -B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/bin/ -B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/lib/ -isystem /scratch/local/Bilal/gcc/i686-pc-linux-gnu/include -isystem /scratch/local/Bilal/gcc/i686-pc-linux-gnu/sys-include ' ac_cv_prog_LIPO=lipo ac_cv_prog_NM=/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/nm ac_cv_prog_RANLIB=ranlib ac_cv_prog_STRIP=strip ## ----------------- ## ## Output variables. ## ## ----------------- ## AR='ar' AWK='gawk' CC='/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/xgcc -B/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/ -B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/bin/ -B/scratch/local/Bilal/gcc/i686-pc-linux-gnu/lib/ -isystem /scratch/local/Bilal/gcc/i686-pc-linux-gnu/include -isystem /scratch/local/Bilal/gcc/i686-pc-linux-gnu/sys-include ' CFLAGS='-g -O2' CPP='' CPPFLAGS='' DEFS='' ECHO_C='' ECHO_N='-n' ECHO_T='' EXEEXT='' INSTALL_DATA='/usr/bin/install -c -m 644' INSTALL_PROGRAM='/usr/bin/install -c' INSTALL_SCRIPT='/usr/bin/install -c' LDFLAGS='' LIBOBJS='' LIBS='' LIPO='lipo' LN_S='ln -s' LTLIBOBJS='' MAINT='#' NM='/scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/nm' OBJEXT='' PACKAGE_BUGREPORT='' PACKAGE_NAME='GNU C Runtime Library' PACKAGE_STRING='GNU C Runtime Library 1.0' PACKAGE_TARNAME='libgcc' PACKAGE_URL='http://www.gnu.org/software/libgcc/' PACKAGE_VERSION='1.0' PATH_SEPARATOR=':' RANLIB='ranlib' SHELL='/bin/sh' STRIP='strip' ac_ct_CC='' asm_hidden_op='' bindir='${exec_prefix}/bin' build='i686-pc-linux-gnu' build_alias='i686-pc-linux-gnu' build_cpu='i686' build_libsubdir='build-i686-pc-linux-gnu' build_os='linux-gnu' build_subdir='build-i686-pc-linux-gnu' build_vendor='pc' datadir='${datarootdir}' datarootdir='${prefix}/share' decimal_float='' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' enable_decimal_float='' enable_shared='yes' exec_prefix='NONE' extra_parts='' fixed_point='' host='i686-pc-linux-gnu' host_alias='i686-pc-linux-gnu' host_cpu='i686' host_noncanonical='i686-pc-linux-gnu' host_os='linux-gnu' host_subdir='host-i686-pc-linux-gnu' host_vendor='pc' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' libgcc_topdir='../.././libgcc/..' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='NONE' program_transform_name='s,y,y,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' set_have_cc_tls='' set_use_emutls='' sharedstatedir='${prefix}/com' slibdir='$(libdir)' sysconfdir='${prefix}/etc' target_alias='i686-pc-linux-gnu' target_noncanonical='i686-pc-linux-gnu' target_subdir='i686-pc-linux-gnu' tmake_file='' toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)' toolexeclibdir='$(libdir)' vis_hide='' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "GNU C Runtime Library" #define PACKAGE_TARNAME "libgcc" #define PACKAGE_VERSION "1.0" #define PACKAGE_STRING "GNU C Runtime Library 1.0" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "http://www.gnu.org/software/libgcc/" configure: exit 1 -- View this message in context: http://old.nabble.com/Cannot-compute-suffix-of-object-file---while-building-gcc-4.6.0-tp31786405p31786405.html Sent from the gcc - Help mailing list archive at Nabble.com.