#17635: Update Givaro, FFLAS-FFPACK and LinBox
-------------------------------------+-------------------------------------
       Reporter:  jpflori            |        Owner:
           Type:  enhancement        |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-7.2
      Component:  packages:          |   Resolution:
  standard                           |    Merged in:
       Keywords:                     |    Reviewers:  François Bissey
        Authors:  Clement Pernet,    |  Work issues:
  Jeroen Demeyer                     |       Commit:
Report Upstream:  N/A                |  7823566105b8deba838cddf2ead7f174037caa39
         Branch:                     |     Stopgaps:
  u/cpernet/givaro_fflasffpack_linbox|
   Dependencies:  #20237             |
-------------------------------------+-------------------------------------

Comment (by fbissey):

 OK, so I have done my inspection:
  1) list of linbox dependency that we want to be there: ntl, fplll, flint,
 mpfr, iml. Those are direct build dependencies
 {{{
 readelf -d liblinbox.so.0.0.0

 Dynamic section at offset 0x44a80 contains 42 entries:
   Tag        Type                         Name/Value
  0x0000000000000001 (NEEDED)             Shared library: [libfflas.so.1]
  0x0000000000000001 (NEEDED)             Shared library: [libffpack.so.1]
  0x0000000000000001 (NEEDED)             Shared library:
 [libreflapack.so.3]
  0x0000000000000001 (NEEDED)             Shared library:
 [libopenblas_threads.so.0]
  0x0000000000000001 (NEEDED)             Shared library: [libgivaro.so.8]
  0x0000000000000001 (NEEDED)             Shared library: [libgmpxx.so.4]
  0x0000000000000001 (NEEDED)             Shared library: [libgmp.so.10]
  0x0000000000000001 (NEEDED)             Shared library: [libntl-9.7.0.so]
  0x0000000000000001 (NEEDED)             Shared library: [libfplll.so.0]
  0x0000000000000001 (NEEDED)             Shared library: [libflint.so.13]
  0x0000000000000001 (NEEDED)             Shared library: [libmpfr.so.4]
  0x0000000000000001 (NEEDED)             Shared library: [libiml.so.0]
  0x0000000000000001 (NEEDED)             Shared library: [libOpenCL.so.1]
  0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
  0x0000000000000001 (NEEDED)             Shared library: [libstdc++.so.6]
  0x0000000000000001 (NEEDED)             Shared library: [libm.so.6]
  0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
  0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
  0x000000000000000e (SONAME)             Library soname: [liblinbox.so.0]
 }}}
 flint is not in the current list. m4ri and m4rie can be removed as they
 are looked for by `configure` but not used.
  2) we want to have opencl (`--without-ocl`) to be turned off, at least
 for binary build.
  3) because `sage/libs/linbox/linbox.pyx` has been given a block
 {{{
 # distutils: extra_compile_args = LINBOX_CFLAGS
 # distutils: libraries = LINBOX_LIBRARIES
 # distutils: library_dirs = LINBOX_LIBDIR
 }}}
 the entry in `modules_list.py` doesn't need `libraries = linbox_libs`.
 `cblas_include_dirs` can stay as its content is somehow not included in
 `fflas-ffpack.pc` (but it is in `fflas-ffpack-config --cflags`). Similarly
 `fflas-ffpack.pc` has no information on the blas/lapack libraries - may be
 it should - you would inherit the correct stuff without having to add
 anything. Someone check this on a vanilla install please.
  4) Do we want lapack support in `fflas-ffpack`? That would mean changing
 `LINBOX_BLAS="$(pkg-config --libs cblas)"` to `LINBOX_BLAS="$(pkg-config
 --libs lapack cblas)"` this has an impact on the previous item as you
 really need to know which libraries are used (especially if your linker is
 dumb). Note: you may want at least `LINBOX_BLAS="$(pkg-config --cflags
 --libs cblas)"` in case the headers are in a funny location.

--
Ticket URL: <http://trac.sagemath.org/ticket/17635#comment:98>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to