Per a discussion with ktietz (mingw-w64 developer) in
irc.oftc.net/#mingw-w64 when mingw-w64 is compiled as
a cross-compiler on linux the gendef/genidl tools are
supposed to be compiled as native ELF binaries and not
cross-compiled as win32 pe executables.
Created attachment 565808 [details]
Created attachment 565810 [details]
Created attachment 565812 [details]
what it says on the tin
Was original bug report about build failure?
(In reply to Fedja Beader from comment #3)
> Created attachment 565812 [details]
> what it says on the tin
> configure:3432: i686-w64-mingw32-gcc -O2 -pipe -fomit-frame-pointer -march=core2 -I/tmp/portage/cross-i686-w64-mingw32/mingw64-runtime-6.0.0-r1/temp/tmproot/include -Wl,-O1 -Wl,--as-needed conftest.c >&5
> /usr/libexec/gcc/i686-w64-mingw32/ld: cannot find crt2.o: No such file or directory
> /usr/libexec/gcc/i686-w64-mingw32/ld: cannot find -lmingw32
Do you have full cross-compiler installed to use USE=tools?
Try 'USE=-tools crossdev ...' if it works.
USE="-tools -hardened" FEATURES="-fail-clean" crossdev --ov-output /var/portage/crossdev/ --overlays gentoo -t i686-w64-mingw32
Produces a toolchain without failure.
Thank you! Let's see if we can just skip tools building at headers-only stage.
(In reply to Sergei Trofimovich from comment #4)
> Was original bug report about build failure?
No, it was about a 'successful' build which built the genidl/etc
executables as windows binaries which are 'unusable' (without wine
or so) on linux.
Thank you! Updated the title.