> > But now it's stuck on an undefined reference: >> C:\Users\JW\AppData\Local\Temp\ccrMv82H.ltrans0.ltrans.o:<artificial>:(.text+0x7428): undefined reference to `stpcpy' >> collect2.exe: error: ld returned 1 exit status >> make[4]: *** [Makefile:377: liblto_plugin.la] Error 1 >> make[4]: Leaving directory '/home/JW/build-gcc-mingw64/lto-plugin' >> make[3]: *** [Makefile:291: all] Error 2 >> make[3]: Leaving directory '/home/JW/build-gcc-mingw64/lto-plugin' >> make[2]: *** [Makefile:16108: all-stage2-lto-plugin] Error 2 >> make[2]: Leaving directory '/home/JW/build-gcc-mingw64' >> make[1]: *** [Makefile:23982: stage2-bubble] Error 2 >> make[1]: Leaving directory '/home/JW/build-gcc-mingw64' >> make: *** [Makefile:945: all] Error 2 > > Not sure what to do at this point. Shouldn't stpcpy be a part of the > mingw64 runtime library? > This is an old bug in make BUILD_CONFIG=bootstrap-lto for Windows users, see my workaround at https://gcc.gnu.org/ml/gcc/2017-05/msg00039.html Sincerely, Loo Rong Jie