https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61652
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- You don't need to use --enable-libstdcxx-debug-flags, the default is to build the debug libs with -g3 -O0 anyway, and that works fine for me. Maybe using --enable-libstdcxx-debug-flags breaks that, I'll check.