Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extmethods are only linked to LAPACKE, not LAPACK #339

Open
dionhaefner opened this issue May 18, 2017 · 1 comment
Open

Extmethods are only linked to LAPACKE, not LAPACK #339

dionhaefner opened this issue May 18, 2017 · 1 comment
Labels

Comments

@dionhaefner
Copy link
Collaborator

I ran into the following problem on Ubuntu:

If one does not have e.g. libopenblas-dev installed (which provides BLAS, CBLAS, and LAPACK symbols), but libblas-dev and liblapacke-dev, running the LAPACK extmethods fails with

Cannot load library: /home/dion/.local/lib/libbh_lapack_le.so: undefined symbol: dgtsv_

This is because the LAPACKE library from apt-get only contains LAPACKE symbols, not the vanilla LAPACK symbols, and the CMake script only links the libbh_lapack_{driver} libraries to LAPACKE, not LAPACK. One remedy is to issue find_package(LAPACK) in extmethods/lapack/CMakeListst.txt and link it e.g. with target_link_libraries(bh_lapack_${DRIVER} ${LAPACK_LIBRARIES} ${LAPACKE_LIBRARIES}).

@omegahm
Copy link
Member

omegahm commented May 18, 2017

When I get the time, I need to figure all of these various CMake dependencies out! At first, the LAPACKE ext method was just for show. Note that I have also only implemented a small handful of methods from LAPACK.

@madsbk madsbk added the bug label May 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants