-
Notifications
You must be signed in to change notification settings - Fork 12k
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
[libc] disable epoll_pwait2 due to breakage #80051
Conversation
It appears that sys_epoll_pwait2 isn't always available, so we need to add some sort of condition to enable it. This patch disables it until that happens.
@llvm/pr-subscribers-libc Author: None (michaelrj-google) ChangesIt appears that sys_epoll_pwait2 isn't always available, so we need to Full diff: https://github.com/llvm/llvm-project/pull/80051.diff 1 Files Affected:
diff --git a/libc/config/linux/x86_64/entrypoints.txt b/libc/config/linux/x86_64/entrypoints.txt
index 1764157da9a47..8a41a2e92ed9f 100644
--- a/libc/config/linux/x86_64/entrypoints.txt
+++ b/libc/config/linux/x86_64/entrypoints.txt
@@ -146,7 +146,8 @@ set(TARGET_LIBC_ENTRYPOINTS
# sys/epoll.h entrypoints
libc.src.sys.epoll.epoll_wait
libc.src.sys.epoll.epoll_pwait
- libc.src.sys.epoll.epoll_pwait2
+ # Need to check if pwait2 is available before providing.
+ # libc.src.sys.epoll.epoll_pwait2
# sys/mman.h entrypoints
libc.src.sys.mman.madvise
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please file a bug and link to it in the comment.
https://man7.org/linux/man-pages/man2/epoll_wait.2.html says epoll_wait2 was added in linux 5.11. Linux 5.10 was a major LTS release from a few years ago that is still supported; it's possible that the build bot is running an old kernel version that doesn't yet support this header. If you can ssh into the build bot that this is failing on, please grab the output from |
Similar to llvm#80051. The epoll_pwait2 syscall isn't available on all target platforms, and this is causing downstream test failures. This patch disables it until it can be detected whether or not it is available.
Similar to #80051. The epoll_pwait2 syscall isn't available on all target platforms, and this is causing downstream test failures. This patch disables it until it can be detected whether or not it is available.
Similar to llvm#80051. The epoll_pwait2 syscall isn't available on all target platforms, and this is causing downstream test failures. This patch disables it until it can be detected whether or not it is available.
It appears that sys_epoll_pwait2 isn't always available, so we need to
add some sort of condition to enable it. This patch disables it until
that happens.