https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109460
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2023-04-10 Ever confirmed|0 |1 --- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- > Did you add the -fno-PIE flag manually or was it part of the build process > you are following? -fno-PIE is automatically set when the compiler is built. > Seems like you are trying to compile an executable out of sym-mingw32.cc, > but this shouldn't be happening because this file gets compiled into a > simple object file only. That's why it would help to know more about the > build process you are following. The missing -o looks genuine, does not it? sym-mingw32.o : $(srcdir)/config/i386/sym-mingw32.cc $(COMPILER) -c $< $@ Note that: tf8-mingw32.o : utf8rc-mingw32.o sym-mingw32.o $(COMPILER) -r utf8rc-mingw32.o sym-mingw32.o -o $@ can be rewritten using $^ instead of repeating the prerequisites.