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
toolchain: Error linking ELPA with MKL #376
Comments
I came across the same issue in the current development version. The
which contains the following env var:
That is unexpected to me, as it links to vanilla ScaLAPACK, as opposed to the one from MKL (
|
It looks like the issue with ScaLAPACK from Netlib vs MKL is a separate thing (#435), but the issue with ELPA and MKL remains. |
I was able to solve the issue in a hackish way by following the instructions in the documentation: A proper solution would get these from the variables the toolkit determines, but it at least shows the direction to take. |
Confusingly, I see a lot of warnings of the type:
even though it is configured with |
It looks like ELPA just does not like those static libraries and |
It seems this should be resolved by 0d7f2f7, shall we close it? |
Yes, this seems to have been fixed. |
I'm using CP2K 6.1. When building ELPA using the toolchain script, it fails to link with MKL, reporting as follows:
The error message is long, so I only pasted the first few errors.
I dag into this error, and found it caused by the lost of
-Wl,--start-group
and-Wl,--end-group
pair.install_mkl.sh
prepares the library string with-Wl,--start-group
and-Wl,--end-group
, so that MKL libraries can be linked in any order. But when configuring ELPA, it lost this pair somewhere. According to theconfig.log
generated by ELPA, it kept-Wl,--start-group
and-Wl,--end-group
for the first few command, until configuringac_cv_fc_libs
.I searched around the master branch and found this issues seems not be fixed yet.
The text was updated successfully, but these errors were encountered: