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

Description

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/libgsl.so.19: 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:

https://gitweb.gentoo.org/repo/gentoo.git/tree/sci-libs/gsl/files/gsl-2.1-cblas.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/liblinboxsage.so.0: 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:

https://wiki.gentoo.org/wiki/Project:Quality_Assurance/As-needed

Change History (0)

Note: See TracTickets for help on using tickets.