Since gcc 4.6.0 trunk snapshot 20100904 (or maybe earlier), the building fails with option "--enable-libstdcxx-debug". The last 30 some lines of build log shows:
----- BEGIN ----- Making install in src (cd debug && /usr/bin/make CXXFLAGS='-g3 -O0' all) make[4]: Nothing to be done for `all'. test -z "/opt/local/lib/gcc-trunk/gcc/x86_64-apple-darwin10/4.6.0" || ../../../../gcc-4.6-20100911/libstdc++-v3/../install-sh -c -d "/opt/local/var/macports/build/_Users_dxy_ports_lang_gcc-trunk/work/destroot/opt/local/lib/gcc-trunk/gcc/x86_64-apple-darwin10/4.6.0" /bin/sh ../libtool --mode=install /usr/bin/install -c libstdc++.la '/opt/local/var/macports/build/_Users_dxy_ports_lang_gcc-trunk/work/destroot/opt/local/lib/gcc-trunk/gcc/x86_64-apple-darwin10/4.6.0' libtool: install: /usr/bin/install -c .libs/libstdc++.6.dylib /opt/local/var/macports/build/_Users_dxy_ports_lang_gcc-trunk/work/destroot/opt/local/lib/gcc-trunk/gcc/x86_64-apple-darwin10/4.6.0/libstdc++.6.dylib libtool: install: (cd /opt/local/var/macports/build/_Users_dxy_ports_lang_gcc-trunk/work/destroot/opt/local/lib/gcc-trunk/gcc/x86_64-apple-darwin10/4.6.0 && { ln -s -f libstdc++.6.dylib libstdc++.dylib || { rm -f libstdc++.dylib && ln -s libstdc++.6.dylib libstdc++.dylib; }; }) libtool: install: /usr/bin/install -c .libs/libstdc++.lai /opt/local/var/macports/build/_Users_dxy_ports_lang_gcc-trunk/work/destroot/opt/local/lib/gcc-trunk/gcc/x86_64-apple-darwin10/4.6.0/libstdc++.la libtool: install: /usr/bin/install -c .libs/libstdc++.a /opt/local/var/macports/build/_Users_dxy_ports_lang_gcc-trunk/work/destroot/opt/local/lib/gcc-trunk/gcc/x86_64-apple-darwin10/4.6.0/libstdc++.a libtool: install: chmod 644 /opt/local/var/macports/build/_Users_dxy_ports_lang_gcc-trunk/work/destroot/opt/local/lib/gcc-trunk/gcc/x86_64-apple-darwin10/4.6.0/libstdc++.a libtool: install: /usr/bin/ranlib /opt/local/var/macports/build/_Users_dxy_ports_lang_gcc-trunk/work/destroot/opt/local/lib/gcc-trunk/gcc/x86_64-apple-darwin10/4.6.0/libstdc++.a /usr/bin/ranlib: file: /opt/local/var/macports/build/_Users_dxy_ports_lang_gcc-trunk/work/destroot/opt/local/lib/gcc-trunk/gcc/x86_64-apple-darwin10/4.6.0/libstdc++.a(math_stubs_float.o) has no symbols /usr/bin/ranlib: file: /opt/local/var/macports/build/_Users_dxy_ports_lang_gcc-trunk/work/destroot/opt/local/lib/gcc-trunk/gcc/x86_64-apple-darwin10/4.6.0/libstdc++.a(math_stubs_long_double.o) has no symbols /usr/bin/ranlib: file: /opt/local/var/macports/build/_Users_dxy_ports_lang_gcc-trunk/work/destroot/opt/local/lib/gcc-trunk/gcc/x86_64-apple-darwin10/4.6.0/libstdc++.a(mutex.o) has no symbols /usr/bin/ranlib: file: /opt/local/var/macports/build/_Users_dxy_ports_lang_gcc-trunk/work/destroot/opt/local/lib/gcc-trunk/gcc/x86_64-apple-darwin10/4.6.0/libstdc++.a(condition_variable.o) has no symbols /usr/bin/ranlib: file: /opt/local/var/macports/build/_Users_dxy_ports_lang_gcc-trunk/work/destroot/opt/local/lib/gcc-trunk/gcc/x86_64-apple-darwin10/4.6.0/libstdc++.a(thread.o) has no symbols /usr/bin/ranlib: file: /opt/local/var/macports/build/_Users_dxy_ports_lang_gcc-trunk/work/destroot/opt/local/lib/gcc-trunk/gcc/x86_64-apple-darwin10/4.6.0/libstdc++.a(atexit_arm.o) has no symbols /usr/bin/ranlib: file: /opt/local/var/macports/build/_Users_dxy_ports_lang_gcc-trunk/work/destroot/opt/local/lib/gcc-trunk/gcc/x86_64-apple-darwin10/4.6.0/libstdc++.a(eh_arm.o) has no symbols /usr/bin/ranlib: file: /opt/local/var/macports/build/_Users_dxy_ports_lang_gcc-trunk/work/destroot/opt/local/lib/gcc-trunk/gcc/x86_64-apple-darwin10/4.6.0/libstdc++.a(tinfo2.o) has no symbols libtool: install: warning: remember to run `libtool --finish /opt/local/lib/gcc-trunk/gcc/x86_64-apple-darwin10/4.6.0' (cd debug && /usr/bin/make \ toolexeclibdir=/opt/local/lib/gcc-trunk/gcc/x86_64-apple-darwin10/4.6.0/debug install) test -z "/opt/local/lib/gcc-trunk/gcc/x86_64-apple-darwin10/4.6.0/debug" || ../../../../gcc-4.6-20100911/libstdc++-v3/../install-sh -c -d "/opt/local/var/macports/build/_Users_dxy_ports_lang_gcc-trunk/work/destroot/opt/local/lib/gcc-trunk/gcc/x86_64-apple-darwin10/4.6.0/debug" /bin/sh: ../../../../gcc-4.6-20100911/libstdc++-v3/../install-sh: No such file or directory make[6]: *** [install-toolexeclibLTLIBRARIES] Error 127 make[5]: *** [install-am] Error 2 make[4]: *** [install_debug] Error 2 make[3]: *** [install-am] Error 2 make[2]: *** [install-recursive] Error 1 make[1]: *** [install-target-libstdc++-v3] Error 2 make: *** [install] Error 2 ----- END ----- System is Mac OS X 10.6, with Xcode 3.2.3, gcc -v output: $ gcc -v Using built-in specs. Target: i686-apple-darwin10 Configured with: /var/tmp/gcc/gcc-5664~38/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1 Thread model: posix gcc version 4.2.1 (Apple Inc. build 5664) Trunk gcc configured with: ../gcc-4.6-20100904/configure --prefix=/opt/local --build=x86_64-apple-darwin10 --enable-languages=c,c++ --libdir=/opt/local/lib/gcc-trunk --includedir=/opt/local/include/gcc-trunk --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-4.6 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-4.6 --enable-version-specific-runtime-libs --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-ppl=/opt/local --with-cloog=/opt/local --enable-plugin --enable-decimal-float --enable-concept-checks --enable-fully-dynamic-string --enable-libstdcxx-debug -- Summary: Building with "--enable-libstdcxx-debug" fails during install Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: manphiz at gmail dot com GCC build triplet: x86_64-apple-darwin10 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45711