Dr. David Kirkby wrote:
Bill Hart wrote:
There are two problems I see.

1) The invalid option -64 is passed to the compiler (I think this is
being ignored anyway).

2) It links against libgmpxx, which it fails to find. It is not clear
to me why. It should be in sage/local/lib along with libgmp.

Bill.

I believe the -64 is ignored too. The library does exist

drkir...@swan:[~] $ file  gcc64/sage-4.3.1.alpha2/local/lib/libgmpxx.so.3
gcc64/sage-4.3.1.alpha2/local/lib/libgmpxx.so.3: ELF 64-bit MSB dynamic lib SPARCV9 Version 1, dynamically linked, not stripped, no debugging information available
drkir...@swan:[~] $

Conventionally on Solaris, 32-bit libraries go in places like /usr/lib /usr/local/lib, and 64-bit libraries go in /usr/lib/sparcv4 (SPARC) or /usr/lib/amd64 (x86). In both cases /usr/lib/64 is a symbolic link to the 'amd64' or 'sparcv9' as appropriate. Sage is not following that convention, so I did wonder if that was the problem.

So I created the directory sage-4.3.1.alpha2/local/lib/sparcv9 and copied the

drkir...@swan:[~/gcc64] $ ls -l sage-4.3.1.alpha2/local/lib/sparcv9
total 18184
-rwxr-xr-x   1 drkirkby other        818 Jan 14 17:09 libgmp.la
-rwxr-xr-x   1 drkirkby other     727880 Jan 14 17:09 libgmp.so
-rwxr-xr-x   1 drkirkby other     727880 Jan 14 17:09 libgmp.so.3
-rwxr-xr-x   1 drkirkby other     727880 Jan 14 17:09 libgmp.so.3.4.6
-rwxr-xr-x   1 drkirkby other        954 Jan 14 17:09 libgmpxx.la
-rwxr-xr-x   1 drkirkby other      37600 Jan 14 17:09 libgmpxx.so
-rwxr-xr-x   1 drkirkby other      37600 Jan 14 17:09 libgmpxx.so.3
-rwxr-xr-x   1 drkirkby other      37600 Jan 14 17:09 libgmpxx.so.3.1.6
-rwxr-xr-x   1 drkirkby other    3278536 Jan 14 17:09 libpari-gmp.so.2
-rwxr-xr-x   1 drkirkby other    3278536 Jan 14 17:09 libpari-gmp.so.2.3.3

and tried again. But it still can't find the library.

I suspect this might be related to the fact that somehow the compiler is looking in a different place for the libraries.

This fails in 32-bit mode if the Sun compiler is used. I've not got a build of that, so I can't see exactly why GMP was not found then.

dave


The problem seems to be that SAGE sets LD_LIBRARY_PATH to include $SAGE_LOCAL/lib, but Solaris will ignore that setting in 64-bit mode. Its LD_LIBRARY_PATH_64 which needs setting. If that is done, so Linbox gets a bit further.

export LD_LIBRARY_PATH_64=/usr/local/lib/sparcv9:/export/home/drkirkby/gcc64/sage-4.3.1.alpha2/local/lib/

checking size of long... 8
checking for long long... yes
checking size of long long... 8
checking for __int64... no
checking size of __int64... 0
checking whether byte ordering is bigendian... yes
Default path = /usr /usr/local
checking whether to compile the drivers... no
checking for GMP >= 3.1.1... found
checking whether GMP is 4.0 or greater... yes
checking whether GMP was compiled with --enable-cxx... yes

So Linbox is happy with GMP now.

checking for NTL >= 5.0... found
checking for GIVARO >= 3.2.10... found
checking whether to compile the sage interface... yes
checking for C interface to BLAS... not found
checking for others BLAS... not found


-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to