#1609: create an octave-3.0.0 optional spkg
---------------------------+------------------------------------------------
   Reporter:  was          |          Owner:  was          
       Type:  enhancement  |         Status:  new          
   Priority:  major        |      Milestone:  sage-wishlist
  Component:  packages     |       Keywords:  octave       
Work_issues:               |       Upstream:  N/A          
   Reviewer:               |         Author:               
     Merged:               |   Dependencies:               
---------------------------+------------------------------------------------

Comment(by drkirkby):

 I thought I'd have a quick go at trying to make an Octave package, but I
 hit a problem pretty early on:

 {{{
 checking for sin in -lm... yes
 checking whether we are using the GNU Fortran 77 compiler... yes
 checking whether /export/home/drkirkby/sage-4.7.rc0/local/bin/sage_fortran
 accepts -g... yes
 checking how to get verbose linking output from
 /export/home/drkirkby/sage-4.7.rc0/local/bin/sage_fortran... -v
 checking for Fortran 77 libraries of
 /export/home/drkirkby/sage-4.7.rc0/local/bin/sage_fortran...
 -L/usr/ccs/lib -L/usr/lib -L/export/home/drkirkby/sage-4.7.rc0/local/lib
 -L/usr/local/gcc-4.6.0/lib/gcc/i386-pc-solaris2.11/4.6.0
 -L/usr/local/gcc-4.6.0/lib/gcc/i386-pc-solaris2.11/4.6.0/../../..
 -lgfortran -lm -lquadmath
 checking for dummy main to link with Fortran 77 libraries... unknown
 configure: error: in
 `/export/home/drkirkby/sage-4.7.rc0/spkg/build/octave-3.4.0/src':
 configure: error: linking to Fortran libraries from C fails
 See `config.log' for more details
 Error configuring GNU Octave

 real    0m23.634s
 user    0m9.304s
 sys     0m8.385s
 sage: An error occurred while installing octave-3.4.0
 }}}

 I don't know what BLAS library I'm supposed to configure this with. I have
 tried:

 {{{
 ./configure --prefix="$SAGE_LOCAL" --with-glpk-
 includedir="$SAGE_LOCAL/include" --with-glpk-libdir="$SAGE_LOCAL/lib"
 --with-blas="SAGE_LOCAL/lib/libcblas.so" F77="$SAGE_FORTRAN"
 }}}

 but are unsure if the 'libcblas.so' is the right library. I tried another
 one (libblas.a), but had no luck with that either. If I omit the
 {{{--with-blas=}}} option, then it fails with:


 {{{
 configure: error: A BLAS library was detected but found incompatible with
 your Fortran 77 compiler settings.
 }}}

 I don't know how to get around this BLAS issue.

 I think it will need a bit of work to create this package. To get the best
 from Octave, you need a lot of libraries Sage does not include. It might
 be worth putting those libraries in an Octave package and building the
 libraries first.

 Dave

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