-
Notifications
You must be signed in to change notification settings - Fork 284
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
fix how --sysroot is taken into account in CMakeMake easyblock #2247
fix how --sysroot is taken into account in CMakeMake easyblock #2247
Conversation
Hmm, this PR breaks the installation of GROMACS, it fails to find the FFTW libraries for some reason when using
The libraries are there though, in |
Similar issue with
And with CGAL, where
So somehow using Perhaps a better approach is to add |
Patching CMake itself is probably a better way forward, see #2248 ... |
To help in checking what went wrong: https://cmake.org/cmake/help/latest/variable/CMAKE_FIND_DEBUG_MODE.html Edit: Judging from the code: Setting |
Closing this, the fix in #2248 has proven to be a better approach... |
(created using
eb --new-pr
)The fix in #2247 was way too naive, and according to the CMake docs
CMAKE_SYSROOT
can only be specified in a toolchain file.I've also added setting
-DCMAKE_FIND_LIBRARY_CUSTOM_LIB_SUFFIX=64
to fix a problem where libraries likelibpthread.so
was not being found when installing LLVM, because it was located in${EPREFIX}/usr/lib64
(onaarch64
), rather than in${EPREFIX}/usr/lib
(like it is onx86_64
).This manifested as follows:
After a bit of digging, I noticed this in
CMakeCache.txt
:In a working environment (with
libpthread.so
in${EPREFIX}/usr/lib
), this was:Thanks a lot to @zao for the help in figuring out this unholy mess...