Problems building 4.2 on AIX 5.3
Torbjorn Granlund
tege at swox.com
Mon Apr 17 21:21:08 CEST 2006
Albert Chin <gmp-discuss at mlists.thewrittenword.com> writes:
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.
The simple fix is to remove the ASM_END() line from diveby3.asm.
--
Torbjörn
More information about the gmp-discuss
mailing list