Hi,
I'm trying to build the windows-hosted MinGW-w64 toolchain using Linux
and MinGW-w64 linux-hosted cross-compiler.
I have two questions:
1) is it possible? can someone point me to the necessary documentation?
2) I was able to successfully built
libiconv+binutils+gmp+mpfr+mpc+isl+zlib+MinGW-w64-headers and faced with
this error on the `make all-gcc` stage:
x86_64-w64-mingw32-gcc \
-L/mingw64/x86_64-w64-mingw32/lib \
-L/mingw64/mingw/lib \
-isystem /mingw64/x86_64-w64-mingw32/include \
-isystem /mingw64/mingw/include \
-fno-checking \
-g \
-O2 \
-pipe \
-fno-ident \
-I/home/nixman/mingw-gcc-9.3.0/x86_64-930-posix-seh-rt_v7-s/mingw64/opt/include
\
-I/home/nixman/mingw-gcc-9.3.0/prerequisites/x86_64-zlib-static/include
\
-I/home/nixman/mingw-gcc-9.3.0/prerequisites/x86_64-w64-mingw32-static/include
\
-O2 \
-I../../../../../src/gcc-9.3.0/libgcc/../winsup/w32api/include \
-g \
-O2 \
-pipe \
-fno-ident \
-I/home/nixman/mingw-gcc-9.3.0/x86_64-930-posix-seh-rt_v7-s/mingw64/opt/include
\
-I/home/nixman/mingw-gcc-9.3.0/prerequisites/x86_64-zlib-static/include
\
-I/home/nixman/mingw-gcc-9.3.0/prerequisites/x86_64-w64-mingw32-static/include
\
-DIN_GCC \
-W \
-Wall \
-Wno-narrowing \
-Wwrite-strings \
-Wcast-qual \
-Wno-format \
-Wstrict-prototypes \
-Wmissing-prototypes \
-Wold-style-definition \
-isystem ./include \
-g \
-DIN_LIBGCC2 \
-fbuilding-libgcc \
-fno-stack-protector \
-I. \
-I. \
-I../.././gcc \
-I../../../../../src/gcc-9.3.0/libgcc \
-I../../../../../src/gcc-9.3.0/libgcc/. \
-I../../../../../src/gcc-9.3.0/libgcc/../gcc \
-I../../../../../src/gcc-9.3.0/libgcc/../include \
-I../../../../../src/gcc-9.3.0/libgcc/config/libbid \
-DENABLE_DECIMAL_BID_FORMAT \
-DHAVE_CC_TLS \
-DUSE_EMUTLS \
-Wno-missing-prototypes \
-Wno-type-limits \
-o divtf3.o \
-MT divtf3.o \
-MD \
-MP \
-MF divtf3.dep \
-c ../../../../../src/gcc-9.3.0/libgcc/soft-fp/divtf3.c \
../../../../../src/gcc-9.3.0/libgcc/config/i386/cpuinfo.c: In function
‘get_intel_cpu’:
../../../../../src/gcc-9.3.0/libgcc/config/i386/cpuinfo.c:222:20: error:
‘bit_AVX512VNNI’ undeclared (first use in this function); did you mean
‘bit_AVX512VBMI’?
if (ecx & bit_AVX512VNNI)
^~~~~~~~~~~~~~
bit_AVX512VBMI
../../../../../src/gcc-9.3.0/libgcc/config/i386/cpuinfo.c:222:20: note:
each undeclared identifier is reported only once for each function it
appears in
../../../../../src/gcc-9.3.0/libgcc/config/i386/cpuinfo.c: In function
‘get_available_features’:
../../../../../src/gcc-9.3.0/libgcc/config/i386/cpuinfo.c:372:14: error:
‘bit_AVX512VBMI2’ undeclared (first use in this function); did you mean
‘bit_AVX512VBMI’?
if (ecx & bit_AVX512VBMI2)
^~~~~~~~~~~~~~~
bit_AVX512VBMI
../../../../../src/gcc-9.3.0/libgcc/config/i386/cpuinfo.c:374:14: error:
‘bit_GFNI’ undeclared (first use in this function); did you mean
‘bit_BMI’?
if (ecx & bit_GFNI)
^~~~~~~~
bit_BMI
../../../../../src/gcc-9.3.0/libgcc/config/i386/cpuinfo.c:376:14: error:
‘bit_VPCLMULQDQ’ undeclared (first use in this function); did you mean
‘bit_PCLMUL’?
if (ecx & bit_VPCLMULQDQ)
^~~~~~~~~~~~~~
bit_PCLMUL
../../../../../src/gcc-9.3.0/libgcc/config/i386/cpuinfo.c:378:14: error:
‘bit_AVX512VNNI’ undeclared (first use in this function); did you mean
‘bit_AVX512VBMI’?
if (ecx & bit_AVX512VNNI)
^~~~~~~~~~~~~~
bit_AVX512VBMI
../../../../../src/gcc-9.3.0/libgcc/config/i386/cpuinfo.c:380:14: error:
‘bit_AVX512BITALG’ undeclared (first use in this function); did you mean
‘bit_AVX5124FMAPS’?
if (ecx & bit_AVX512BITALG)
^~~~~~~~~~~~~~~~
bit_AVX5124FMAPS
../../../../../src/gcc-9.3.0/libgcc/static-object.mk:17: recipe for
target 'cpuinfo.o' failed
make[3]: *** [cpuinfo.o] Error 1
gcc was configured as:
--with-gmp=/home/nixman/m64src/libs \
--with-mpfr=/home/nixman/m64src/libs \
--with-mpc=/home/nixman/m64src/libs \
--with-isl=/home/nixman/m64src/libs \
--target=x86_64-w64-mingw32 \
--disable-multilib \
--prefix=/home/nixman/mingw-w64 \
--with-sysroot=/home/nixman/mingw-w64 \
--enable-languages=c,c++ \
--enable-libstdcxx-time=yes \
--enable-threads=posix \
--enable-libgomp \
--enable-libatomic \
--enable-lto \
--enable-graphite \
--enable-checking=release \
--enable-fully-dynamic-string \
--enable-version-specific-runtime-libs \
--enable-libstdcxx-filesystem-ts=yes \
--disable-libstdcxx-pch \
--disable-libstdcxx-debug \
--enable-bootstrap \
--disable-rpath \
--disable-win32-registry \
--disable-nls \
--disable-werror \
--disable-symvers \
--with-libiconv
any ideas?
thanks!