C++ t-expr.cc won't compile with Sun CC
Pete Cascio
petecascio at adelphia.net
Sun Aug 14 05:48:29 CEST 2005
Thanks for your help with previous issue. I disabled the t-expr in the tests/cxx/Makefile and gmake check was happy.
It turns out that most of the libraries weren't being created. I wanted the shared objects but didn't care for the static libraries. So, I had added the option:
--disable-static
It appears to have disabled more than that in libtool. ;-)
In gmp-4.1.4/.libs, I had:
libgmp.la -> ../libgmp.la
libgmp.lai
libgmp.so -> libgmp.so.3.3.3
libgmp.so.3 -> libgmp.so.3.3.3
libgmp.so.3.3.3
libgmpxx.la -> ../libgmpxx.la
libgmpxx.lai
libgmpxx.so -> libgmpxx.so.3.0.5
libgmpxx.so.3 -> libgmpxx.so.3.0.5
I've since reconfigured w/o that bad option and all is good. Thanks for a very nice package. Unfortunately, according to your bench chart, my system appears to have a terrible overall bench score :-(
GMPbench result: 224.12
$ uname -a
SunOS 5.8 Generic_117350-20 sun4u sparc SUNW,Ultra-4
(32-bit)
System Configuration: Sun Microsystems sun4u Sun Enterprise 450 (4 X UltraSPARC-II 400MHz)
System clock frequency: 100 MHz
Memory size: 4096 Megabytes
$ CC -V
CC.bin: Forte Developer 7 C++ 5.4 Patch 111715-08 2003/06/08
$ ./configure --enable-cxx --prefix=$HOME ABI=32 CFLAGS="-xtarget=native -xarch=v8plus -xO4"
$ ./runbench
***** GMPbench version 0.1 *****
Using CFLAGS = "-xO4 -xlibmil -I../include" from your environment
Using CC = "/apps/workshop_7.0/SUNWspro/bin/cc" from your environment
Using LIBS = "../lib/libgmpxx.a ../lib/libgmp.a -lm" from your environment
Using compilation command: /apps/workshop_7.0/SUNWspro/bin/cc -xO4 -xlibmil -I../include foo.c -o foo ../lib/libgmpxx.a ../lib/libgmp.a -lm
Using gmp version: 4.1.4
Compiling benchmarks
Running benchmarks
Category base
Program multiply
multiply 128 128
GMPbench.base.multiply.128,128 result: 1168590
multiply 512 512
GMPbench.base.multiply.512,512 result: 149831
multiply 8192 8192
GMPbench.base.multiply.8192,8192 result: 1681
multiply 131072 131072
GMPbench.base.multiply.131072,131072 result: 23.7
multiply 2097152 2097152
GMPbench.base.multiply.2097152,2097152 result: 0.906
GMPbench.base.multiply result: 1445.9
Program divide
divide 8192 32
GMPbench.base.divide.8192,32 result: 9102
divide 8192 64
GMPbench.base.divide.8192,64 result: 6471
divide 8192 128
GMPbench.base.divide.8192,128 result: 4970
divide 8192 4096
GMPbench.base.divide.8192,4096 result: 2551
divide 8192 8064
GMPbench.base.divide.8192,8064 result: 40434
divide 131072 8192
GMPbench.base.divide.131072,8192 result: 53.6
divide 131072 65536
GMPbench.base.divide.131072,65536 result: 31.2
divide 8388608 4194304
GMPbench.base.divide.8388608,4194304 result: 0.0837
GMPbench.base.divide result: 504.95
GMPbench.base result: 854.46
Category app
Program rsa
rsa 512
GMPbench.app.rsa.512 result: 313
rsa 1024
GMPbench.app.rsa.1024 result: 62.4
rsa 2048
GMPbench.app.rsa.2048 result: 10.4
GMPbench.app.rsa result: 58.783
GMPbench.app result: 58.783
GMPbench result: 224.12
--
Pete Cascio
More information about the gmp-bugs
mailing list