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
error building implicit function and incompatible integer to pointer conversion #26087
Comments
Please provide Ubuntu version. (E.g. from the output of |
@zeertzjq added ubuntu version. |
note a temporary fix seems to be adding this into the CMakeLists.txt: set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-implicit-function-declaration -Wno-int-conversion")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-implicit-function-declaration -Wno-int-conversion") but not permanent fix. It can be an Intel compiler issue, because it seems like the implicit function in question did have included header. idk. Maybe some macro logic for headers. |
I can reproduce the issue with icx 2023.1.0 on Debian 12.2 (glibc 2.36). The simplest solution is to add
The macros and their required values depend on the glibc version, as specified in the man’s. Anyway, I believe this is an icx–glibc problem. |
neovim/src/nvim/CMakeLists.txt Lines 197 to 209 in d667e0e
|
Also add _GNU_SOURCE compiler definition for all non MSVC compilers. Closes neovim#26087.
@e-kwsm @karasjoh000 does #26124 solve this problem? |
Yes, it fixes the issue. |
Also add _GNU_SOURCE compiler definition for all non MSVC compilers. Closes neovim#26087.
Also add _GNU_SOURCE compiler definition for all non MSVC compilers. Closes #26087.
Problem
Steps to reproduce
Expected behavior
It should compile without error
Neovim version (nvim -v)
fe869a8
Vim (not Nvim) behaves the same?
Did not try this.
Operating system/version
Terminal name/version
ubuntu wsl
$TERM environment variable
tmux-256color
Installation
build from repo
The text was updated successfully, but these errors were encountered: