gmp-5.0.1 passes all tests on baseline Sol 8

Dennis Clarke dclarke at blastwave.org
Sun Feb 7 04:05:05 CET 2010


>
> Using GCC 4.3.4 and binutils and the Sun ( vendor ) provided linker I get
> perfect test results for both pentiumpro and i486 processor types both
> with and without mmx options.
>
> However, Studio 11 C Compiler fails to compile at this point :
>
>  /opt/studio/SOS11/SUNWspro/bin/cc -c -DHAVE_CONFIG_H -I. -I..
> -D__GMP_WITHIN_GMP -I.. -DOPERATION_divrem_2 -I/opt/csw/include -erroff
> -xstrconst -xildoff -xarch=386 -xnolibmil -Xa -Kpic -xregs=no%frameptr
> -xlibmieee -g -Qy -xdebugformat=dwarf -xs -D_TS_ERRNO tmp-divrem_2.s
> -KPIC -DPIC -o .libs/divrem_2.o
> Assembler:
>         "tmp-divrem_2.s", line 115 : Syntax error
>         Near line: "    or      %dl, %al"
>         "tmp-divrem_2.s", line 210 : Syntax error
>         Near line: "    or      %dl, %al"
> cc: assembler failed for tmp-divrem_2.s
>
> Also, GCC 4.3.4 ( from Blastwave ) builds everything on Sparc for both
> 32-bit Sparc v8 and v9 with perfect results.
>
> I have not tried Studio 11 or 12 yet.  I'll let you know what happens.
>

A follow up for those that are interested.

Fails rather neatly with Sun Studio 12 on an AMD Opteron based ( x86_64 )
Solaris 10 ( update 8, latest release ) thus :

$ cc -V
cc: Sun C 5.9 SunOS_i386 Patch 124868-11 2009/11/21
usage: cc [ options] files.  Use 'cc -flags' for details
$
$ CC -V
CC: Sun C++ 5.9 SunOS_i386 Patch 124864-19 2009/12/01
$

libtool: compile:  ../mpn/m4-ccas --m4=m4
/opt/studio/SOS12/SUNWspro/bin/cc -xc99=all -c -DHAVE_CONFIG_H -I. -I..
-D__GMP_WITHIN_GMP -I.. -DOPERATION_rsblsh2_n -I/opt/csw/include -fast
-m64 -xarch=sse2 -erroff=%all -nofstore -Qy -Xa -xbuiltin=%none
-xmodel=medium -xnolibmil -xnolibmopt -Kpic -xildoff -xregs=no%frameptr
-xs -xstrconst -D_TS_ERRNO rsblsh2_n.asm  -KPIC -DPIC -o .libs/rsblsh2_n.o
m4  -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_rsblsh2_n -D_TS_ERRNO
-DPIC rsblsh2_n.asm >tmp-rsblsh2_n.s
 /opt/studio/SOS12/SUNWspro/bin/cc -xc99=all -c -DHAVE_CONFIG_H -I. -I..
-D__GMP_WITHIN_GMP -I.. -DOPERATION_rsblsh2_n -I/opt/csw/include -fast
-m64 -xarch=sse2 -erroff=%all -nofstore -Qy -Xa -xbuiltin=%none
-xmodel=medium -xnolibmil -xnolibmopt -Kpic -xildoff -xregs=no%frameptr
-xs -xstrconst -D_TS_ERRNO tmp-rsblsh2_n.s -KPIC -DPIC -o
.libs/rsblsh2_n.o
libtool: compile:  ../mpn/m4-ccas --m4=m4
/opt/studio/SOS12/SUNWspro/bin/cc -xc99=all -c -DHAVE_CONFIG_H -I. -I..
-D__GMP_WITHIN_GMP -I.. -DOPERATION_rsblsh2_n -I/opt/csw/include -fast
-m64 -xarch=sse2 -erroff=%all -nofstore -Qy -Xa -xbuiltin=%none
-xmodel=medium -xnolibmil -xnolibmopt -Kpic -xildoff -xregs=no%frameptr
-xs -xstrconst -D_TS_ERRNO rsblsh2_n.asm -o rsblsh2_n.o >/dev/null 2>&1
/bin/bash ../libtool --mode=compile --tag=CC ../mpn/m4-ccas --m4="m4"
/opt/studio/SOS12/SUNWspro/bin/cc -xc99=all -c -DHAVE_CONFIG_H -I. -I..
-D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo addlsh_n | sed 's/_$//'` 
-I/opt/csw/include  -fast -m64 -xarch=sse2 -erroff=%all -nofstore -Qy -Xa
-xbuiltin=%none -xmodel=medium -xnolibmil -xnolibmopt -Kpic -xildoff
-xregs=no%frameptr -xs -xstrconst -D_TS_ERRNO  `test -f 'addlsh_n.asm' ||
echo './'`addlsh_n.asm
libtool: compile:  ../mpn/m4-ccas --m4=m4
/opt/studio/SOS12/SUNWspro/bin/cc -xc99=all -c -DHAVE_CONFIG_H -I. -I..
-D__GMP_WITHIN_GMP -I.. -DOPERATION_addlsh_n -I/opt/csw/include -fast -m64
-xarch=sse2 -erroff=%all -nofstore -Qy -Xa -xbuiltin=%none -xmodel=medium
-xnolibmil -xnolibmopt -Kpic -xildoff -xregs=no%frameptr -xs -xstrconst
-D_TS_ERRNO addlsh_n.asm  -KPIC -DPIC -o .libs/addlsh_n.o
m4  -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_addlsh_n -D_TS_ERRNO
-DPIC addlsh_n.asm >tmp-addlsh_n.s

m4:addlsh_n.asm:44 bad macro name
define(cnt      %r8)
gmake[2]: *** [addlsh_n.lo] Error 1
gmake[2]: Leaving directory
`/export/medusa/dclarke/build/libgmp/i386/Studio12_amd64/gmp-5.0.1/mpn'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/export/medusa/dclarke/build/libgmp/i386/Studio12_amd64/gmp-5.0.1'
gmake: *** [all] Error 2
$

C'est la vie pour Studio 12 ici.


-- 
Dennis Clarke
dclarke at opensolaris.ca  <- Email related to the open source Solaris
dclarke at blastwave.org   <- Email related to open source for Solaris




More information about the gmp-discuss mailing list