public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/49919] New: problem with building gcc 4.6.1 on Mac OS X Lion
@ 2011-07-31  3:11 dmarkman at mac dot com
  2011-07-31  9:05 ` [Bug bootstrap/49919] " paolo.carlini at oracle dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: dmarkman at mac dot com @ 2011-07-31  3:11 UTC (permalink / raw)
  To: gcc-bugs

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: unassigned@gcc.gnu.org
        ReportedBy: dmarkman@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)


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-07-31 21:30 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-31  3:11 [Bug c++/49919] New: problem with building gcc 4.6.1 on Mac OS X Lion dmarkman at mac dot com
2011-07-31  9:05 ` [Bug bootstrap/49919] " paolo.carlini at oracle dot com
2011-07-31  9:50 ` redi at gcc dot gnu.org
2011-07-31 10:03 ` paolo.carlini at oracle dot com
2011-07-31 10:34 ` paolo.carlini at oracle dot com
2011-07-31 14:03 ` howarth at nitro dot med.uc.edu
2011-07-31 14:59 ` paolo.carlini at oracle dot com
2011-07-31 15:40 ` howarth at nitro dot med.uc.edu
2011-07-31 16:25 ` dmarkman at mac dot com
2011-07-31 17:38 ` howarth at nitro dot med.uc.edu
2011-07-31 21:30 ` dmarkman at mac dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).