Dr. David Kirkby wrote:
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




Building of linbox on Open Solaris 06/2009 in VirtualBox ends with:
----------------------------------------------------------------------
Libraries have been installed in:
   /export/home/jaap/Downloads/sage-4.3.1.alpha2/local/lib

[...]

linbox-sage.C: At global scope:
linbox-sage.C:72: warning: ‘void linbox_set_modn_matrix(mod_int**, LinBox::DenseMatrix<LinBox::Modular<double> >&, size_t, size_t)’ declared ‘static’ but never defined
make[4]: *** [linbox-sage.lo] Error 1
make[4]: Leaving directory 
`/export/home/jaap/Downloads/sage-4.3.1.alpha2/spkg/build/linbox-1.1.6.p2/src/interfaces/sage'
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory 
`/export/home/jaap/Downloads/sage-4.3.1.alpha2/spkg/build/linbox-1.1.6.p2/src/interfaces'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory 
`/export/home/jaap/Downloads/sage-4.3.1.alpha2/spkg/build/linbox-1.1.6.p2/src'
Error installing linbox

real    0m52.563s
user    0m33.152s
sys     0m17.425s
sage: An error occurred while installing linbox-1.1.6.p2
Please email sage-devel http://groups.google.com/group/sage-devel
explaining the problem and send the relevant part of
of /export/home/jaap/Downloads/sage-4.3.1.alpha2/install.log.  Describe your 
computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/export/home/jaap/Downloads/sage-4.3.1.alpha2/spkg/build/linbox-1.1.6.p2 and 
type 'make check' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
(cd '/export/home/jaap/Downloads/sage-4.3.1.alpha2/spkg/build/linbox-1.1.6.p2' 
&& '/export/home/jaap/Downloads/sage-4.3.1.alpha2/sage' -sh)
When you are done debugging, you can type "exit" to leave the
subshell.
make[1]: *** [installed/linbox-1.1.6.p2] Error 1
make[1]: Leaving directory `/export/home/jaap/Downloads/sage-4.3.1.alpha2/spkg'

real    0m53.402s
user    0m33.611s
sys     0m17.806s
Error building Sage.
j...@opensolaris:~/Downloads/sage-4.3.1.alpha2$


With:

echo $LD_LIBRARY_64
/export/home/jaap/Downloads//sage-4.3.1.alpha2/local/lib:/usr/local/gcc-4.3.4-GNU-assembler-Sun-linker/lib/amd64/:/usr/lib/amd64/

Jaap




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