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

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Can you provide the exact steps you are doing?
Because I think you are misunderstanding how this works.

So if you use --host=x86_64-w64-mingw32 .

configure:2358: checking build system type
configure:2372: result: x86_64-pc-linux-gnu
configure:2419: checking host system type
configure:2432: result: x86_64-w64-mingw32
configure:2452: checking target system type
configure:2465: result: x86_64-w64-mingw32

But it uses the wrong compiler for the target libraries.

Also I see you had built the cross compiler in the src directory:
Configured with: ./configure --disable-libstdcxx-verbose --disable-multilib
--disable-nls --enable-fully-dynamic-string --enable-languages=c,c++,lto
--enable-large-address-aware --enable-mingw-wildcard --enable-threads=mcf
--target=x86_64-w64-mingw32

Don't do that.

Reply via email to