Problem with assembly sources on Solaris 10 SPARC with Oracle Studio 12.4
Dennis Clarke
dclarke at blastwave.org
Thu Jun 23 22:02:08 UTC 2016
Ran into this just yesterday with a build of libgmp 6.1.0 wherein the
configure line was simply :
./configure ABI=64 --enable-cxx --prefix=/usr/local \
> --libdir=/usr/local/lib
When I try to compile I very soon run into :
/opt/solarisstudio12.4/bin/cc -D_STDC_C99= -c -DHAVE_CONFIG_H -I. -I..
-D__GMP_WITHIN_GMP -I.. -DOPERATION_gcd_1 -I/usr/local/include
-I/usr/local/ssl/include -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS
-D_LARGEFILE64_SOURCE -errfmt=error -erroff=%none -errshort=full
-xstrconst -xildoff -m64 -xmemalign=8s -xnolibmil -Xc -xcode=pic32
-xregs=no%appl -xlibmieee -mc -g -xs -ftrap=%none -Qy -xbuiltin=%none
-xdebugformat=dwarf -xunroll=1 -xtarget=ultraT2
-xcache=8/16/4:4096/64/16 tmp-gcd_1.s -KPIC -DPIC -o .libs/gcd_1.o
libtool: compile: ../mpn/m4-ccas --m4=/usr/local/bin/m4
/opt/solarisstudio12.4/bin/cc -D_STDC_C99= -c -DHAVE_CONFIG_H -I. -I..
-D__GMP_WITHIN_GMP -I.. -DOPERATION_gcd_1 -I/usr/local/include
-I/usr/local/ssl/include -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS
-D_LARGEFILE64_SOURCE -errfmt=error -erroff=%none -errshort=full
-xstrconst -xildoff -m64 -xmemalign=8s -xnolibmil -Xc -xcode=pic32
-xregs=no%appl -xlibmieee -mc -g -xs -ftrap=%none -Qy -xbuiltin=%none
-xdebugformat=dwarf -xunroll=1 -xtarget=ultraT2
-xcache=8/16/4:4096/64/16 gcd_1.asm -o gcd_1.o >/dev/null 2>&1
gmake[2]: *** [gcd_1.lo] Error 1
gmake[2]: Leaving directory `/usr/local/build/gmp-6.1.0/mpn'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/local/build/gmp-6.1.0'
gmake: *** [all] Error 2
When I search for the file gcd_1.asm I see multiple for various
architectures and I make the guess that mpn/tmp-gcd_1.s is based on the
source ./sparc64/gcd_1.asm for this system.
Also I see these warnings over and over :
"../gmp-impl.h", line 3699: warning: attribute "mode" is unknown, ignored
"../gmp-impl.h", line 3700: warning: attribute "mode" is unknown, ignored
"../gmp-impl.h", line 3701: warning: attribute "mode" is unknown, ignored
"../gmp-impl.h", line 3702: warning: attribute "mode" is unknown, ignored
"../gmp-impl.h", line 3703: warning: attribute "mode" is unknown, ignored
So the simple work around is to build with configure option
--disable-assembly and then everything works fine.
If more info is required ( I am guessing ) then let me know.
Dennis
More information about the gmp-bugs
mailing list