https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101655
--- Comment #6 from cqwrteur <unlvsur at live dot com> --- (In reply to Andrew Pinski from comment #5) > 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. I do not know actually, because i just reported that for my friend he does not have an account. Can you just create an account for boot...@163.com?