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

cmake can't find existing BLAS/LAPACK installation #14579

Closed
cruddybanana1102 opened this issue Dec 16, 2022 · 3 comments · Fixed by #14610
Closed

cmake can't find existing BLAS/LAPACK installation #14579

cruddybanana1102 opened this issue Dec 16, 2022 · 3 comments · Fixed by #14610

Comments

@cruddybanana1102
Copy link

Trying to build dealii for my personal machine(Ubuntu 22.04 LTS) with Intel CORE(R) i7-9750H and NVIDIA GeForce GTX 1650.

I am getting the following error when building with cmake. please see attached screenshot.
image
BLAS and LAPACK have been successfully built at /home/cruddybanana1102/Downloads/lapack-3.11.0/
but specifying that as file path while running cmake doesn't work.

Details can be found in attached cmake output and error logs.
CMakeOutput.log
CMakeError.log

@CodyGirl
Copy link
Contributor

Hi @cruddybanana1102 ,

I could reproduce the issue, and currently looking into it.
Will provide you with a solution soon.

Best,
CodyGirl

@CodyGirl
Copy link
Contributor

Hi @cruddybanana1102,

Try to follow the steps mentioned in the following document, Resolve-#14579.md
I have also attached the build log for your reference, detailed.log

Let me know, if it solves the issue for you.

Best,
CodyGirl

@tamiko
Copy link
Member

tamiko commented Dec 17, 2022

May I ask how you called cmake precisely? I am asking because your CMakeError.log contains:

gmake[1]: *** No rule to make target '/home/cruddyanana1102/Downloads/lapack-3.11.0', needed by 'cmTC_31925'.  Stop.

In this regard @CodyGirl 's recommendation is spot on: It is best to compile shared libraries and hint via LAPACK_DIR (or CMAKE_PREFIX_PATH).

A quick comment: If your goal is to simply install deal.II (and you're fine with using software packaged in Ubuntu) then it's not necessary to compile and install any dependency by hand. You can either

  • install the current version of deal.II from a PPA [1] by running apt install libdeal.ii-dev
  • or install all build dependencies (with or without above PPA - but with PPA is recommended from my side): apt build-dep libdeal.ii-dev

[1] https://launchpad.net/~ginggs/+archive/ubuntu/deal.ii-9.4.0-backports

CodyGirl added a commit to CodyGirl/dealii that referenced this issue Dec 23, 2022
- Fixes dealii#14579
- Reference external-libs/lapack.html in readme.html

Signed-off-by: Nistha Bhawsinka <nistha.bhawsinka@gmail.com>
CodyGirl added a commit to CodyGirl/dealii that referenced this issue Dec 28, 2022
- Fixes dealii#14579
- Reference external-libs/lapack.html in readme.html

Signed-off-by: Nistha Bhawsinka <nistha.bhawsinka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants