Building gmp 5.0.1 reports syntax errors

eric at steveneaton.com eric at steveneaton.com
Mon Oct 25 03:50:32 CEST 2010


On windows 7, in cygwin, building with mingw 4.5.0. Configure was run as 
specified in the file.
I've already attempted building gmp 10 times before with other settings. 
It builds with gcc 3.4.4, but I need to build with a newer version of gcc.

   $ CC="mingw32-gcc" CXX="mingw32-g++" ../gmp-5.0.1/configure 
--prefix=/cygdrive/d/programming/ulibs --build=core2-pc-cygwin (CC and 
CXX force the use of mingw 4.5.0)

Everything looks good until it tries to make /mpn/, and then the 
following errors appear:

Making all in mpn
mingw32-make[2]: Entering directory `D:/programming/gmp-make/mpn'
C:/cygwin/bin/sh.exe ../libtool --tag=CC   --mode=compile mingw32-gcc 
-std=gnu99
  -DHAVE_CONFIG_H -I. -I../../gmp-5.0.1/mpn -I.. -D__GMP_WITHIN_GMP 
-I../../gmp-5
.0.1 -DOPERATION_`echo fib_table | sed 's/_$//'`    -m32 -O2 -pedantic 
-fomit-fr
ame-pointer -mtune=core2 -march=core2 -c -o fib_table.lo fib_table.c
libtool: compile:  mingw32-gcc -std=gnu99 -DHAVE_CONFIG_H -I. 
-I../../gmp-5.0.1/
mpn -I.. -D__GMP_WITHIN_GMP -I../../gmp-5.0.1 -DOPERATION_fib_table -m32 
-O2 -pe
dantic -fomit-frame-pointer -mtune=core2 -march=core2 -c fib_table.c -o 
fib_tabl
e.o
In file included from ../../gmp-5.0.1/gmp-impl.h:101:0,
                  from fib_table.c:4:
../gmp-mparam.h:1:1: error: expected identifier or '(' before '!' token
../gmp-mparam.h:1:1: error: stray '\377' in program
../gmp-mparam.h:1:1: error: stray '\376' in program
../gmp-mparam.h:1:14: warning: null character(s) ignored
../gmp-mparam.h:1:16: warning: null character(s) ignored
../gmp-mparam.h:1:18: warning: null character(s) ignored
../gmp-mparam.h:1:20: warning: null character(s) ignored
../gmp-mparam.h:1:22: warning: null character(s) ignored
../gmp-mparam.h:1:24: warning: null character(s) ignored
../gmp-mparam.h:1:26: warning: null character(s) ignored
../gmp-mparam.h:1:28: warning: null character(s) ignored
../gmp-mparam.h:1:30: warning: null character(s) ignored
../gmp-mparam.h:1:32: warning: null character(s) ignored
../gmp-mparam.h:1:34: warning: null character(s) ignored
../gmp-mparam.h:1:36: warning: null character(s) ignored
../gmp-mparam.h:1:38: warning: null character(s) ignored
../gmp-mparam.h:1:40: warning: null character(s) ignored
../gmp-mparam.h:1:42: warning: null character(s) ignored
../gmp-mparam.h:1:44: warning: null character(s) ignored
../gmp-mparam.h:1:46: warning: null character(s) ignored
../gmp-mparam.h:1:48: warning: null character(s) ignored
../gmp-mparam.h:1:50: warning: null character(s) ignored
../gmp-mparam.h:1:52: warning: null character(s) ignored
../gmp-mparam.h:1:54: warning: null character(s) ignored
../gmp-mparam.h:1:56: warning: null character(s) ignored
../gmp-mparam.h:1:58: warning: null character(s) ignored
../gmp-mparam.h:1:60: warning: null character(s) ignored
../gmp-mparam.h:1:62: warning: null character(s) ignored
../gmp-mparam.h:1:64: warning: null character(s) ignored
../gmp-mparam.h:1:66: warning: null character(s) ignored
../gmp-mparam.h:1:68: warning: null character(s) ignored
../gmp-mparam.h:1:70: warning: null character(s) ignored
../gmp-mparam.h:1:72: warning: null character(s) ignored
../gmp-mparam.h:1:74: warning: null character(s) ignored
../gmp-mparam.h:1:76: warning: null character(s) ignored
../gmp-mparam.h:1:78: warning: null character(s) ignored
../gmp-mparam.h:1:80: warning: null character(s) ignored
../gmp-mparam.h:1:82: warning: null character(s) ignored
../gmp-mparam.h:1:84: warning: null character(s) ignored
../gmp-mparam.h:1:86: warning: null character(s) ignored
../gmp-mparam.h:1:88: warning: null character(s) ignored
../gmp-mparam.h:1:90: warning: null character(s) ignored
../gmp-mparam.h:1:92: warning: null character(s) ignored
../gmp-mparam.h:1:94: warning: null character(s) ignored
In file included from ../../gmp-5.0.1/gmp-impl.h:110:0,
                  from fib_table.c:4:
d:\programming\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/inttypes.h
:272:58: error: expected ';', ',' or ')' before '*' token
d:\programming\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/inttypes.h
:274:59: error: expected ';', ',' or ')' before '*' token
mingw32-make[2]: *** [fib_table.lo] Error 1
mingw32-make[2]: Leaving directory `D:/programming/gmp-make/mpn'
mingw32-make[1]: *** [all-recursive] Error 1
mingw32-make[1]: Leaving directory `D:/programming/gmp-make'
mingw32-make: *** [all] Error 2
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: config.log
URL: <http://gmplib.org/list-archives/gmp-discuss/attachments/20101024/e5888c8a/attachment-0001.ksh>


More information about the gmp-discuss mailing list