Hi, I am trying to build a debug version of gcc 4.9.2 on Solaris 10 sparc. I've configured as (mostly following this link: https://lucamerello.wordpress.com/2014/05/31/solaris-10-how-to-build-and-install-gcc-4/ ): ../configure --build=sparc-sun-solaris2.10 --program-suffix=-4.9.2 --enable-libstdcxx-debug --with-gmp=/home/gcc-4.9.2/gmp-6.0.0a --with-mpfr=/home/gcc-4.9.2/mpfr-3.1.2 --with-mpc=/home/gcc-4.9.2/mpc-1.0.2 --without-gnu-as --with-as=/usr/ccs/bin/as --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-shared --disable-nls --enable-languages=c,c++ --prefix=/home/gcc-4.9.2/gcc-4.9.2 --with-stage1-ldflags="-Wl,-rpath=/home/gcc-4.9.2/gcc-4.9.2/lib/math,-rpath=/usr/local/lib -static-libgcc -static-libstdc++" --with-boot-ldflags="-Wl,-rpath=/home/gcc-4.9.2/gcc-4.9.2/lib/math,-rpath=/usr/local/lib -static-libgcc -static-libstdc++" When it tries to build libstdc++, I am getting this error: ld: fatal: unwind table: file .libs/compatibility.o: section .eh_frame: bad cie version 0: offset 0x7f000018 The last command (before the error) is: libtool: link: /home/gcc-4.9.2/src/objdir/./gcc/xgcc -shared-libgcc -B/home/gcc-4.9.2/src/objdir/./gcc -nostdinc++ -L/home/gcc-4.9.2/src/objdir/sparc-sun-solaris2.10/libstdc++-v3/src -L/home/gcc-4.9.2/src/objdir/sparc-sun-solaris2.10/libstdc++-v3/src/.libs -L/home/gcc-4.9.2/src/objdir/sparc-sun-solaris2.10/libstdc++-v3/libsupc++/.libs -B/home/gcc-4.9.2/sparc-sun-solaris2.10/bin/ -B/home/gcc-4.9.2/sparc-sun-solaris2.10/lib/ -isystem /home/gcc-4.9.2/sparc-sun-solaris2.10/include -isystem /home/gcc-4.9.2/sparc-sun-solaris2.10/sys-include -shared -nostdlib /usr/lib/crti.o /usr/ccs/lib/values-Xa.o /home/gcc-4.9.2/src/objdir/./gcc/crtbegin.o .libs/compatibility.o .libs/compatibility-debug_list.o .libs/compatibility-debug_list-2.o .libs/compatibility-c++0x.o .libs/compatibility-atomic-c++0x.o .libs/compatibility-thread-c++0x.o .libs/compatibility-chrono.o .libs/compatibility-condvar.o -Wl,-z -Wl,allextract ../../libsupc++/.libs/libsupc++convenience.a ../../src/debug/c++98/.libs/libc++98convenience.a ../../src/debug/c++11/.libs/libc++11convenience.a -Wl,-z -Wl,defaultextract -L/home/gcc-4.9.2/src/objdir/sparc-sun-solaris2.10/libstdc++-v3/libsupc++/.libs -L/home/gcc-4.9.2/src/objdir/sparc-sun-solaris2.10/libstdc++-v3/src -L/home/gcc-4.9.2/src/objdir/sparc-sun-solaris2.10/libstdc++-v3/src/.libs -lm -lposix4 -L/home/gcc-4.9.2/src/objdir/./gcc -L/usr/ccs/lib -lgcc_s -lc -lgcc_s -lc /home/gcc-4.9.2/src/objdir/./gcc/crtend.o /usr/lib/crtn.o -Wl,-M -Wl,libstdc++-symbols.ver-sun -Wl,-h -Wl,libstdc++.so.6 -o .libs/libstdc++.so.6.0.20 Has anybody experience similar problem? I also checked the patches installed on Solaris and it already has patch (139574/139555) installed (which seems to fix a similar error found in 2008) Thanks, Jane Cai