https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91595
--- Comment #5 from Iain Buclaw <ibuclaw at gdcproject dot org> --- (In reply to Brecht Sanders from comment #4) > I tried to build gcc 10 snapshot 20210320 for Windows 64-bit with the > proposed patch. > > First I got this error: > > make[2]: Entering directory > '/R/winlibs64_stage/gcc-10-20210320/build_mingw/gcc'make[2]: *** No rule to > make target 'config/winnt-d.c', needed by 'winnt-d.o'. > Stop. > That is because the build rule is not correct, it should be config/i386/winnt-d.c according to the location of the file in the patch. > After copying the file manually there like this: > > mkdir -p build_mingw/gcc/config > cp -u gcc/config/i386/winnt-d.c build_mingw/gcc/config/ > > I got this error: > > d:/prog/winlibs64_stage/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.0.1/../. > ./../../x86_64-w64-mingw32/bin/ld.exe: > winnt-d.o:R:\winlibs64_stage\gcc-10-20210320\build_mingw\gcc/config/winnt-d. > c:60: multiple definition of `targetdm'; > winnt-d.o:R:\winlibs64_stage\gcc-10-20210320\build_mingw\gcc/config/winnt-d. > c:60: first defined here > collect2.exe: error: ld returned 1 exit status Because I imagine it's now picked up the object file from two different locations.