http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51333
Bug #: 51333 Summary: cxxabi.h incompatible with -fkeep-inline-functions at link time Classification: Unclassified Product: gcc Version: 4.6.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: d...@gnu.org Created attachment 25935 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25935 File failing at link time The following file fails, when compiled with -fkeep-inline-functions, at link time with the error g++ -fkeep-inline-functions abi.cc /tmp/ccI7H3ZL.o: In function `__gnu_cxx::recursive_init_error::recursive_init_error()': abi.cc:(.text._ZN9__gnu_cxx20recursive_init_errorC2Ev[_ZN9__gnu_cxx20recursive_init_errorC5Ev]+0x16): undefined reference to `vtable for __gnu_cxx::recursive_init_error' collect2: ld returned 1 exit status Compilation exited abnormally with code 1 at Mon Nov 28 14:41:24 Version is Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6.1/lto-wrapper Target: i686-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.1-9ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu Thread model: posix gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)