Problems building 4.2 on AIX 5.3
Albert Chin
gmp-discuss at mlists.thewrittenword.com
Sun Apr 16 19:41:23 CEST 2006
I tried building GMP 4.2 on AIX 5.3 with the IBM C/C++ compiler:
$ gtar jxf gmp-4.2.tar.bz2
$ cd gmp-4.2
$ ./configure CC=xlc CXX=xlC LDFLAGS=-Wl,-brtl \
M4=/opt/TWWfsw/m4/bin/gm4 ABI=32 --enable-shared \
--enable-static --disable-dependency-tracking
$ gmake
...
/opt/TWWfsw/m4/bin/gm4 -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP
-DOPERATION_diveby3 -DPIC diveby3.asm >tmp-diveby3.s
xlc -c -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..
-DOPERATION_diveby3 -O2 -qmaxmem=20000 -qarch=ppc tmp-diveby3.s -DPIC
-o .libs/diveby3.o
Assembler:
tmp-diveby3.s: line 112: invalid opcode or pseudo-op
gmake[2]: *** [diveby3.lo] Error 1
gmake[2]: Leaving directory `/opt/build/china/gmp-4.2/mpn'
gmake[1]: *** [all-recursive] Error 1
$ tail -4 /opt/build/china/gmp-4.2/mpn/tmp-diveby3.s
Ladj: addi 7, 7, 1
b Lbko
TOC_ENTRY
It's complaining about "TOC_ENTRY".
$ tail -4 mpn/powerpc32/diveby3.asm
L(adj): addi r7, r7, 1
b L(bko)
EPILOGUE()
ASM_END()
$ tail -4 mpn/powerpc32/aix.m4
define(`ASM_END', TOC_ENTRY)
divert
The problem occurs on AIX 4.3.3, 5.1, and 5.2 as well.
--
albert chin (china at thewrittenword.com)
More information about the gmp-discuss
mailing list