http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55693
Aldy Hernandez <aldyh at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|aldyh at gcc dot gnu.org |unassigned at gcc dot | |gnu.org --- Comment #15 from Aldy Hernandez <aldyh at gcc dot gnu.org> 2013-01-18 17:22:56 UTC --- Ok, I'm going to put this PR back in the queue for someone else to look at. I have debugged enough for a Darwin savvy person to attack, but my lack of Darwin shlib foo is hindering progress here. FWIW, DYLD_PRINT_LIBRARIES below shows that we are loading the built libstdc++ and libitm shared libraries. I am more than happy to try more options as I already have a build set up. And for the record, below is an easy way to reproduce the problem with libitm/testsuite/libitm.c++/eh-1.C: Yanory-Hernandezs-MacBook:testsuite aldyh$ sh y + SRC=/mnt/gcc/libitm/testsuite/libitm.c++/eh-1.C + /Users/aldyh/bld/1/gcc/xgcc -B/Users/aldyh/bld/1/gcc/ /mnt/gcc/libitm/testsuite/libitm.c++/eh-1.C -B/Users/aldyh/bld/1/x86_64-apple-darwin10.8.0/./libitm/ -I/Users/aldyh/bld/1/x86_64-apple-darwin10.8.0/./libitm -I/mnt/gcc/libitm/testsuite/.. -shared-libgcc -fmessage-length=0 -fgnu-tm -nostdinc++ -I/Users/aldyh/bld/1/x86_64-apple-darwin10.8.0/libstdc++-v3/include/x86_64-apple-darwin10.8.0 -I/Users/aldyh/bld/1/x86_64-apple-darwin10.8.0/libstdc++-v3/include -I/mnt/gcc/libstdc++-v3/libsupc++ -I/mnt/gcc/libstdc++-v3/include/backward -I/mnt/gcc/libstdc++-v3/testsuite/util -L/Users/aldyh/bld/1/x86_64-apple-darwin10.8.0/./libitm/.libs -L/Users/aldyh/bld/1/x86_64-apple-darwin10.8.0/./libitm/../libstdc++-v3/src/.libs -shared-libgcc -lstdc++ -lm -g -o ./eh-1.exe + export DYLD_LIBRARY_PATH=.:/Users/aldyh/bld/1/x86_64-apple-darwin10.8.0/./libitm/.libs:/Users/aldyh/bld/1/gcc:/Users/aldyh/bld/1/x86_64-apple-darwin10.8.0/./libitm/../libstdc++-v3/src/.libs:.:/Users/aldyh/bld/1/x86_64-apple-darwin10.8.0/./libitm/.libs:/Users/aldyh/bld/1/gcc:/Users/aldyh/bld/1/x86_64-apple-darwin10.8.0/./libitm/../libstdc++-v3/src/.libs + DYLD_LIBRARY_PATH=.:/Users/aldyh/bld/1/x86_64-apple-darwin10.8.0/./libitm/.libs:/Users/aldyh/bld/1/gcc:/Users/aldyh/bld/1/x86_64-apple-darwin10.8.0/./libitm/../libstdc++-v3/src/.libs:.:/Users/aldyh/bld/1/x86_64-apple-darwin10.8.0/./libitm/.libs:/Users/aldyh/bld/1/gcc:/Users/aldyh/bld/1/x86_64-apple-darwin10.8.0/./libitm/../libstdc++-v3/src/.libs + export DYLD_PRINT_LIBRARIES=1 + DYLD_PRINT_LIBRARIES=1 + ./eh-1.exe dyld: loaded: /Users/aldyh/bld/1/x86_64-apple-darwin10.8.0/libitm/testsuite/./eh-1.exe dyld: loaded: /Users/aldyh/bld/1/x86_64-apple-darwin10.8.0/./libitm/../libstdc++-v3/src/.libs/libstdc++.6.dylib dyld: loaded: /Users/aldyh/bld/1/x86_64-apple-darwin10.8.0/./libitm/.libs/libitm.1.dylib dyld: loaded: /usr/lib/libSystem.B.dylib dyld: loaded: /Users/aldyh/bld/1/gcc/libgcc_s.1.dylib dyld: loaded: /usr/lib/system/libmathCommon.A.dylib y: line 11: 89286 Segmentation fault ./eh-1.exe