-
-
Notifications
You must be signed in to change notification settings - Fork 690
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
Profiler build failure on Debian Buster with CMake #913
Comments
There's an equivalent condition already in |
The second problem is an interesting one to figure out.
|
I tried starting from scratches and error 1 went away. I guess LEGACY=OFF got cached and never reset correctly. Sorry about that. Here's the full error message:
ld version:
ELF info:
Edit: FWIW adding dl to target_link_libraries in profiler/CMakeLists.txt fixes it. |
Yes, but the question is, why? Tracy doesn't use |
I'm running into the same problem |
On the master branch, building the profiler alone with CMake fails on Debian Buster with X11 for
21 reasons:Wayland is incorrectly selected despite LEGACY=ON being given in the CMake configuration. This leads to searching for wayland-scanner which is apparently not available on Debian Buster.undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
I fixed problem 1 by adding the following to profiler/CMakeLists.txt and reconfiguring:(PEBKAC)
I went around 2. by running the link command manually adding -ldl to it. I guess there's a
target_link_libraries(... dl)
missing somewhere.The resulting binary appears to be working.
Commands reproducing the problem:
System:
$ uname -a Linux FRIDF-L00174 4.19.0-25-amd64 #1 SMP Debian 4.19.289-2 (2023-08-08) x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 10 (buster) Release: 10 Codename: buster
Compiler:
Toolchain:
The text was updated successfully, but these errors were encountered: