http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49919
Summary: problem with building gcc 4.6.1 on Mac OS X Lion Product: gcc Version: 4.6.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: dmark...@mac.com Created attachment 24875 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24875 config log Hi I got a build error configure: error: cannot compute suffix of object files: cannot compile here is what I did 1. I downloaded gmp 5.0.2 applied patch from http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49738 ./configure --prefix=/Users/dima/Development/GCC/builds/gmp-5.0.2/build/x86_64 make make install make check 2. downloaded mpfr 3.0.1 ./configure --prefix=/Users/dima/Development/GCC/builds/mpfr-3.0.1/build/x86_64 --with-gmp=/Users/dima/Development/GCC/builds/gmp-5.0.2/build/x86_64 make make install make check 3. downloaded mpc 0.8.2 ./configure --prefix=/Users/dima/Development/GCC/builds/mpc-0.8.2/build/x86_64 --with-gmp=/Users/dima/Development/GCC/builds/gmp-5.0.2/build/x86_64 --with-mpfr=/Users/dima/Development/GCC/builds/mpfr-3.0.1/build/x86_64 make make install make check 4. downloaded gcc-4.6.1 ./configure --prefix=/Users/dima/Development/GCC/builds/gcc-4.6.1/build/x86_64 --enable-languages=c,c++,fortran --with-gmp=/Users/dima/Development/GCC/builds/gmp-5.0.2/build/x86_64 --with-mpfr=/Users/dima/Development/GCC/builds/mpfr-3.0.1/build/x86_64 --with-mpc=/Users/dima/Development/GCC/builds/mpc-0.8.2/build/x86_64 make and after few minutes I got: checking for x86_64-apple-darwin11.0.0-gcc... /Users/dima/Development/GCC/gcc-4.6.1/host-x86_64-apple-darwin11.0.0/gcc/xgcc -B/Users/dima/Development/GCC/gcc-4.6.1/host-x86_64-apple-darwin11.0.0/gcc/ -B/Users/dima/Development/GCC/builds/gcc-4.6.1/build/x86_64/x86_64-apple-darwin11.0.0/bin/ -B/Users/dima/Development/GCC/builds/gcc-4.6.1/build/x86_64/x86_64-apple-darwin11.0.0/lib/ -isystem /Users/dima/Development/GCC/builds/gcc-4.6.1/build/x86_64/x86_64-apple-darwin11.0.0/include -isystem /Users/dima/Development/GCC/builds/gcc-4.6.1/build/x86_64/x86_64-apple-darwin11.0.0/sys-include checking for suffix of object files... configure: error: in `/Users/dima/Development/GCC/gcc-4.6.1/x86_64-apple-darwin11.0.0/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. make[2]: *** [configure-stage1-target-libgcc] Error 1 make[1]: *** [stage1-bubble] Error 2 make: *** [all] Error 2 thanks Note: here are some outputs from uname gcc -v uname -a Darwin dimamacbookpro.local 11.0.0 Darwin Kernel Version 11.0.0: Sat Jun 18 12:56:35 PDT 2011; root:xnu-1699.22.73~1/RELEASE_X86_64 x86_64 gcc -v Using built-in specs. Target: i686-apple-darwin11 Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2335.15~108/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2335.15~108/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1 Thread model: posix gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)