I am using the latest MinGW-w64 i686 tool chain (which is based on GCC 9.2.0) to build a custom tool chain with UCRT support. But the compiler is throwing an error when building GMP:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_pre_divrem_1 -m32 -O2 -pedantic -fomit-frame-pointer -mtune=pentiumpro -march=pentiumpro -c pre_divrem_1.c -o pre\ _divrem_1.o In file included from ../gmp-impl.h:146, from pre_divrem_1.c:36: ../fib_table.h:4:1: warning: data definition has no type or storage class 4 | Error, error, this data is for 64 bits | ^~~~~ ../fib_table.h:4:1: warning: type defaults to 'int' in declaration of 'Error' [-Wimplicit-int] ../fib_table.h:4:8: warning: type defaults to 'int' in declaration of 'error' [-Wimplicit-int] 4 | Error, error, this data is for 64 bits | ^~~~~ ../fib_table.h:4:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'data' 4 | Error, error, this data is for 64 bits | ^~~~ This didn't happen when I built GCC 9.1 with GCC 9.1, or when compiling GCC 8.3.0 with GCC 8.3.0. I know what the error means, but I am wondering the best way of going about fixing it. Is there a patch that the MinGW-w64 developers have for this, or should I try to fix it upstream in GMP? Thanks, Tom _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public