https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105678 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I suspect it is missing from the linker script for versioning. Using -static-libstdc++ should be a workaround.