https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109460

--- Comment #18 from Costas Argyris <costas.argyris at gmail dot com> ---
For some reason you are compiling gcc/utf8-mingw32.o as an executable, which
shouldn't be happening.

This is the rule for it in gcc\gcc\config\i386\x-mingw32-utf8

utf8-mingw32.o : utf8rc-mingw32.o sym-mingw32.o
        $(COMPILER) -r utf8rc-mingw32.o sym-mingw32.o -o $@

This simply takes the two .o files and combines them into one.    No
executables or main functions are involved here whatsoever.

Did you perhaps change anything in this rule while trying to fix it?   
Otherwise I don't know why your utf8-mingw32.o has a main function and mine
doesn't.

The linker comes to mind - I noticed your gcc is configured to explicitly use:

--with-ld=/usr/bin/i686-w64-mingw32-ld

but I don't know why that would cause such behavior.

You are also getting a bunch of errors like this:

/usr/bin/i686-w64-mingw32-ld: Dwarf Error: Could not find abbrev number 101.

which again are coming from the linker.

Reply via email to