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
-- 
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