gmp-5.0.0 fails to build on Linux x86_64 when options --enable-static --enable-fat are being used

Andris Pavenis andris.pavenis at
Sat Jan 9 13:56:02 CET 2010

I'm getting the following GMP-5.0.0 build failure in Linux x86_64 (Fedora 12).

Configure command (building in subdirectory of GMP source directory):

../configure --enable-static --enable-fat

End of make output:

/bin/sh ../libtool --mode=compile --tag=CC ../../mpn/m4-ccas --m4="m4" gcc -std=gnu99 -c 
-DHAVE_CONFIG_H -I. -I../../mpn -I.. -D__GMP_WITHIN_GMP -I../.. -DOPERATION_`echo fat_entry | sed 
's/_$//'`    -O2 -pedantic -m64 -Wa,--noexecstack `test -f 'fat_entry.asm' || echo 
  ../../mpn/m4-ccas --m4=m4 gcc -std=gnu99 -c -DHAVE_CONFIG_H -I. -I../../mpn -I.. 
-D__GMP_WITHIN_GMP -I../.. -DOPERATION_fat_entry -O2 -pedantic -m64 -Wa,--noexecstack fat_entry.asm 
  -fPIC -DPIC -o .libs/fat_entry.o
m4  -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_fat_entry -DPIC fat_entry.asm >tmp-fat_entry.s
  gcc -std=gnu99 -c -DHAVE_CONFIG_H -I. -I../../mpn -I.. -D__GMP_WITHIN_GMP -I../.. 
-DOPERATION_fat_entry -O2 -pedantic -m64 -Wa,--noexecstack tmp-fat_entry.s -fPIC -DPIC -o 
tmp-fat_entry.s: Assembler messages:
tmp-fat_entry.s:530: Error: suffix or operands invalid for `pop'
tmp-fat_entry.s:534: Error: suffix or operands invalid for `push'
tmp-fat_entry.s:537: Error: suffix or operands invalid for `pop'
make[2]: *** [fat_entry.lo] Virhe 1
make[2]: Poistutaan hakemistosta "/home/andris/Test/gmp/pi/gmp-5.0.0/build/mpn"
make[1]: *** [all-recursive] Virhe 1
make[1]: Poistutaan hakemistosta "/home/andris/Test/gmp/pi/gmp-5.0.0/build"
make: *** [all] Virhe 2

Versions of some used tools:

[andris at ap build]$ rpm -q binutils
[andris at ap build]$ rpm -q gcc


More information about the gmp-bugs mailing list