Problem building 4.2.1-rc on AIX 5.3

Albert Chin gmp-bugs at mlists.thewrittenword.com
Mon May 8 08:37:26 CEST 2006


I attempted to build gmp-4.2.1-rc.tar.bz2 on AIX 5.3 with the IBM C
compiler v7.0:
  $ cd /opt/build/chin
  $ gtar jxf gmp-4.2.1-rc.tar.bz2
  $ cd gmp-4.2.1-rc
  $ ./configure CC=xlc CFLAGS="-O2 -qro -qroconst -qmaxmem=-1 -qarch=ppc" \
  CXX=xlC CXXFLAGS="-O2 -qro -qroconst -qmaxmem=-1" -qarch=com" \
  LDFLAGS="-Wl,-brtl" ABI=32 M4=/opt/TWWfsw/m4/bin/gm4 --enable-shared \
  --enable-static --disable-dependency-tracking
  ...
  $ gmake
  ...
  /opt/TWWfsw/m4/bin/gm4  -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_mode1o -DPIC mode1o.asm >tmp-mode1o.s
   xlc -c -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_mode1o -O2 -qro -qroconst -qmaxmem=-1 -qarch=ppc tmp-mode1o.s -DPIC -o .libs/mode1o.o
  Assembler:
  tmp-mode1o.s: line 145: undefined symbol "__gmp_modlimb_invert_table"
  tmp-mode1o.s: line 145: illegal expression
  gmake[2]: *** [mode1o.lo] Error 1
  gmake[2]: Leaving directory `/opt/build/china/gmp-4.2.1-rc/mpn'

$ uname -a
AIX yawara 3 5 00CB661F4C00
$ oslevel -r
5300-03
$ lslpp -L vac.C
  Fileset                      Level  State  Type  Description (Uninstaller)
  ----------------------------------------------------------------------------
  vac.C                      7.0.0.6    A     F    IBM XL C Compiler
$ ./config.guess
powerpc64-ibm-aix5.3.0.0
$ ./configfsf.guess
powerpc-ibm-aix5.3.0.0

I've attached a copy of mpn/tmp-mode1o.s.

-- 
albert chin (china at thewrittenword.com)
-------------- next part --------------










































































	.toc

	.globl	__gmp_modlimb_invert_table

	
	.globl	__gmpn_modexact_1_odd
	.globl	.__gmpn_modexact_1_odd
	.csect	[DS], 2
__gmpn_modexact_1_odd:
	.long	.__gmpn_modexact_1_odd, TOC[tc0], 0
	.csect	[PR]
	.align	2
.__gmpn_modexact_1_odd:
	li	6, 0

	
	.globl	__gmpn_modexact_1c_odd
	.globl	.__gmpn_modexact_1c_odd
	.csect	[DS], 2
__gmpn_modexact_1c_odd:
	.long	.__gmpn_modexact_1c_odd, TOC[tc0], 0
	.csect	[PR]
	.align	2
.__gmpn_modexact_1c_odd:

	mtctr	4			


	
	lwz	7, tc__gmp_modlimb_invert_table(2)
	rlwinm	4, 5, 31,25,31	
	lbzx	4, 4,7		


	mullw	7, 4, 4		
	slwi	4, 4, 1		
	mullw	7, 5, 7		
	sub	4, 4, 7		
	mullw	7, 4, 4		
	slwi	4, 4, 1		
	mullw	7, 7, 5		
	lwz	0, 0(3)		
	sub	4, 4, 7		
	subfc	7, 6, 0		

	mullw	7, 7, 4		
	bdz	Lone

	lwzu	0, 4(3)		
	mulhwu	6, 7, 5		
	subfe	7, 6, 0		
	bdz	Ltwo

Ltop:
	mullw	7, 7, 4		
	lwzu	0, 4(3)		
	mulhwu	6, 7, 5		
	subfe	7, 6, 0		
	bdnz	Ltop

Ltwo:	mullw	7, 7, 4		
Lone:	subfe	3, 3, 3		
	mulhwu	6, 7, 5		
	subf	3, 3, 6		
	blr



	.toc
tc__gmp_modlimb_invert_table:
	.tc	__gmp_modlimb_invert_table[TC], __gmp_modlimb_invert_table[RW]


More information about the gmp-bugs mailing list