Closed jg110 closed 1 year ago
I believe I've tracked this down to a compiler configuration error - the CXX compiler should be GNU 13.0.1, not 11.2.0. Closing this unless correcting that turns out not to fix the issue.
Following up on this to confirm, it was an issue with my compiler setup. I had manually compiled a few older versions of gcc for a different project a year ago and ccache automatically grabbed one of those (which still probably wouldn't have caused a problem if the C and C++ compilers were the same version). Removing the old GCC and using the regular packaged version (both at 13.0.1) fixed the problem.
Observed behavior
ccls compiles successfully but fails at the linking step. I've tried building with clang+LLVM 16, 15, 14, and 13. I've also tried with Makefile and Ninja outputs of cmake. Compiler is GCC.
Build log:
I've checked both
strings /usr/lib64/libstdc++.6.0.31
andstrings /usr/lib64/libclang-cpp.so.16
and they contain GLIBCXX_3.4.30 (as do the older versions of libclang-cpp I've tested).Expected behavior
ccls should link correctly.
Steps to reproduce
cmake -H. -BRelease
andcmake --build Release
System information
git describe --tags --long
): 8bc3959537adae26b470c8223845555ea26693cc