GMP 4.3.0 build fails on AIX

Frink, Alexander Alexander.Frink at debeka.de
Mon Apr 20 19:27:14 CEST 2009


Hi!

GMP 4.3.0 fails to build on AIX 5.3 with xlc version 6 (vanilla  
./configure). GMP 4.2.4 or older on the same system is fine.

[...]
  xlc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..  
-DOPERATION_divrem -O2 -q64 -qtune=pwr3 -qmaxmem=20000 -c divrem.c   
-DPIC -o .libs/divrem.o
         /bin/sh ../libtool --mode=compile --tag=CC ../mpn/m4-ccas  
--m4="m4" xlc -c -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..   
-DOPERATION_`echo divrem_1 | sed 's/_$//'`     -O2 -q64 -qtune=pwr3  
-qmaxmem=20000  `test -f 'divrem_1.asm' || echo './'`divrem_1.asm
  ../mpn/m4-ccas --m4=m4 xlc -c -DHAVE_CONFIG_H -I. -I. -I..  
-D__GMP_WITHIN_GMP -I.. -DOPERATION_divrem_1 -O2 -q64 -qtune=pwr3  
-qmaxmem=20000 divrem_1.asm  -DPIC -o .libs/divrem_1.o
m4  -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_divrem_1 -DPIC  
divrem_1.asm >tmp-divrem_1.s
  xlc -c -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..  
-DOPERATION_divrem_1 -O2 -q64 -qtune=pwr3 -qmaxmem=20000  
tmp-divrem_1.s -DPIC -o .libs/divrem_1.o
Assembler:
tmp-divrem_1.s: line 128: undefined symbol ".__gmpn_invert_limb"
tmp-divrem_1.s: line 128: illegal expression type for branch address
tmp-divrem_1.s: line 247: undefined symbol ".__gmpn_invert_limb"
tmp-divrem_1.s: line 247: illegal expression type for branch address
make: 1254-004 The error code from the last command is 1.



ABI=32 also fails with the following, but different error:

  xlc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..  
-DOPERATION_divexact -O2 -qmaxmem=20000 -qarch=ppc -c divexact.c   
-DPIC -o .libs/divexact.o
         /bin/sh ../libtool --mode=compile --tag=CC ../mpn/m4-ccas  
--m4="m4" xlc -c -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..   
-DOPERATION_`echo bdiv_dbm1c | sed 's/_$//'`     -O2 -qmaxmem=20000  
-qarch=ppc  `test -f 'bdiv_dbm1c.asm' || echo './'`bdiv_dbm1c.asm
  ../mpn/m4-ccas --m4=m4 xlc -c -DHAVE_CONFIG_H -I. -I. -I..  
-D__GMP_WITHIN_GMP -I.. -DOPERATION_bdiv_dbm1c -O2 -qmaxmem=20000  
-qarch=ppc bdiv_dbm1c.asm  -DPIC -o .libs/bdiv_dbm1c.o
m4  -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_bdiv_dbm1c -DPIC  
bdiv_dbm1c.asm >tmp-bdiv_dbm1c.s
  xlc -c -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..  
-DOPERATION_bdiv_dbm1c -O2 -qmaxmem=20000 -qarch=ppc tmp-bdiv_dbm1c.s  
-DPIC -o .libs/bdiv_dbm1c.o
         /bin/sh ../libtool --mode=compile xlc -DHAVE_CONFIG_H  -I.  
-I. -I.. -D__GMP_WITHIN_GMP -I..  -DOPERATION_`echo redc_1 | sed  
's/_$//'`     -O2 -qmaxmem=20000 -qarch=ppc -c -o redc_1.lo redc_1.c
  xlc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..  
-DOPERATION_redc_1 -O2 -qmaxmem=20000 -qarch=ppc -c redc_1.c  -DPIC -o  
.libs/redc_1.o
         /bin/sh ../libtool --mode=compile xlc -DHAVE_CONFIG_H  -I.  
-I. -I.. -D__GMP_WITHIN_GMP -I..  -DOPERATION_`echo redc_2 | sed  
's/_$//'`     -O2 -qmaxmem=20000 -qarch=ppc -c -o redc_2.lo redc_2.c
  xlc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..  
-DOPERATION_redc_2 -O2 -qmaxmem=20000 -qarch=ppc -c redc_2.c  -DPIC -o  
.libs/redc_2.o
         /bin/sh ../libtool --mode=compile xlc -DHAVE_CONFIG_H  -I.  
-I. -I.. -D__GMP_WITHIN_GMP -I..  -DOPERATION_`echo powm | sed  
's/_$//'`     -O2 -qmaxmem=20000 -qarch=ppc -c -o powm.lo powm.c
  xlc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..  
-DOPERATION_powm -O2 -qmaxmem=20000 -qarch=ppc -c powm.c  -DPIC -o  
.libs/powm.o
"/usr/include/sys/limits.h", line 64.9: 1506-213 (S) Macro name  
INT_MAX cannot be redefined.
"/usr/include/sys/limits.h", line 64.9: 1506-358 (I) "INT_MAX" is  
defined on line 525 of ../gmp-impl.h.
"/usr/include/sys/limits.h", line 65.9: 1506-213 (S) Macro name  
INT_MIN cannot be redefined.
"/usr/include/sys/limits.h", line 65.9: 1506-358 (I) "INT_MIN" is  
defined on line 522 of ../gmp-impl.h.
"/usr/include/sys/limits.h", line 71.9: 1506-213 (S) Macro name  
LONG_MAX cannot be redefined.
"/usr/include/sys/limits.h", line 71.9: 1506-358 (I) "LONG_MAX" is  
defined on line 518 of ../gmp-impl.h.
"/usr/include/sys/limits.h", line 72.9: 1506-213 (S) Macro name  
LONG_MIN cannot be redefined.
"/usr/include/sys/limits.h", line 72.9: 1506-358 (I) "LONG_MIN" is  
defined on line 515 of ../gmp-impl.h.
"/usr/include/sys/limits.h", line 73.9: 1506-213 (S) Macro name  
ULONG_MAX cannot be redefined.
"/usr/include/sys/limits.h", line 73.9: 1506-358 (I) "ULONG_MAX" is  
defined on line 496 of ../gmp-impl.h.
"/usr/include/sys/limits.h", line 90.9: 1506-213 (S) Macro name  
SHRT_MAX cannot be redefined.
"/usr/include/sys/limits.h", line 90.9: 1506-358 (I) "SHRT_MAX" is  
defined on line 532 of ../gmp-impl.h.
"/usr/include/sys/limits.h", line 91.9: 1506-213 (S) Macro name  
SHRT_MIN cannot be redefined.
"/usr/include/sys/limits.h", line 91.9: 1506-358 (I) "SHRT_MIN" is  
defined on line 529 of ../gmp-impl.h.
"/usr/include/sys/limits.h", line 93.9: 1506-213 (S) Macro name  
UINT_MAX cannot be redefined.
"/usr/include/sys/limits.h", line 93.9: 1506-358 (I) "UINT_MAX" is  
defined on line 499 of ../gmp-impl.h.
"/usr/include/sys/limits.h", line 94.9: 1506-213 (S) Macro name  
USHRT_MAX cannot be redefined.
"/usr/include/sys/limits.h", line 94.9: 1506-358 (I) "USHRT_MAX" is  
defined on line 502 of ../gmp-impl.h.
make: 1254-004 The error code from the last command is 1.


Regards,

Alex
-- 
Alexander Frink
c/o
Debeka Bausparkasse AG
Abteilung BS/IE
Ferdinand-Sauerbruch-Str. 18
56054 Koblenz

Telefon: (0261) 498-2983

E-Mail: Alexander.Frink at debeka.de
Internet: www.debeka-bauwelt.de

Debeka Bausparkasse Aktiengesellschaft, Amtsgericht Koblenz: HRB 1114
Vorstand: Jörg Phlippen, Dirk Botzem
Aufsichtsratsvorsitzender: Peter Greisler
Sitz Koblenz am Rhein




More information about the gmp-bugs mailing list