https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98860
--- Comment #1 from cqwrteur <unlvsur at live dot com> --- The question is that why it says we are not cross-compiling? I am using the same script I used before. https://bitbucket.org/ejsvifq_mabmip/mingw-gcc-mcf-gthread/src/master/PKGBUILD It is so weird. checking whether we are cross compiling... configure: error: in `/home/unlvs/mcf_build/src/build-x86_64-w64-mingw32/x86_64-w64-mingw32/libgomp': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details configure: error: in `/home/unlvs/mcf_build/src/build-x86_64-w64-mingw32/x86_64-w64-mingw32/libatomic': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details .exe checking whether we are cross compiling... make[1]: *** [Makefile:15606: configure-target-libgomp] Error 1 make[1]: *** Waiting for unfinished jobs.... configure: error: in `/home/unlvs/mcf_build/src/build-x86_64-w64-mingw32/x86_64-w64-mingw32/libssp': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details make[1]: *** [Makefile:16174: configure-target-libatomic] Error 1 configure: error: in `/home/unlvs/mcf_build/src/build-x86_64-w64-mingw32/x86_64-w64-mingw32/libquadmath': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details make[1]: *** [Makefile:13329: configure-target-libssp] Error 1 make[1]: *** [Makefile:14375: configure-target-libquadmath] Error 1 make[1]: Leaving directory '/home/unlvs/mcf_build/src/build-x86_64-w64-mingw32' make: *** [Makefile:973: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...