> -----Original Message-----
> From: Ruben Van Boxem <vanboxem.ru...@gmail.com>
> Sent: Wednesday, November 20, 2019 1:15 PM
> To: mingw-w64-public@lists.sourceforge.net
> Subject: Re: [Mingw-w64-public] GMP compile error with GCC 9.2.0
> 
> This GMP's configure script that is misdetecting your bitness.
> 
> Clear your build directory, and be sure to run configure with "--host=i686-
> w64-mingw32", perhaps even a "--build=i686-w64-mingw32" if that's not
> enough.
> 
> That should make sure everything is lined up properly.
> 

Yeah, I specified a build triplet the second or third time around.  The thing is
I think the GMP code is wrong, that should be 'Error, error ....", it should be

#error error, 

or some such.  I can always report that upstream

Still have problems with GMP_NUM_BITS:

In file included from trialdiv.c:77:
../trialdivtab.h:2:2: error: #error This table is for GMP_LIMB_BITS = 64
    2 | #error This table is for GMP_LIMB_BITS = 64
      |  ^~~~~


> Op wo 20 nov. 2019 18:35 schreef Kacvinsky, Tom
> <tom.kacvin...@vector.com>:
> 
> > 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
> >
> 
> _______________________________________________
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to