Encountered this when running "FEATURES=nostrip crossdev -t mingw32" trying to work around bug 148437. Error message reads like this: mingw32-gcc -Wl,--base-file=mingwthrd.base mingwthrd.exp -B./ -mdll -Wl,--image-base,0x6FBC0000 -Wl,--entry,_DllMainCRTStartup@12 mthr.o mthr_init.o -Lmingwex \ -o mingwthrd_dummy.exe /usr/libexec/gcc/mingw32/ld: mingwthrd.exp: warning: illegal symbol index 3670016 in relocs /usr/libexec/gcc/mingw32/ld: mingwthrd.exp: warning: illegal symbol index 1851850755 in relocs /usr/libexec/gcc/mingw32/ld: mingwthrd.exp: illegal relocation type 28001 at address 0x4 collect2: ld returned 1 exit status make: *** [mingwthrd.def] Error 1
Created attachment 98290 [details] cross-mingw32-mingw-runtime.log
Created attachment 98291 [details] cross-mingw32-info.log
try it with simpler CFLAGS ... like just -O2
(In reply to comment #3) > try it with simpler CFLAGS ... like just -O2 "CFLAGS=-O2 CXXFLAGS=-O2 FEATURES=nostrip crossdev -t mingw32" works :-) I'd never have thought -march likely to break such things. Anyway, thanks a lot. Probably should do some strip-flags in the ebuild to handle this automatically.
it is a bug in the toolchain; stripping flags just ignores the problem
(In reply to comment #5) > it is a bug in the toolchain; stripping flags just ignores the problem Will this bug be addressed here by the Gentoo toolchain devs, or should I file a new bug somewhere else? If so, where? If you are not going to fix it in the near future, a nice comment and a flag strip might still be a valid temporary workaround, so people won't have to override the flags every time they update their mingw cross compiler.
I get the same error :(
*** Bug 228153 has been marked as a duplicate of this bug. ***
I don't have a prescott to try. Could you try again with the newer versions of gcc and such that we have now?
(In reply to comment #9) > I don't have a prescott to try. Could you try again with the newer versions of > gcc and such that we have now? Tried again, couldn't reproduce this any more, so I guess it's fixed. Thanks.