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

[libc] disable epoll_pwait2 due to breakage #80051

Merged
merged 2 commits into from
Jan 30, 2024

Conversation

michaelrj-google
Copy link
Contributor

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.

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.
@llvmbot llvmbot added the libc label Jan 30, 2024
@llvmbot
Copy link
Collaborator

llvmbot commented Jan 30, 2024

@llvm/pr-subscribers-libc

Author: None (michaelrj-google)

Changes

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.


Full diff: https://github.com/llvm/llvm-project/pull/80051.diff

1 Files Affected:

  • (modified) libc/config/linux/x86_64/entrypoints.txt (+2-1)
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

Copy link
Member

@nickdesaulniers nickdesaulniers left a 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.

@nickdesaulniers
Copy link
Member

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 cat /proc/version to confirm this theory.

@michaelrj-google michaelrj-google merged commit 576c4df into llvm:main Jan 30, 2024
3 of 4 checks passed
@michaelrj-google michaelrj-google deleted the libcPwait2Fix branch January 30, 2024 21:08
michaelrj-google added a commit to michaelrj-google/llvm-project that referenced this pull request Feb 1, 2024
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.
lntue pushed a commit that referenced this pull request Feb 1, 2024
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.
agozillon pushed a commit to agozillon/llvm-project that referenced this pull request Feb 5, 2024
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants