ccls icon indicating copy to clipboard operation
ccls copied to clipboard

ccls build link1104 error: cannot open file 'clangIndex.lib'

Open TheArheus opened this issue 4 years ago • 0 comments

Hello, right now I am trying to build ccls and I got this error occured: 'error LNK1104: cannot open file 'clangIndex.lib'

And right now I don't know how to deal with it, because that seems I need to use old toolchain. I tried to specify LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=true, but that creates new problem with cmake:

CMake Error at cmake/modules/AddLLVM.cmake:1968 (string):
  string begin index: -1 is out of range 0 - 23
Call Stack (most recent call first):
  tools/llvm-objcopy/CMakeLists.txt:58 (add_llvm_tool_symlink)


CMake Error at cmake/modules/AddLLVM.cmake:1969 (string):
  string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
  tools/llvm-objcopy/CMakeLists.txt:58 (add_llvm_tool_symlink)


CMake Error at cmake/modules/AddLLVM.cmake:1968 (string):
  string begin index: -1 is out of range 0 - 23
Call Stack (most recent call first):
  tools/llvm-objcopy/CMakeLists.txt:59 (add_llvm_tool_symlink)


CMake Error at cmake/modules/AddLLVM.cmake:1969 (string):
  string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
  tools/llvm-objcopy/CMakeLists.txt:59 (add_llvm_tool_symlink)


-- Version: 0.0.0
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX -- failed to compile
CMake Warning at utils/benchmark/CMakeLists.txt:248 (message):
  Using std::regex with exceptions disabled is not fully supported


-- Performing Test HAVE_STEADY_CLOCK -- success
Configuring incomplete, errors occurred!

How can I deal with it?

I am using the most recent version of ccls and llvm+clang

TheArheus avatar Sep 24 '21 08:09 TheArheus