https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80881
--- Comment #12 from Daniel Starke <daniel.f.starke at freenet dot de> --- I am not an expert on this field but your build does not use platform tls support as mine is supposed to do. Furthermore, I was building all under Windows. The only difference during the build process was the target architecture (x86/x64). Using --enable-targets=all produced a compiler able to build for both architectures. Not specifying --build= should just default to the base compilers default target (which is, nevertheless, Windows). The only issue I could possible see here is that the base compiler used to build GCC did not support platform tls support but GCC still assumed it was available resulting in a wrong setup. In this sense I was cross compiling (mingw x86 to mingw-w64 x64). Nevertheless, building GCC without --enable-tls like you did produces a working executable for me too as mentioned on 2017-05-26.