https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67116
--- Comment #2 from Cezary Śliwa <sliwa at ifpan dot edu.pl> --- This is a quite special case, target and host architecture are the same, only the thread models are different. I think libstdc++ uses the preinstalled compiler rather that the one just built. Anyway, the preinstalled compiler is: $ x86_64-w64-mingw32-g++ -v Using built-in specs. COLLECT_GCC=x86_64-w64-mingw32-g++ COLLECT_LTO_WRAPPER=/opt/mingw64-v4.0.2/bin/../libexec/gcc/x86_64-w64-mingw32/5.2.0/lto-wrapper Target: x86_64-w64-mingw32 Configured with: ../gcc-5.2.0/configure --with-sysroot=/opt/mingw64 --prefix=/opt/mingw64 --enable-languages=c,c++,fortran,lto --target=x86_64-w64-mingw32 --enable-targets=all Thread model: win32 gcc version 5.2.0 (GCC) and the configure command: ../gcc-5.2.0/configure --with-sysroot=/mingw64 --prefix=/mingw64 --enable-languages=c,c++,fortran,lto --target=x86_64-w64-mingw32 --enable-targets=all --host=x86_64-w64-mingw32 --enable-threads=posix --enable-libgomp