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

ENABLE_LAPACK=ON fails because it ignores LDFLAGS #74

Open
yurivict opened this issue Aug 27, 2021 · 5 comments
Open

ENABLE_LAPACK=ON fails because it ignores LDFLAGS #74

yurivict opened this issue Aug 27, 2021 · 5 comments

Comments

@yurivict
Copy link

/usr/local/bin/cmake -E cmake_link_script CMakeFiles/ltest.dir/link.txt --verbose=1
/usr/bin/cc -O2 -pipe -fno-omit-frame-pointer  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -O2 -pipe -fno-omit-frame-pointer  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing CMakeFiles/ltest.dir/ltest.o -o ltest  -lopenblas -lopenblas 
ld: error: unable to find library -lopenblas
ld: error: unable to find library -lopenblas
cc: error: linker command failed with exit code 1 (use -v to see invocation)

These LDFLAGS were ignored:
LDFLAGS="-Wl,-rpath=/usr/local/lib/gcc10 -L/usr/local/lib/gcc10 -B/usr/local/bin -L/usr/local/lib -fstack-protector-strong -L/usr/local/lib"

OS: FreeBSD 13

@balos1
Copy link
Member

balos1 commented Aug 27, 2021

What version of SUNDIALS is this with?

@yurivict
Copy link
Author

5.7.0

@balos1
Copy link
Member

balos1 commented Aug 27, 2021

Can you provide the CMakeCache.txt?

@yurivict
Copy link
Author

@jhgit
Copy link

jhgit commented Aug 29, 2021

It would be good if 'openblas' support could be detected by default using the method that uses pkgconf (aka pkg-config). For example:

% pkgconf --libs openblas
-L/usr/local/lib -lopenblas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants