Hi, I have been trying to upgrade my gcc-4.4.0 to gcc-4.7.0 since last four weeks & getting following error at build time. My build environment is: ------------------------ Platform: Windows-7 (32-bit) Cygwin Binutils for Target: binutils-2.22 (which I upgraded from binutils-version-2.21 by following the steps in http://www.linuxforu.com/2010/01/binutils-porting-guide-to-a-new-target-architecture/ ) Prerequisites for GCC: ---------------------- Cygwin Package Information Package Version Status gmp 4.3.2-1 OK mpfr 3.0.1-1 OK ppl 0.10.2-1 OK ------------------------------------- Step1: Download GCC-4.7.0 from http://gcc.gnu.org/releases.html Step2: Extract GCC-4.7.0 in toplevel gcc-directory Step3: create gcc-install & gcc-build directories in toplevel gcc-directory Step4: Modify config.sub & config.gcc for target specific changes Step5: Add target-folder containg target.md,target.h,target.c in gcc/config/ path (copied from <gcc-4.4.0/gcc/config/>) Step6: Configure with following options in gcc-build path- ../gcc-4.7.0/./configure --target=my_target --program-prefix=my_target- --prefix=/path to /gcc-install/ --enable-languages="c" --enable-checking --with-ld=<path to binutils-v2.22/bin/my_target-ld.exe> --with-as=<path to binutils-v2.22/bin/my_target-as.exe> CFLAGS="-g -O2 -I</path to gcc-4.7.0/gcc/config/my_target"> --disable-shared --disable-decimal-float --disable-threads --disable-libmudflap --disable-libssp --disable-libgomp Configure result: ----------------- <snip> checking where to find the target ar... pre-installed checking where to find the target as... pre-installed checking where to find the target cc... just compiled checking where to find the target c++... pre-installed checking where to find the target c++ for libstdc++... pre-installed checking where to find the target dlltool... pre-installed checking where to find the target gcc... just compiled checking where to find the target gcj... pre-installed checking where to find the target gfortran... pre-installed checking where to find the target gccgo... pre-installed checking where to find the target ld... pre-installed checking where to find the target lipo... pre-installed checking where to find the target nm... pre-installed checking where to find the target objdump... pre-installed checking where to find the target ranlib... pre-installed checking where to find the target readelf... pre-installed checking where to find the target strip... pre-installed checking where to find the target windres... pre-installed checking where to find the target windmc... pre-installed checking whether to enable maintainer-specific portions of Makefiles... no checking whether -fkeep-inline-functions is supported... yes configure: creating ./config.status config.status: creating Makefile <snip> Step7: run make Step8: Resolve errors related to macros Step9: run make again Make Result: ------------ <snip> checking for suffix of object files... configure: error: in `/path to build_my_target/my_target/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. Makefile:9282: recipe for target `configure-target-libgcc' failed make[1]: *** [configure-target-libgcc] Error 1 make[1]: Leaving directory `/my path/gcc_build' Makefile:853: recipe for target `all' failed make: *** [all] Error 2 <snip> I have tried all the steps mentioned in several posts to resolve this issue, like setting the LD_LIBRARY_PATH and re-installing all the packages which are installed as per Prerequisites for GCC. Any pointers to fix this issue are very much appreciated. -- View this message in context: http://old.nabble.com/upgrading-gcc-4.4.0-to-gcc-4.7.0%3Aconfigure%3A-error%3A-cannot-compute-suffix-of-object-files%3A-cannot-compile-tp34003613p34003613.html Sent from the gcc - Help mailing list archive at Nabble.com.