* [Bug bootstrap/49919] problem with building gcc 4.6.1 on Mac OS X Lion
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 ` paolo.carlini at oracle dot com
2011-07-31 9:50 ` redi at gcc dot gnu.org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-07-31 9:05 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49919
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.07.31 09:04:31
Component|c++ |bootstrap
Ever Confirmed|0 |1
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-07-31 09:04:31 UTC ---
I can confirm this, mainline too.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug bootstrap/49919] problem with building gcc 4.6.1 on Mac OS X Lion
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
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: redi at gcc dot gnu.org @ 2011-07-31 9:50 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49919
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-07-31 09:50:27 UTC ---
surely this is just http://gcc.gnu.org/wiki/FAQ#configure_suffix ?
you've installed the prerequisite libs outside the dynamic linker's search
paths, so you need to use the Mac OS equivalent of ldconfig, or set
DYLIB_LIBRARY_PATH (or whatever it is on Mac OS X)
the simple answer is do not install the prerequisite libs like that, build them
statically: http://advogato.org/person/redi/diary/240.html
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug bootstrap/49919] problem with building gcc 4.6.1 on Mac OS X Lion
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
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-07-31 10:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49919
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-07-31 10:02:30 UTC ---
Let me check in detail. For sure I'm using the same configure line which used
to work fine for a couple of years.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug bootstrap/49919] problem with building gcc 4.6.1 on Mac OS X Lion
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
` (2 preceding siblings ...)
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
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-07-31 10:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49919
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-07-31 10:33:45 UTC ---
To be safe, I tried reinstalling the three libs, and for me this is the problem
with libgcc:
conftest.c:1:0: internal compiler error: Segmentation fault: 11
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug bootstrap/49919] problem with building gcc 4.6.1 on Mac OS X Lion
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
` (3 preceding siblings ...)
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
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: howarth at nitro dot med.uc.edu @ 2011-07-31 14:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49919
Jack Howarth <howarth at nitro dot med.uc.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |howarth at nitro dot
| |med.uc.edu
--- Comment #5 from Jack Howarth <howarth at nitro dot med.uc.edu> 2011-07-31 14:03:09 UTC ---
This is due to http://llvm.org/bugs/show_bug.cgi?id=9571 which is fixed in
llvm.org's llvm-gcc 2.9 release but not in Apple's Xcode 4.1's llvm-gcc.
Perhaps we could use the reduced test case...
http://llvm.org/bugs/show_bug.cgi?id=9571#c11
to craft a configure test to reject the broken versions of llvm-gcc? For now,
all releases of FSF gcc have to be compiled with clang or Apple gcc-4.2 on
Lion.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug bootstrap/49919] problem with building gcc 4.6.1 on Mac OS X Lion
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
` (4 preceding siblings ...)
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
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-07-31 14:59 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49919
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-07-31 14:58:51 UTC ---
Thanks for the analysis: to be honest, I didn't realize that by default I was
using llvm-gcc on that machine. Then this PR should be closed, isn't about FSF
GCC.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug bootstrap/49919] problem with building gcc 4.6.1 on Mac OS X Lion
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
` (5 preceding siblings ...)
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
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: howarth at nitro dot med.uc.edu @ 2011-07-31 15:40 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49919
--- Comment #7 from Jack Howarth <howarth at nitro dot med.uc.edu> 2011-07-31 15:39:38 UTC ---
The presence of...
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
from the output of 'gcc -v' indicates that is uses the llvm backend.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug bootstrap/49919] problem with building gcc 4.6.1 on Mac OS X Lion
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
` (6 preceding siblings ...)
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
9 siblings, 0 replies; 11+ messages in thread
From: dmarkman at mac dot com @ 2011-07-31 16:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49919
--- Comment #8 from Dmitry Markman <dmarkman at mac dot com> 2011-07-31 16:24:55 UTC ---
Hi
I followed instructions from
http://advogato.org/person/redi/diary/240.html
so gmp, mpfr and mic were built, when I issued make for gcc
here is what I did
mkdir <path_to_gcc>/objdir
cd <path_to_gcc>/objdir
<path_to_gcc>/gcc-4.6.1/configure
--prefix=/Users/dima/Development/GCC/builds/gcc-4.6.1/build/x86_64
--enable-languages=c,c++,fortran
however I got the same error
checking for x86_64-apple-darwin11.0.0-gcc...
/Users/dima/Development/GCC/objdir/./gcc/xgcc
-B/Users/dima/Development/GCC/objdir/./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/objdir/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
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug bootstrap/49919] problem with building gcc 4.6.1 on Mac OS X Lion
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
` (7 preceding siblings ...)
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
9 siblings, 0 replies; 11+ messages in thread
From: howarth at nitro dot med.uc.edu @ 2011-07-31 17:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49919
--- Comment #9 from Jack Howarth <howarth at nitro dot med.uc.edu> 2011-07-31 17:38:00 UTC ---
(In reply to comment #8)
Those instructions predate Lion which now defaults gcc/cc to
llvm-gcc-4.2/llvm-g++-4.2 instead of gcc-4.2/g++-4.2. Again
http://llvm.org/bugs/show_bug.cgi?id=9571 is unfixed in Xcode 4.1 which is the
origin of the bootstrap failures. Use CC=gcc-4.2 CXX=g++-4.2 or CC=clang
CXX=clang++ when bootstrapping FSF gcc under Lion.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug bootstrap/49919] problem with building gcc 4.6.1 on Mac OS X Lion
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
` (8 preceding siblings ...)
2011-07-31 17:38 ` howarth at nitro dot med.uc.edu
@ 2011-07-31 21:30 ` dmarkman at mac dot com
9 siblings, 0 replies; 11+ messages in thread
From: dmarkman at mac dot com @ 2011-07-31 21:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49919
--- Comment #10 from Dmitry Markman <dmarkman at mac dot com> 2011-07-31 21:29:46 UTC ---
Hi
I followed Jack Howarth's advice and set CC to gcc-4.2 and CXX to g++-4.2
and everything was fine
so thank you very much everybody
and BTW, I was using Xcode 4.2 (preview 4) so it looks like llvm bug is still
there
thanks again
^ permalink raw reply [flat|nested] 11+ messages in thread