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

Trouble compiling 1.24.1 on a Linux box with older glibc-dev than 2.32 #1081

Open
minghia opened this issue Dec 13, 2024 · 1 comment
Open

Comments

@minghia
Copy link

minghia commented Dec 13, 2024

The file common/althreads.h has a dependency on threads.h which is a C11 addition. Unfortunately threads.h only appeared in glibc releases after 2.32. This means that even though one may have a C++17 compiler such as GCC 9.2.0, althreads.h causes 1.24.1 to fail to build. I did get 1.23.1 to build as it appears to not have the dependency on threads.h.

@kcat
Copy link
Owner

kcat commented Dec 13, 2024

Commit 563a1c2 tries to use a more robust check to avoid C11 threads/tss_t. I don't know whether it'll work for a given arbitrary system that supports C++17 but not the C11 threads API, but it's worth trying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants