-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
llvm-exegesis doesn't build when using gcc >= 10, glibc >= 2.35 but kernel headers < 4.18 #64456
Labels
Comments
@llvm/issue-subscribers-tools-llvm-exegesis |
I have submitted a patch here: https://reviews.llvm.org/D157189 |
llvmbot
pushed a commit
to llvm/llvm-project-release-prs
that referenced
this issue
Aug 7, 2023
When compiling against recent glibc (>= 2.35) but old kernel headers (< 4.18), `SYS_rseq` is not defined and thus llvm-exegesis fails to build. So also check that `SYS_rseq` is defined before trying to use it. Fixes llvm/llvm-project#64456 Reviewed By: MaskRay, gchatelet Differential Revision: https://reviews.llvm.org/D157189 (cherry picked from commit f70e83a)
/cherry-pick e82cc56 |
I have created #64497 to track the backport to branch 17. |
Error: Command failed due to missing milestone. |
Error: Command failed due to missing milestone. |
llvmbot
pushed a commit
to llvm/llvm-project-release-prs
that referenced
this issue
Aug 8, 2023
When compiling against recent glibc (>= 2.35) but old kernel headers (< 4.18), `SYS_rseq` is not defined and thus llvm-exegesis fails to build. So also check that `SYS_rseq` is defined before trying to use it. Fixes llvm/llvm-project#64456 Reviewed By: MaskRay, gchatelet Differential Revision: https://reviews.llvm.org/D157189 (cherry picked from commit f70e83a)
tru
pushed a commit
to llvm/llvm-project-release-prs
that referenced
this issue
Aug 10, 2023
When compiling against recent glibc (>= 2.35) but old kernel headers (< 4.18), `SYS_rseq` is not defined and thus llvm-exegesis fails to build. So also check that `SYS_rseq` is defined before trying to use it. Fixes llvm/llvm-project#64456 Reviewed By: MaskRay, gchatelet Differential Revision: https://reviews.llvm.org/D157189 (cherry picked from commit f70e83a)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
The usage of
SYS_rseq
inllvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
might not be ok when compiling with gcc >= 10, glibc >= 2.35 but rather old kernel headers (< 4.18). It's not common, but it happened to me:I guess the preprocessor directive guarding this shall be modified to read:
Cheers,
Romain
The text was updated successfully, but these errors were encountered: