Closed Icantjuddle closed 2 years ago
I tried using clang as well and got the same compilation errors as above.
Here is the different configuration step output:
❯ CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake -B build
-- The C compiler identification is Clang 10.0.0
-- The CXX compiler identification is Clang 10.0.0
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found LLVM 10.0.0
-- Using LLVMConfig.cmake in: /usr/lib/llvm-10/lib/cmake/llvm
-- Using ClangConfig.cmake in: /usr/lib/llvm-10/lib/cmake/clang
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/code/lsif-clang/build
Works with clang-11
I'm running an ubuntu20.04 machine and have installed the required deps. The code is failing to compile with following output: