public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52733] New: Cannot compile gcc/g++ on Mac OS X 10.6.8
@ 2012-03-27 4:48 chris.jonesey at gmail dot com
2012-03-27 10:47 ` [Bug c++/52733] " redi at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: chris.jonesey at gmail dot com @ 2012-03-27 4:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52733
Bug #: 52733
Summary: Cannot compile gcc/g++ on Mac OS X 10.6.8
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: chris.jonesey@gmail.com
I downloaded GCC 4.7.0 released [2012-03-22] and was unable to build gcc/g++.
I used the following configure command:
% ./configure --prefix=`pwd`/inst --enable-languages=c,c++
I also tried it without the --enable-languages with the same result. The error
I received is below. I would be happy to provide any other information that is
useful to tracking down this error.
---
config.status: executing libtool commands
config.status: executing include/gstdint.h commands
config.status: executing generate-headers commands
make[3]: Nothing to be done for `all'.
make "AR_FLAGS=rc" "CC_FOR_BUILD=gcc"
"CC_FOR_TARGET=/Users/chrisj/Packages/gcc-4.7.0/host-x86_64-apple-darwin10.8.0/gcc/xgcc
-B/Users/chrisj/Packages/gcc-4.7.0/host-x86_64-apple-darwin10.8.0/gcc/"
"CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=-g -O2"
"CFLAGS_FOR_TARGET=-g -O2" "INSTALL=/usr/bin/install -c"
"INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c"
"INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=" "LIBCFLAGS=-g -O2"
"LIBCFLAGS_FOR_TARGET=-g -O2" "MAKE=make" "MAKEINFO=makeinfo
--split-size=5000000 --split-size=5000000 --split-size=5000000 " "PICFLAG="
"PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "RUNTESTFLAGS="
"exec_prefix=/Users/chrisj/Packages/gcc-4.7.0/inst"
"infodir=/Users/chrisj/Packages/gcc-4.7.0/inst/share/info"
"libdir=/Users/chrisj/Packages/gcc-4.7.0/inst/lib"
"includedir=/Users/chrisj/Packages/gcc-4.7.0/inst/include"
"prefix=/Users/chrisj/Packages/gcc-4.7.0/inst"
"tooldir=/Users/chrisj/Packages/gcc-4.7.0/inst/x86_64-apple-darwin10.8.0"
"gxx_include_dir=/Users/chrisj/Packages/gcc-4.7.0/inst/include/c++/4.7.0"
"AR=ar"
"AS=/Users/chrisj/Packages/gcc-4.7.0/host-x86_64-apple-darwin10.8.0/gcc/as"
"LD=/Users/chrisj/Packages/gcc-4.7.0/host-x86_64-apple-darwin10.8.0/gcc/collect-ld"
"RANLIB=ranlib"
"NM=/Users/chrisj/Packages/gcc-4.7.0/host-x86_64-apple-darwin10.8.0/gcc/nm"
"NM_FOR_BUILD=" "NM_FOR_TARGET=nm" "DESTDIR=" "WERROR=" all-recursive
Making all in include
mkdir -p ./x86_64-apple-darwin10.8.0/bits/stdc++.h.gch
/Users/chrisj/Packages/gcc-4.7.0/host-x86_64-apple-darwin10.8.0/gcc/xgcc
-shared-libgcc
-B/Users/chrisj/Packages/gcc-4.7.0/host-x86_64-apple-darwin10.8.0/gcc
-nostdinc++
-L/Users/chrisj/Packages/gcc-4.7.0/x86_64-apple-darwin10.8.0/libstdc++-v3/src
-L/Users/chrisj/Packages/gcc-4.7.0/x86_64-apple-darwin10.8.0/libstdc++-v3/src/.libs
-B/Users/chrisj/Packages/gcc-4.7.0/inst/x86_64-apple-darwin10.8.0/bin/
-B/Users/chrisj/Packages/gcc-4.7.0/inst/x86_64-apple-darwin10.8.0/lib/ -isystem
/Users/chrisj/Packages/gcc-4.7.0/inst/x86_64-apple-darwin10.8.0/include
-isystem
/Users/chrisj/Packages/gcc-4.7.0/inst/x86_64-apple-darwin10.8.0/sys-include
-x c++-header -nostdinc++ -g -O2
-I/Users/chrisj/Packages/gcc-4.7.0/x86_64-apple-darwin10.8.0/libstdc++-v3/include/x86_64-apple-darwin10.8.0
-I/Users/chrisj/Packages/gcc-4.7.0/x86_64-apple-darwin10.8.0/libstdc++-v3/include
-I/Users/chrisj/Packages/gcc-4.7.0/libstdc++-v3/libsupc++ -O2 -g -std=gnu++0x
/Users/chrisj/Packages/gcc-4.7.0/libstdc++-v3/include/precompiled/stdc++.h \
-o x86_64-apple-darwin10.8.0/bits/stdc++.h.gch/O2ggnu++0x.gch
init2.c:37: MPFR assertion failed: ((32 - 0)+0) == (((32 - 0)+0)/8) * 8 &&
sizeof(mp_limb_t) == (((32 - 0)+0)/8)
In file included from
/Users/chrisj/Packages/gcc-4.7.0/x86_64-apple-darwin10.8.0/libstdc++-v3/include/random:51:0,
from
/Users/chrisj/Packages/gcc-4.7.0/x86_64-apple-darwin10.8.0/libstdc++-v3/include/bits/stl_algo.h:67,
from
/Users/chrisj/Packages/gcc-4.7.0/x86_64-apple-darwin10.8.0/libstdc++-v3/include/algorithm:63,
from
/Users/chrisj/Packages/gcc-4.7.0/libstdc++-v3/include/precompiled/stdc++.h:65:
/Users/chrisj/Packages/gcc-4.7.0/x86_64-apple-darwin10.8.0/libstdc++-v3/include/bits/random.tcc:
In member function ‘std::independent_bits_engine<_RandomNumberEngine, __w,
_UIntType>::result_type std::independent_bits_engine<_RandomNumberEngine, __w,
_UIntType>::operator()()’:
/Users/chrisj/Packages/gcc-4.7.0/x86_64-apple-darwin10.8.0/libstdc++-v3/include/bits/random.tcc:735:60:
in constexpr expansion of ‘std::log(2.0e+0l)’
/Users/chrisj/Packages/gcc-4.7.0/x86_64-apple-darwin10.8.0/libstdc++-v3/include/bits/random.tcc:735:60:
internal compiler error: Abort trap
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[5]: *** [x86_64-apple-darwin10.8.0/bits/stdc++.h.gch/O2ggnu++0x.gch] Error
1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-stage1-target-libstdc++-v3] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/52733] Cannot compile gcc/g++ on Mac OS X 10.6.8
2012-03-27 4:48 [Bug c++/52733] New: Cannot compile gcc/g++ on Mac OS X 10.6.8 chris.jonesey at gmail dot com
@ 2012-03-27 10:47 ` redi at gcc dot gnu.org
2012-04-17 19:08 ` paolo.carlini at oracle dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2012-03-27 10:47 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52733
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-03-27 09:39:49 UTC ---
(In reply to comment #0)
> I downloaded GCC 4.7.0 released [2012-03-22] and was unable to build gcc/g++.
> I used the following configure command:
>
> % ./configure --prefix=`pwd`/inst --enable-languages=c,c++
Running configure inside the source directory is not supported
http://gcc.gnu.org/wiki/FAQ#configure
Are you sure you want to use a subdir of the sources as the --prefix arg? That
looks odd too. You still shouldn't get an internal compiler error though.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/52733] Cannot compile gcc/g++ on Mac OS X 10.6.8
2012-03-27 4:48 [Bug c++/52733] New: Cannot compile gcc/g++ on Mac OS X 10.6.8 chris.jonesey at gmail dot com
2012-03-27 10:47 ` [Bug c++/52733] " redi at gcc dot gnu.org
@ 2012-04-17 19:08 ` paolo.carlini at oracle dot com
2012-04-17 19:27 ` paolo.carlini at oracle dot com
2012-10-09 16:18 ` paolo.carlini at oracle dot com
3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-04-17 19:08 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52733
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-04-17 19:03:19 UTC ---
Per se, the issue is now moot because both in mainline and in 4_7-branch we
don't use std::log(2.0) anymore. Still, something may well be flaky, at least
for this specific version of darwin ("Snow Leopard", right?) vs the
optimization of the mathematical functions for compile-time constants... If
current 4_7-branch builds fine - I don't see why it should not - then it should
be pretty easy to create a small reproducer, just a tiny function calling
std::log(2.0).
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/52733] Cannot compile gcc/g++ on Mac OS X 10.6.8
2012-03-27 4:48 [Bug c++/52733] New: Cannot compile gcc/g++ on Mac OS X 10.6.8 chris.jonesey at gmail dot com
2012-03-27 10:47 ` [Bug c++/52733] " redi at gcc dot gnu.org
2012-04-17 19:08 ` paolo.carlini at oracle dot com
@ 2012-04-17 19:27 ` paolo.carlini at oracle dot com
2012-10-09 16:18 ` paolo.carlini at oracle dot com
3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-04-17 19:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52733
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-04-17 19:26:16 UTC ---
For the record: on Lion things seem in pretty good shape for current gcc-4_7:
builds is fine and std::log(2.0L) also works at any optimization level.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/52733] Cannot compile gcc/g++ on Mac OS X 10.6.8
2012-03-27 4:48 [Bug c++/52733] New: Cannot compile gcc/g++ on Mac OS X 10.6.8 chris.jonesey at gmail dot com
` (2 preceding siblings ...)
2012-04-17 19:27 ` paolo.carlini at oracle dot com
@ 2012-10-09 16:18 ` paolo.carlini at oracle dot com
3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-10-09 16:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52733
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |WORKSFORME
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-10-09 16:17:50 UTC ---
We can close this.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-10-09 16:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-27 4:48 [Bug c++/52733] New: Cannot compile gcc/g++ on Mac OS X 10.6.8 chris.jonesey at gmail dot com
2012-03-27 10:47 ` [Bug c++/52733] " redi at gcc dot gnu.org
2012-04-17 19:08 ` paolo.carlini at oracle dot com
2012-04-17 19:27 ` paolo.carlini at oracle dot com
2012-10-09 16:18 ` paolo.carlini at oracle 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).