https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109460
--- Comment #5 from Costas Argyris <costas.argyris at gmail dot com> --- >> Yes, because -o is missing. I don't understand why -o missing is a problem some times but not others (because this has been succesfully built before with -o missing). Adding a "-o" flag seems OK to me if it solves this issue, but Huaqi still reported problems even after adding it: utf8-mingw32.o: In function `WinMainCRTStartup': ... this object file should never have such a function, so something went very wrong in this build process. Looks like something was attempted to get built as an executable, when it shouldn't. All three object files: utf8rc-mingw32.o sym-mingw32.o utf8-mingw32.o should be without any such main function. What caused this main function to appear in this object file in this particular build process?