https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101711
--- Comment #5 from bootmgr at 163 dot com <bootmgr at 163 dot com> --- (In reply to ctice from comment #4) > Is there something special I need to download, set up, or build in order to > do mingw32 cross-compiles? > > I'm getting configure/build failures even when I omit enabling vtable > verify; I also don't know where/how to get the mcf thread libraries? > > [Instructions for both of these are necessary if I am to debug the libvtv > issue]. > > Just to see if this was related to libvtv or not, I tried: > > $ ../configure --disable-multilib --disable-nls --enable-languag > es=c,c++,lto --enable-version-specific-runtime-libs > --enable-fully-dynamic-strin > g --enable-large-address-aware --enable-mingw-wildcard > --target=x86_64-w64-mingw > 32 --with-local-prefix=/usr/local/x86_64-w64-mingw32 > $ make > > (Notice that I omitted the --enable-threads=mcf and the > --enable-vtable-verify flags). > > I got: > > ... > make[2]: Leaving directory > '/usr/local/google3/cmtice/gcc-fsf.clean.novtv.obj/libcc1' > Checking multilib configuration for libgcc... > Configuring in x86_64-w64-mingw32/libgcc > configure: loading cache ./config.cache > checking build system type... x86_64-pc-linux-gnu > checking host system type... x86_64-w64-mingw32 > checking for --enable-version-specific-runtime-libs... yes > checking for a BSD-compatible install... /usr/bin/install -c > checking for gawk... gawk > checking for x86_64-w64-mingw32-ar... x86_64-w64-mingw32-ar > checking for x86_64-w64-mingw32-lipo... x86_64-w64-mingw32-lipo > checking for x86_64-w64-mingw32-nm... > /usr/local/google3/cmtice/gcc-fsf.clean.novtv.obj/./gcc/nm > checking for x86_64-w64-mingw32-ranlib... x86_64-w64-mingw32-ranlib > checking for x86_64-w64-mingw32-strip... x86_64-w64-mingw32-strip > checking whether ln -s works... yes > checking for x86_64-w64-mingw32-gcc... > /usr/local/google3/cmtice/gcc-fsf.clean.novtv.obj/./gcc/xgcc > -B/usr/local/google3/cmtice/gcc-fsf.clean.novtv.obj/./gcc/ > -L/usr/local/x86_64-w64-mingw32/lib -L/usr/local/mingw/lib -isystem > /usr/local/x86_64-w64-mingw32/include -isystem /usr/local/mingw/include > -B/usr/local/x86_64-w64-mingw32/bin/ -B/usr/local/x86_64-w64-mingw32/lib/ > -isystem /usr/local/x86_64-w64-mingw32/include -isystem > /usr/local/x86_64-w64-mingw32/sys-include > checking for suffix of object files... configure: error: in > `/usr/local/google3/cmtice/gcc-fsf.clean.novtv.obj/x86_64-w64-mingw32/ > libgcc': > configure: error: cannot compute suffix of object files: cannot compile > See `config.log' for more details > make[1]: *** [Makefile:13771: configure-target-libgcc] Error 1 > make[1]: Leaving directory > '/usr/local/google3/cmtice/gcc-fsf.clean.novtv.obj' > make: *** [Makefile:968: all] Error 2 > > > Please update this bug with further instructions. Thank you. You can download the mcfgthread library at https://github.com/lhmouse/mcfgthread. And apply this patch for gcc to support mcf thread model. https://github.com/lhmouse/MINGW-packages-dev/blob/master/mingw-w64-gcc-git/9000-gcc-10-branch-Added-mcf-thread-model-support-from-mcfgthread.patch I tried to use --enable-vtable-verify and --with-sysroot=/usr/local, and then gcc compiled successfully. Can you give me your config.log file?