https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82366
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Actually the gdb output does show the right libstdc++ is being used: Reading symbols from /dvl/oms6/gcc-7.1.0/lib64/libstdc++.so.6...done. Loaded symbols for /dvl/oms6/gcc-7.1.0/lib64/libstdc++.so.6 Try using _GLIBCXX_USE_CXX11_ABI=0 anyway, and see if that helps.