gmp since 5.1.0 fails to build on ARM (freebsd)

Łukasz Siemiradzki lukasz.siemiradzki at gmail.com
Fri Feb 15 20:21:42 CET 2013


Hello,
 GMP since version 5.1.0 doesn't build on arm (sheevaplug) on Freebsd.
To omit the issue one has to use "--enable-assembly=no" option.
This affects both 5.1.0 and 5.1.1. Is it something which may be fixed in gmp?
Regards!
ŁS

 cc -std=gnu99 -c -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -
DOPERATION_add_n -O -pipe tmp-add_n.s -fPIC -DPIC -o .libs/add_n.o
gnome-libtool: compile:  ../mpn/m4-ccas --m4=m4 cc -std=gnu99 -c -
DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_add_n -O -pipe 
add_n.asm -o add_n.o >/dev/null 2>&1
/bin/sh /usr/ports/math/gmp/work/gnome-libtool --tag=CC    --mode=compile cc -
std=gnu99 -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I..  -DOPERATION_`echo 
sub | sed 's/_$//'`  
   -O -pipe -c -o sub.lo sub.c
gnome-libtool: compile:  cc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -
D__GMP_WITHIN_GMP -I.. -DOPERATION_sub -O -pipe -c sub.c  -fPIC -DPIC -o 
.libs/sub.o
gnome-libtool: compile:  cc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -
D__GMP_WITHIN_GMP -I.. -DOPERATION_sub -O -pipe -c sub.c -o sub.o >/dev/null 
2>&1
/bin/sh /usr/ports/math/gmp/work/gnome-libtool --tag=CC    --mode=compile cc -
std=gnu99 -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I..  -DOPERATION_`echo 
sub_1 | sed 's/_$//'`
     -O -pipe -c -o sub_1.lo sub_1.c
gnome-libtool: compile:  cc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -
D__GMP_WITHIN_GMP -I.. -DOPERATION_sub_1 -O -pipe -c sub_1.c  -fPIC -DPIC -o 
.libs/sub_1.o
gnome-libtool: compile:  cc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -
D__GMP_WITHIN_GMP -I.. -DOPERATION_sub_1 -O -pipe -c sub_1.c -o sub_1.o 
>/dev/null 2>&1
/bin/sh /usr/ports/math/gmp/work/gnome-libtool --mode=compile --tag=CC 
../mpn/m4-ccas --m4="m4" cc -std=gnu99 -c -DHAVE_CONFIG_H -I. -I.. -
D__GMP_WITHIN_GMP -I..  -DOPERATION_`e
cho sub_n | sed 's/_$//'`     -O -pipe  `test -f 'sub_n.asm' || echo 
'./'`sub_n.asm
gnome-libtool: compile:  ../mpn/m4-ccas --m4=m4 cc -std=gnu99 -c -
DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_sub_n -O -pipe 
sub_n.asm  -fPIC -DPIC -o .libs/sub_
n.o
m4  -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_sub_n -DPIC sub_n.asm >tmp-
sub_n.s
 cc -std=gnu99 -c -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -
DOPERATION_sub_n -O -pipe tmp-sub_n.s -fPIC -DPIC -o .libs/sub_n.o
gnome-libtool: compile:  ../mpn/m4-ccas --m4=m4 cc -std=gnu99 -c -
DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_sub_n -O -pipe 
sub_n.asm -o sub_n.o >/dev/null 2>&1
/bin/sh /usr/ports/math/gmp/work/gnome-libtool --mode=compile --tag=CC 
../mpn/m4-ccas --m4="m4" cc -std=gnu99 -c -DHAVE_CONFIG_H -I. -I.. -
D__GMP_WITHIN_GMP -I..  -DOPERATION_`e
cho addcnd_n | sed 's/_$//'`     -O -pipe  `test -f 'addcnd_n.asm' || echo 
'./'`addcnd_n.asm
gnome-libtool: compile:  ../mpn/m4-ccas --m4=m4 cc -std=gnu99 -c -
DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_addcnd_n -O -pipe 
addcnd_n.asm  -fPIC -DPIC -o .lib
s/addcnd_n.o
m4  -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_addcnd_n -DPIC addcnd_n.asm 
>tmp-addcnd_n.s
 cc -std=gnu99 -c -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -
DOPERATION_addcnd_n -O -pipe tmp-addcnd_n.s -fPIC -DPIC -o .libs/addcnd_n.o
tmp-addcnd_n.s: Assembler messages:
tmp-addcnd_n.s:75: Error: bad instruction `push {r4-r11}'
tmp-addcnd_n.s:89: Error: bad instruction `ldm r2!,{r4,r5,r6}'
tmp-addcnd_n.s:90: Error: bad instruction `ldm r1!,{r8,r9,r10}'
tmp-addcnd_n.s:97: Error: bad instruction `stm r0!,{r8,r9,r10}'
tmp-addcnd_n.s:103: Error: bad instruction `ldm r2!,{r4,r5}'
tmp-addcnd_n.s:104: Error: bad instruction `ldm r1!,{r8,r9}'
tmp-addcnd_n.s:109: Error: bad instruction `stm r0!,{r8,r9}'
tmp-addcnd_n.s:124: Error: bad instruction `ldm r2!,{r4,r5,r6,r7}'
tmp-addcnd_n.s:125: Error: bad instruction `ldm r1!,{r8,r9,r10,r11}'
tmp-addcnd_n.s:135: Error: bad instruction `stm r0!,{r8,r9,r10,r11}'
tmp-addcnd_n.s:140: Error: bad instruction `pop {r4-r11}'
*** Error code 1
1 error
*** Error code 1
1 error
*** Error code 2
1 error
*** Error code 1

Stop in /usr/ports/math/gmp.
*** Error code 1


More information about the gmp-bugs mailing list