Closed gvol closed 6 years ago
It's an issue of ccls,the temp temporary solution:
git clone https://github.com/twlz0ne/homebrew-ccls
cd homebrew-ccls
$EDITOR Formula/ccls.rb
Add following, then save changes and exit editing:
# head "https://github.com/MaskRay/ccls.git"
head "https://github.com/twlz0ne/ccls.git", :branch => "add-clangbasic-to-cmake"
Back to shell, install like this:
brew install Formula/ccls.rb --HEAD
On Linux,
% nm -D /usr/lib/libz.so.1 | grep compressB
000000000000cd20 T compressBound
% bundled/clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-16.04/lib/cmake/llvm/LLVMConfig.cmake
...
set(LLVM_ENABLE_ZLIB 0)
set(LLVM_LIBXML2_ENABLED 0)
set(LLVM_ENABLE_DIA_SDK 0)
I suspect on your system, the llvm libraries were compiled with LLVM_ENABLE_ZLIB=1
. Can you try -DUSE_SHARED_LLVM=on
(linking against the dynamic LLVM shared object)? I have also pushed a commit to link against zlib.
Thanks! I just reinstalled with no changes, and it worked. I also tried @twlz0ne's suggestion and that worked too.
I tried installing today, and got this error. I'm happy to try and debug it, but if you think it would be helpful.