https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118238
Bug ID: 118238 Summary: gcc/lto-wrapper.cc broken on Windows (MinGW-w64) due to missing mkstemps() and link() Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: brechtsanders at users dot sourceforge.net Target Milestone: --- When trying to build snapshot 15-20241222 on Windows / MinGW-w64 the build fails on gcc/lto-wrapper.cc because mkstemps() and link() are not available on this platform. ../../gcc/lto-wrapper.cc: In function 'void run_gcc(unsigned int, char**)': ../../gcc/lto-wrapper.cc:1878:20: error: 'mkstemps' was not declared in this scope; did you mean 'mkstemp'? 1878 | int fd = mkstemps (file, strlen (".ltrans.out")); | ^~~~~~~~ | mkstemp ../../gcc/lto-wrapper.cc:2249:27: error: 'link' was not declared in this scope; did you mean 'unlink'? 2249 | if (link (output_name, output_name_link) != EEXIST) | ^~~~ | unlink