#9780: Check for static libraries libatlas.a, libcblas.a, libf77blas and
liblapack.a, so SAGE_ATLAS_LIB works
------------------------+---------------------------------------------------
   Reporter:  drkirkby  |       Owner:  drkirkby    
       Type:  defect    |      Status:  needs_review
   Priority:  major     |   Milestone:  sage-4.6    
  Component:  solaris   |    Keywords:              
     Author:            |    Upstream:  N/A         
   Reviewer:            |      Merged:              
Work_issues:            |  
------------------------+---------------------------------------------------
Changes (by drkirkby):

  * status:  new => needs_review


Old description:

> As noted at #9356, a change which was made to ensure {{{SAGE_ATLAS_LIB}}}
> worked on Solaris, is not a complete solution. On Solaris, no shared
> library {{{liblapack.so}}} is created, as for reasons unknown, the shared
> library causes problems on Solaris.
>
> As noted [http://groups.google.com/group/sage-
> devel/msg/6f064c4120fe2f65?hl=en here] by François Bissey, liblapack.so
> often fails to build. (I assume François means on Linux). He also notes
> that {{{libcblas.so}}} often fails to build, but that is not been my
> experience on either Linux or Solaris. On both systems {{{libcblas.so}}}
> builds ok. For this reason I have not changed the code associated with
> {{{libcblas}}} - only that of {{{liblapack}}}
>
> Changing from using the shared to static versions of {{{liblapack}}}
> requires 3 changes.
>
>  * Check for the static library rather than the shared one.
>  * Create the static link
>  * Update the messages to indicate that {{{liblapack.a}}} is needed and
> not {{{liblapack.so}}}
> Dave

New description:

 As noted at #9356, a change which was made to ensure {{{SAGE_ATLAS_LIB}}}
 worked on Solaris, is not a complete solution. On Solaris, no shared
 library {{{liblapack.so}}} is created, as for reasons unknown, the shared
 library causes problems on Solaris.

 As noted [http://groups.google.com/group/sage-
 devel/msg/6f064c4120fe2f65?hl=en here] by François Bissey, liblapack.so
 often fails to build. (I assume François means on Linux). He also notes
 that {{{libcblas.so}}}, though I think he means {{{libf77blas.so}}}.
 Basically building the shared libraries is problematic in ATLAS, with
 different issues affecting Solaris, Linux and FreeBSD. In contrast, the
 static libraries are relieably built.

 The changes to this code only affect the file {{{system_atlas.py}}} and
 make that test for the 4 static libraries and ignore the four shared
 libraries. Assuming the static libraries exist, links are made.

 It was also necessary to update the messages to indicate that static
 libraries are needed.

 It should be noted that:
  * On OS X, only two shared libraries are built
  * Mathematica 7 ships with only static libraries related to ATLAS and no
 shared libraries.

 It may be wisest to simply not build the shared libraries at all, but that
 can be left for another ticket.

 An updated package can be found at

 http://boxen.math.washington.edu/home/kirkby/patches/atlas-3.8.3.p15.spkg


 Dave

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9780#comment:6>
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