Hello, I'm trying to upgrade my gcc from 4.0 to 4.7. I got the following compiling enviroment: 2.6.17.14ReadyNAS #1 Thu Sep 1 17:44:33 PDT 2011 padre GNU/Linux GNU ld (GNU Binutils) 2.22 ldconfig (GNU libc) 2.3.2 GNU Make 3.82 debian sarge ls /usr/local/lib/libmpfr.* /usr/local/lib/libmpfr.a /usr/local/lib/libmpfr.so /usr/local/lib/libmpfr.so.1.2.2 /usr/local/lib/libmpfr.so.4.1.0 /usr/local/lib/libmpfr.la /usr/local/lib/libmpfr.so.1 /usr/local/lib/libmpfr.so.4 ls /usr/local/lib/libmpc.* /usr/local/lib/libmpc.a /usr/local/lib/libmpc.so /usr/local/lib/libmpc.so.0.0.0 /usr/local/lib/libmpc.so.2.0.0 /usr/local/lib/libmpc.la /usr/local/lib/libmpc.so.0 /usr/local/lib/libmpc.so.2 whereis libgmp libgmp: /usr/lib/libgmp.a /usr/lib/libgmp.lai /usr/local/lib/libgmp.so /usr/local/lib/libgmp.la /usr/local/lib/libgmp.a I configured gcc with the following parameters: gcc-4.7.0-compiled# ../gcc-4.7.0/configure --build='sparc-linux' --enable-languages=c,c++ --prefix=/usr --mandir=/usr/share/man --enable-shared --with-system-zlib --enable-nls --enable-clocale=gnu --enable-debug --with-cpu=v7 --enable-objc-gc make breaks at: make[3]: Leaving directory `/c/backup/gcc-4.7.0-compiled/gcc'mkdir -p -- sparc-linux/libgccChecking multilib configuration for libgcc...Configuring stage 1 in sparc-linux/libgccconfigure: creating cache ./config.cachechecking build system type... sparc-unknown-linux-gnuchecking host system type... sparc-unknown-linux-gnuchecking for --enable-version-specific-runtime-libs... nochecking for a BSD-compatible install... /usr/bin/install -cchecking for gawk... mawkchecking for sparc-linux-ar... archecking for sparc-linux-lipo... lipochecking for sparc-linux-nm... /backup/gcc-4.7.0-compiled/./gcc/nmchecking for sparc-linux-ranlib... ranlibchecking for sparc-linux-strip... stripchecking whether ln -s works... yeschecking for sparc-linux-gcc... /backup/gcc-4.7.0-compiled/./gcc/xgcc -B/backup/gcc-4.7.0-compiled/./gcc/ -B/usr/sparc-linux/bin/ -B/usr/sparc-linux/lib/ -isystem /usr/sparc-linux/include -isystem /usr/sparc-linux/sys-includechecking for suffix of object files... configure: error: in `/backup/gcc-4.7.0-compiled/sparc-linux/libgcc':configure: error: cannot compute suffix of object files: cannot compileSee `config.log' for more details.make[2]: *** [configure-stage1-target-libgcc] Error 1make[2]: Leaving directory `/c/backup/gcc-4.7.0-compiled'make[1]: *** [stage1-bubble] Error 2make[1]: Leaving directory `/c/backup/gcc-4.7.0-compiled'make: *** [all] Error 2 The exact error is: It was created by GNU C Runtime Library configure 1.0, which wasgenerated by GNU Autoconf 2.64. Invocation command line was $ /backup/gcc-4.7.0/libgcc/configure --cache-file=./config.cache --enable-multilib --prefix=/usr --mandir=/usr/share/man --enable-shared --with-system-zlib --enable-nls --enable-clocale=gnu --enable-debug --with-cpu=v7 --enable-objc-gc --enable-languages=c,c++,lto --program-transform-name=s,y,y, --disable-option-checking --with-target-subdir=sparc-linux --build=sparc-linux --host=sparc-linux --target=sparc-linux --srcdir=../../../gcc-4.7.0/libgcc --disable-intermodule --enable-checking=yes,types --disable-coverage --enable-languages=c,c++,lto ## --------- #### Platform. #### --------- ## hostname = fes-a120d19nasuname -m = padreuname -r = 2.6.17.14ReadyNASuname -s = Linuxuname -v = #1 Thu Sep 1 17:44:33 PDT 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: /opt/rfw/binPATH: /opt/rfw/sbinPATH: /usr/local/sbinPATH: /usr/local/binPATH: /usr/sbinPATH: /usr/binPATH: /sbinPATH: /binPATH: /usr/bin/X11 ## ----------- #### Core tests. #### ----------- ## configure:2042: creating cache ./config.cacheconfigure:2207: checking build system typeconfigure:2221: result: sparc-unknown-linux-gnuconfigure:2241: checking host system typeconfigure:2254: result: sparc-unknown-linux-gnuconfigure:2352: checking for --enable-version-specific-runtime-libsconfigure:2365: result: noconfigure:2413: checking for a BSD-compatible installconfigure:2481: result: /usr/bin/install -cconfigure:2497: checking for gawkconfigure:2524: result: mawkconfigure:2624: checking for sparc-linux-arconfigure:2651: result: arconfigure:2716: checking for sparc-linux-lipoconfigure:2743: result: lipoconfigure:2808: checking for sparc-linux-nmconfigure:2835: result: /backup/gcc-4.7.0-compiled/./gcc/nmconfigure:2900: checking for sparc-linux-ranlibconfigure:2927: result: ranlibconfigure:2992: checking for sparc-linux-stripconfigure:3019: result: stripconfigure:3081: checking whether ln -s worksconfigure:3085: result: yesconfigure:3102: checking for sparc-linux-gccconfigure:3129: result: /backup/gcc-4.7.0-compiled/./gcc/xgcc -B/backup/gcc-4.7.0-compiled/./gcc/ -B/usr/sparc-linux/bin/ -B/usr/sparc-linux/lib/ -isystem /usr/sparc-linux/include -isystem /usr/sparc-linux/sys-include configure:3398: checking for C compiler versionconfigure:3407: /backup/gcc-4.7.0-compiled/./gcc/xgcc -B/backup/gcc-4.7.0-compiled/./gcc/ -B/usr/sparc-linux/bin/ -B/usr/sparc-linux/lib/ -isystem /usr/sparc-linux/include -isystem /usr/sparc-linux/sys-include --version >&5xgcc (GCC) 4.7.0Copyright (C) 2012 Free Software Foundation, Inc.This is free software; see the source for copying conditions. There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:3418: $? = 0configure:3407: /backup/gcc-4.7.0-compiled/./gcc/xgcc -B/backup/gcc-4.7.0-compiled/./gcc/ -B/usr/sparc-linux/bin/ -B/usr/sparc-linux/lib/ -isystem /usr/sparc-linux/include -isystem /usr/sparc-linux/sys-include -v >&5Reading specs from /backup/gcc-4.7.0-compiled/./gcc/specsCOLLECT_GCC=/backup/gcc-4.7.0-compiled/./gcc/xgccCOLLECT_LTO_WRAPPER=/backup/gcc-4.7.0-compiled/./gcc/lto-wrapperTarget: sparc-linuxConfigured with: ../gcc-4.7.0/configure --build=sparc-linux --enable-languages=c,c++ --prefix=/usr --mandir=/usr/share/man --enable-shared --with-system-zlib --enable-nls --enable-clocale=gnu --enable-debug --with-cpu=v7 --enable-objc-gcThread model: posixgcc version 4.7.0 (GCC) configure:3418: $? = 0configure:3407: /backup/gcc-4.7.0-compiled/./gcc/xgcc -B/backup/gcc-4.7.0-compiled/./gcc/ -B/usr/sparc-linux/bin/ -B/usr/sparc-linux/lib/ -isystem /usr/sparc-linux/include -isystem /usr/sparc-linux/sys-include -V >&5xgcc: error: unrecognized command line option '-V'xgcc: fatal error: no input filescompilation terminated.configure:3418: $? = 1configure:3407: /backup/gcc-4.7.0-compiled/./gcc/xgcc -B/backup/gcc-4.7.0-compiled/./gcc/ -B/usr/sparc-linux/bin/ -B/usr/sparc-linux/lib/ -isystem /usr/sparc-linux/include -isystem /usr/sparc-linux/sys-include -qversion >&5xgcc: error: unrecognized command line option '-qversion'xgcc: fatal error: no input filescompilation terminated.configure:3418: $? = 1configure:3434: /backup/gcc-4.7.0-compiled/./gcc/xgcc -B/backup/gcc-4.7.0-compiled/./gcc/ -B/usr/sparc-linux/bin/ -B/usr/sparc-linux/lib/ -isystem /usr/sparc-linux/include -isystem /usr/sparc-linux/sys-include -o conftest -g -O2 conftest.c >&5xgcc: internal compiler error: Bus error (program cc1)Please submit a full bug report,with preprocessed source if appropriate.See <http://gcc.gnu.org/bugs.html> for instructions.configure:3437: $? = 4configure:3625: checking for suffix of object filesconfigure:3647: /backup/gcc-4.7.0-compiled/./gcc/xgcc -B/backup/gcc-4.7.0-compiled/./gcc/ -B/usr/sparc-linux/bin/ -B/usr/sparc-linux/lib/ -isystem /usr/sparc-linux/include -isystem /usr/sparc-linux/sys-include -c -g -O2 conftest.c >&5xgcc: internal compiler error: Bus error (program cc1)Please submit a full bug report,with preprocessed source if appropriate.See <http://gcc.gnu.org/bugs.html> for instructions.configure:3651: $? = 4configure: 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:3665: error: in `/backup/gcc-4.7.0-compiled/sparc-linux/libgcc':configure:3668: error: cannot compute suffix of object files: cannot compileSee `config.log' for more details. ## ---------------- #### Cache variables. #### ---------------- ## ac_cv_build=sparc-unknown-linux-gnuac_cv_env_CC_set=setac_cv_env_CC_value='/backup/gcc-4.7.0-compiled/./gcc/xgcc -B/backup/gcc-4.7.0-compiled/./gcc/ -B/usr/sparc-linux/bin/ -B/usr/sparc-linux/lib/ -isystem /usr/sparc-linux/include -isystem /usr/sparc-linux/sys-include 'ac_cv_env_CFLAGS_set=setac_cv_env_CFLAGS_value='-g -O2'ac_cv_env_CPPFLAGS_set=setac_cv_env_CPPFLAGS_value=ac_cv_env_CPP_set=ac_cv_env_CPP_value=ac_cv_env_LDFLAGS_set=setac_cv_env_LDFLAGS_value=ac_cv_env_LIBS_set=ac_cv_env_LIBS_value=ac_cv_env_build_alias_set=setac_cv_env_build_alias_value=sparc-linuxac_cv_env_host_alias_set=setac_cv_env_host_alias_value=sparc-linux[...] I think the cache variables aren't relevant anymore. If you want the full config.log you can watch it on http://pastebin.com/GckvTpaa or I can post it here. Searching the web for config.log error results in setting the LD_LIBRARY_PATH, LD_RUN_PATH and LDFLAGS which I have done. LD_RUN_PATH=/usr/local/lib export LD_RUN_PATH LDFLAGS="-L/usr/local/lib -R/usr/local/lib" export LDFLAGSecho $LD_LIBRARY_PATH /usr/local/lib So at the moment I' dont know how I can pass the configure of libgcc. What can I try else? If you need more information I can post them. greetings Martin