Opened 6 years ago

Last modified 6 years ago

#20646 closed defect

gsl and linbox underlinked in sage-7.2 — at Initial Version

Reported by: mjo Owned by:
Priority: major Milestone: sage-7.5
Component: build Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges


When building sage-7.2 with LDFLAGS="--as-needed", the result is underlinked:

from sage.rings.complex_double import CDF
ImportError: /home/mjo/src/sage.git/local/lib/ undefined symbol: cblas_sdsdot

That first error can be avoided by adding -lcblas to the gsl LDFLAGS, but a more intelligent approach is probably provided by this patch:

After that's fixed...

File "sage/libs/linbox/linbox.pxd", line 7, in init sage.matrix.matrix_integer_dense (/home/mjo/src/sage.git/src/build/cythonized/sage/matrix/matrix_integer_dense.c:52635)
ImportError: /home/mjo/src/sage.git/local/lib/ undefined symbol: certSolveRedMP

That one can be fixed by appending -liml to the LDFLAGS for linbox. Appending it to LIBS should work, too.

More info about --as-needed:

Change History (0)

Note: See TracTickets for help on using tickets.