[PATCH] Improve and consolidate sparc PIC assembler.
Mark Ashley
mark at ibiblio.org
Tue May 7 12:02:57 CEST 2013
Hey folks,
I'm trying to get gmp 5.1.1 compiled on a Solaris 10 SPARC zone, it's
giving compilation problems which seem related to this topic:
http://gmplib.org/list-archives/gmp-devel/2013-April/003288.html
# uname -a
SunOS host 5.10 Generic_148888-02 sun4v sparc SUNW,T5240
# showrev -p | grep 118683
Patch: 118683-04 Obsoletes: Requires: Incompatibles: Packages: SUNWsprot
Patch: 118683-07 Obsoletes: Requires: Incompatibles: Packages: SUNWsprot
Patch: 118683-08 Obsoletes: Requires: Incompatibles: Packages: SUNWsprot
Patch: 118683-10 Obsoletes: Requires: Incompatibles: Packages: SUNWsprot
# cc -V
cc: Sun C 5.12 SunOS_sparc 2011/11/16
# as -V
as: SunOS 5.10 118683-10 Patch 03/14/2013
# gmake --version
GNU Make 3.82
My compile steps:
cd /var/tmp
rm -rf gmp-5.1.1
xz -dc /usr/local/src/gnu/gmp-5.1.1.tar.xz | gtar -xvf -
cd gmp-5.1.1
/bin/perl -pe 's#xarch=v9#m64#' -i configure
setenv M4 /usr/local/bin/m4
./configure --prefix=/usr/local
gmake
The error is the fbe output at the end:
host:/var/tmp/gmp-5.1.1/mpn root# cc -xtarget=ultra -m64 -xcode=pic32
-D_STDC_C99= -c -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I..
-DOPERATION_gcd_1 -I/usr/local/include -xO3 -m64 -xchip=generic tmp-gcd_1.s
-KPIC -DPIC -o .libs/gcd_1.o
host:/var/tmp/gmp-5.1.1/mpn root# ../mpn/m4-ccas --m4=/usr/local/bin/m4 cc
-xtarget=ultra -m64 -xcode=pic32 -D_STDC_C99= -c -DHAVE_CONFIG_H -I. -I..
-D__GMP_WITHIN_GMP -I.. -DOPERATION_gcd_1 -I/usr/local/include -xO3 -m64
-xchip=generic gcd_1.asm -o gcd_1.o
/usr/local/bin/m4 -D_STDC_C99= -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP
-DOPERATION_gcd_1 gcd_1.asm >tmp-gcd_1.s
cc -xtarget=ultra -m64 -xcode=pic32 -D_STDC_C99= -c -DHAVE_CONFIG_H -I.
-I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_gcd_1 -I/usr/local/include -xO3
-m64 -xchip=generic tmp-gcd_1.s -o gcd_1.o
/opt/solarisstudio12.3/prod/bin/fbe: "tmp-gcd_1.s": , approx line 282:
internal error: pic_relocs(): hh reltype?
cc: fbe failed for tmp-gcd_1.s
host:/var/tmp/gmp-5.1.1/mpn root#
I just read through the thread with this topic but couldn't see anything
conclusive I should try, since it's already patched up to 118683-10. Any
assistance most welcome :) I'm hoping it's not related to me substituting
-m64 to shut up the compiler.
Thanks,
Mark.
More information about the gmp-bugs
mailing list