https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101655
--- Comment #7 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. A question about Canadian compiler. Does the Canadian compiler try to find the lib in the $prefix/$target/lib and include from prefix/$target/include? Does it only find libs in the cross compiler itself? Should I build libc for candian compiler or just copy files from cross compiler?