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: unassig...@gcc.gnu.org ReportedBy: chris.jone...@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