Open nerozero opened 1 week ago
Does it work if you install abseil through your system package manager and then pass -DUSE_SYSTEM_ABSEIL=ON
to cmake? It should.
There's also EXTRA_CMAKE_ARGS
that install.py
knows about.
So something like EXTRA_CMAKE_ARGS=-DUSE_SYSTEM_ABSEIL=ON ./install.py --verbose --clangd-completer
.
@bstaletic thank you for quick reply.
Unfortunately I made a mistake, I thought ycm is using a python module of absl
but it is a cpp version. I haven't find a BSD port for absl-cpp
, so there is no System Package in bsd...
If this is a absl-cpp module compile issue, then should i report a compiling issues in https://github.com/abseil/abseil-cpp?
I haven't find a BSD port for absl-cpp, so there is no System Package in bsd...
Bummer...
If this is a absl-cpp module compile issue, then should i report a compiling issues in https://github.com/abseil/abseil-cpp?
Basically yes. However, YCM is using this commit of abseil: https://github.com/ycm-core/ycmd/blob/master/cpp/CMakeLists.txt#L248
Maybe master is already fixed? Either way, the problem needs to be fixed in abseil-cpp first. Then YCM can update the referred-to commit.
I found this post: https://github.com/abseil/abseil-cpp/issues/1587
Latest Abseil LTS is this https://github.com/abseil/abseil-cpp/commit/d7aaad83b488fd62bd51c81ecf16cd938532cc0a
Would you mind trying that commit? If YCM compiles, I can make a pull request that updates it. Or you can.
Already done testing ( by changing GIT_TAG d7aaad83b488fd62bd51c81ecf16cd938532cc0a in third_party/ycmd/cpp/CMakeLists.txt ). Compiled and worked successfully.
One day - no issues with YCM. I guess we can close issue. Hope this commit of absl ( https://github.com/abseil/abseil-cpp/commit/d7aaad83b488fd62bd51c81ecf16cd938532cc0a ) appear in next YCM release.
We keep issues like this open until the next time we update the ycmd submodule. We have updated it just before you opened this issue, though there is no fixed schedule. Rather "it's been a while".
In the mean time, a possible workaround isgit submodule update --remote
, which pulls in ycmd master.
@bstaletic Thank you so much for very quick reactions!
Can confirm. i removed GIT TAG
in third_party/ycmd/cpp/CMakeList.txt
. Works well on FreeBSD 14.1.
Issue Prelude
Please complete these steps and check these boxes (by putting an
x
inside the brackets) before filing your issue:vim --version
.:YcmDebugInfo
.:YcmToggleLogs
command.vim -Nu /path/to/YCM/vimrc_ycm_minimal
, including what I expected to happen and what actually happened.install.py
(orcmake
/make
/ninja
) including its invocationThank you for adhering to this process! It ensures your issue is resolved quickly and that neither your nor our time is needlessly wasted.
Issue Details
Diagnostic data
Output of
vim --version
Output of
git rev-parse HEAD
in YouCompleteMe installation directoryOS version, distribution, etc.
Output of build/install commands