https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87618
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #1) > I made a typo in the linker script: > > --- a/libstdc++-v3/config/abi/pre/gnu.ver > +++ b/libstdc++-v3/config/abi/pre/gnu.ver > @@ -2035,7 +2035,7 @@ GLIBCXX_3.4.26 { > _ZNSt15basic_stringbuf[cw]St11char_traitsI[cw]ESaI[cw]EEC[12]Ev; ^^ And here too. The tests for these functions are built with -O2 and so the constructor is inlined and we didn't notice the definition isn't exported. Ouch.