gmp-5.0.0 fails to build when configure option --enable-fat is being used

Andris Pavenis andris.pavenis at
Sat Jan 9 12:23:35 CET 2010

Noticed that gmp-5.0.0 build fails if configure option --enable-fat has been specified.

It failed in the same way for the following targets in the same way I tested:

- core2-pc-linux-gnu (Fedora 12, x86_64) : the only specified configuration option: --enable-fat

- core2-pc-linux-gnu (CentOS 5.4 i386 in chroot under Fedora 12, x86_64): the only specified 
configuration option: --enable-fat

- i586-pc-msdosdjgpp (DJGPP v204pre) : some more configuration options used. For it I initially 
noticed the problem. Extra config. options perhaps does not matter as one can more easily reproduce
problem in Linux.

gmp-5.0.0 builds OK for me under Fedora 12 x86_64 if no configuration options are specified.


End of build output (Fedora 12, x86_64) is given below.

/bin/sh ../libtool --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../mpn -I.. 
-D__GMP_WITHIN_GMP -I../.. -DOPERATION_`echo redc_n | sed 's/_$//'`    -m32 -O2 -pedantic 
-fomit-frame-pointer -c -o redc_n.lo redc_n.c
  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../mpn -I.. -D__GMP_WITHIN_GMP -I../.. -DOPERATION_redc_n 
-m32 -O2 -pedantic -fomit-frame-pointer -c redc_n.c  -fPIC -DPIC -o .libs/redc_n.o
  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../mpn -I.. -D__GMP_WITHIN_GMP -I../.. -DOPERATION_redc_n 
-m32 -O2 -pedantic -fomit-frame-pointer -c redc_n.c -o redc_n.o >/dev/null 2>&1
/bin/sh ../libtool --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../mpn -I.. 
-D__GMP_WITHIN_GMP -I../.. -DOPERATION_`echo powm | sed 's/_$//'`    -m32 -O2 -pedantic 
-fomit-frame-pointer -c -o powm.lo powm.c
  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../mpn -I.. -D__GMP_WITHIN_GMP -I../.. -DOPERATION_powm 
-m32 -O2 -pedantic -fomit-frame-pointer -c powm.c  -fPIC -DPIC -o .libs/powm.o
powm.c:368:34: error: missing binary operator before token "("
make[2]: *** [powm.lo] Virhe 1
make[2]: Poistutaan hakemistosta "/home/andris/Test/gmp/pi/gmp-5.0.0/build-fat/mpn"
make[1]: *** [all-recursive] Virhe 1
make[1]: Poistutaan hakemistosta "/home/andris/Test/gmp/pi/gmp-5.0.0/build-fat"
make: *** [all] Virhe 2

More information about the gmp-bugs mailing list