#7026: linbox 1.1.6.p0 says GMP is not installed, even though MPIR is
------------------------+---------------------------------------------------
   Reporter:  drkirkby  |       Owner:  cpernet   
       Type:  defect    |      Status:  new       
   Priority:  major     |   Milestone:  sage-4.3.1
  Component:  linbox    |    Keywords:            
Work_issues:            |      Author:            
   Upstream:  N/A       |    Reviewer:            
     Merged:            |  
------------------------+---------------------------------------------------

Comment(by drkirkby):

 Having looked at the error message, it would appear the library can't be
 found. But it does exist as the place expected.

 {{{
 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:[~] $
 }}}

 Appending /export/home/drkirkby/gcc64/sage-4.3.1.alpha2/local/lib/ to
 LD_LIBRARY_PATH_64 gets past the issue with GMP, though it does not allow
 Linbox to build fully.

 {{{
 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 it is happy with gmp.

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

 So Linbox ultimately fails to build for another reason, but the GMP issue
 can be circumvented.

 I think with hindsight, it would have been better for 64-bit libraries in
 Sage on Solaris to have been put in $SAGE_LOCAL/lib/sparcv9 or
 $SAGE_LOCAL/lib/amd64 as appropriate.

 Probably adding a new variable inside sage-env called LD_LIBRARY_PATH_64
 and making that point to $SAGE_LOCAL/lib/ will do the trick. That will
 cause the linker to look there for 64-bit libraries.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7026#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB
-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.


Reply via email to