compile GMP4.2.2 with enable-cxx on cygwin

#Cyrille37# cyrille37 at gmail.com
Wed Mar 26 18:58:31 CET 2008


Hello,
I could not build GMP 4.2.2 with Cygwin 1.5.25 when enabling enable-cxx. 
The build end in error.

Here is the working command line, without c++ support :
make clean && ./configure --disable-static --enable-shared 
--host=i686-pc-mingw32 && make

Here is the not working command line, with c++ support :
make clean && ./configure --enable-cxx --disable-static --enable-shared 
--host=i686-pc-mingw32 && make

Thanks for your help,
Cyrille.

Here are lines of the error :

Making all in mpn
make[2]: Entering directory 
`/cygdrive/d/projet/CryptoLib/CryptoLibCSharp/GMP/gmp-4.2.2/mpn'
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. 
-D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo fib_table |
 sed 's/_$//'`    -m32 -O2 -fomit-frame-pointer -mtune=pentiumpro 
-march=pentiumpro -mno-cygwin -c -o fib_table.lo fib_t
able.c
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. 
-DOPERATION_fib_table -m32 -O2 -fomit-frame-pointer -mtune=pen
tiumpro -march=pentiumpro -mno-cygwin -c fib_table.c  -DDLL_EXPORT -DPIC 
-o .libs/fib_table.o
In file included from ../gmp-impl.h:102,
                 from fib_table.c:4:
../fib_table.h:4: error: parse error before "data"
In file included from ../gmp-impl.h:110,
                 from fib_table.c:4:
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/inttypes.h:269: 
error: parse error before '*' tok
en
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/inttypes.h:271: 
error: parse error before '*' tok
en
In file included from fib_table.c:4:
../gmp-impl.h:2547:64: operator '&&' has no right operand
../gmp-impl.h:2735:64: operator '&&' has no right operand
../gmp-impl.h:2751:44: operator '&&' has no right operand
../gmp-impl.h:2762:44: operator '&&' has no right operand
../gmp-impl.h:2775:44: operator '&&' has no right operand
../gmp-impl.h:2790:44: operator '&&' has no right operand
fib_table.c:7: error: parse error before "data"
make[2]: *** [fib_table.lo] Error 1
make[2]: Leaving directory 
`/cygdrive/d/projet/CryptoLib/CryptoLibCSharp/GMP/gmp-4.2.2/mpn'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/cygdrive/d/projet/CryptoLib/CryptoLibCSharp/GMP/gmp-4.2.2'
make: *** [all] Error 2



More information about the gmp-discuss mailing list