-
-
Notifications
You must be signed in to change notification settings - Fork 649
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: link CMAKE_DL_LIBS #725
base: main
Are you sure you want to change the base?
Conversation
Link btop to ${CMAKE_DL_LIBS} when building using shared libs and GPU support on linux
This is because There are newer Ubuntu LTS's available with proper support for CMake, glibc and gcc. (20.04 doesn't have a new enough CMake anyway, and only gcc-10 while 11 or newer is recommended). I'd like to keep this in line with the Makefile which doesn't support that either. |
I built the tool with a package manager that doesn't require root privileges. We can currently deal with Since I'll use that patch to build |
Does this mean that a similar change in the Makefile is welcome, or is it a policy to build only with the system provided toolchain on each OS? |
No, there is no such policy, but it's just unusual to run into a system with brand new compiler and outdated libc. You don't even need to patch the build files. Just configure cmake with proper LDFLAGS like so |
Hi @imwints, Could you please merge this? You're explicitly using Multiple people have run into this, and it should be the build system that gets it right, especially if it's just 3 lines. |
What's unusual for you might be usual for someone else ;) I agree with haampie, if there is an explicit dependency, then the build system should handle it explicitly (actually doesn't matter 3 lines or 3K ^^'). |
Without the explicit command in the PR, I get a build failure when building from sources on Ubuntu 20.04 and adding GPU support.
The build was done with Spack, see spack/spack#42139
If it is of any use, I attach a log of the failed build (before this change): spack-build-out.txt