-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
In the old version of glibc and O2 is enabled, replacing the strncmp argument with a macro will cause the compilation to fail #29291
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment has been minimized.
This comment has been minimized.
I'm facing the same issue and I've tracked down the commit from where it started failing to compile. The commit is as below commit c37695a (HEAD)
|
S_LEN macro doesn't work when passed as an argument to another macro. That's why I didn't use it for the STRNICMP macros, only functions. |
Yes, obviously. Can you fix this so it works on all supported platforms, or should we revert that commit? |
Just revert it. |
Is this something we can test for in CI? Otherwise how we will know if any use of |
Not without containers. (But I believe this sort of "macro wrappers for gcc" in glibc can be researched; It will take some effort, though.) |
I don't see how we could. Even if we start testing centos specifically it won't account for other distros. We could start testing a slew of popular distros (centos, debian, fedora, arch, manjaro, etc etc) but that is going to be expensive CI-wise. |
Problem
Steps to reproduce
Expected behavior
Compilation succeeded
Neovim version (nvim -v)
commit 66a1e02
Vim (not Nvim) behaves the same?
N/A
Operating system/version
CentOS 7.9
Terminal name/version
windows terminal
$TERM environment variable
xterm-256color
Installation
build from repo
The text was updated successfully, but these errors were encountered: