https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67116
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> --- Yes, this would happen if you're setting CC and CXX, causing libstdc++ to be configured using the compiler specified by those variables, not the one that has just been built. So I think this is user error.