https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69762
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- IIRC locales need some libc support and the hookup for libstdc++ to libc uses some glibc extensions due to needing threaded support.