> cmake --build ccls/Release
[ 2%] Building CXX object CMakeFiles/ccls.dir/third_party/siphash.cc.o
[ 4%] Building CXX object CMakeFiles/ccls.dir/src/clang_tu.cc.o
[ 7%] Building CXX object CMakeFiles/ccls.dir/src/config.cc.o
[ 9%] Building CXX object CMakeFiles/ccls.dir/src/filesystem.cc.o
[ 11%] Building CXX object CMakeFiles/ccls.dir/src/fuzzy_match.cc.o
[ 14%] Building CXX object CMakeFiles/ccls.dir/src/main.cc.o
[ 16%] Building CXX object CMakeFiles/ccls.dir/src/indexer.cc.o
/home/joshua/ccls/src/indexer.cc:1288:10: error: no matching member function for
call to 'createDiagnostics'
1288 | clang->createDiagnostics(
| ~~~~~~~^~~~~~~~~~~~~~~~~
/usr/lib/llvm-22/include/clang/Frontend/CompilerInstance.h:709:3: note:
candidate function not viable: no known conversion from 'IndexDiags *' to
'DiagnosticOptions &' for 2nd argument
709 | createDiagnostics(llvm::vfs::FileSystem &VFS, DiagnosticOptions &Opts,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/llvm-22/include/clang/Frontend/CompilerInstance.h:684:8: note:
candidate function not viable: requires at most 2 arguments, but 3 were
provided
684 | void createDiagnostics(DiagnosticConsumer *Client = nullptr,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
685 | bool ShouldOwnClient = true);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/joshua/ccls/src/indexer.cc:1302:28: error: too many arguments to function
call, expected 0, have 1
1302 | clang->createFileManager(fs);
| ~~~~~~~~~~~~~~~~~~~~~~~~ ^~
/usr/lib/llvm-22/include/clang/Frontend/CompilerInstance.h:717:16: note:
'createFileManager' declared here
717 | FileManager *createFileManager();
| ^
2 errors generated.
make[2]: *** [CMakeFiles/ccls.dir/build.make:160: CMakeFiles/ccls.dir/src/indexer.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:89: CMakeFiles/ccls.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
I can configure it now but there are 2 build errors.
Configuration
Build process