SUMMARY Attempts to build Clazy against Clang 18 and later fail. STEPS TO REPRODUCE 1. Install Clang 18. 2. Checkout Clazy master branch. 3. Build Clazy OBSERVED RESULT ... [120/120] Linking CXX executable bin/clazy-standalone FAILED: bin/clazy-standalone : && /usr/bin/c++ -fno-common -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -fno-exceptions -fno-rtti -fPIC -O3 -DNDEBUG CMakeFiles/clazy-standalone.dir/src/ClazyStandaloneMain.cpp.o -o bin/clazy-standalone -L/usr/lib/llvm-18/lib -Wl,-rpath,/usr/lib/llvm-18/lib:/home/runner/work/graphia/graphia/clazy/lib: lib/ClazyPlugin.so /usr/lib/llvm-18/lib/libclangFrontend.a /usr/lib/llvm-18/lib/libclangDriver.a /usr/lib/llvm-18/lib/libclangCodeGen.a /usr/lib/llvm-18/lib/libclangSema.a /usr/lib/llvm-18/lib/libclangAnalysis.a /usr/lib/llvm-18/lib/libclangRewriteFrontend.a /usr/lib/llvm-18/lib/libclangRewrite.a /usr/lib/llvm-18/lib/libclangAST.a /usr/lib/llvm-18/lib/libclangASTMatchers.a /usr/lib/llvm-18/lib/libclangParse.a /usr/lib/llvm-18/lib/libclangLex.a /usr/lib/llvm-18/lib/libclangBasic.a /usr/lib/llvm-18/lib/libclangARCMigrate.a /usr/lib/llvm-18/lib/libclangEdit.a /usr/lib/llvm-18/lib/libclangFrontendTool.a /usr/lib/llv /usr/bin/ld: lib/ClazyPlugin.so: undefined reference to `clang::api_notes::APINotesManager::~APINotesManager()' /usr/bin/ld: lib/ClazyPlugin.so: undefined reference to `clang::api_notes::APINotesManager::loadCurrentModuleAPINotes(clang::Module*, bool, llvm::ArrayRef<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >)' /usr/bin/ld: lib/ClazyPlugin.so: undefined reference to `clang::api_notes::APINotesManager::APINotesManager(clang::SourceManager&, clang::LangOptions const&)' collect2: error: ld returned 1 exit status EXPECTED RESULT Successful build. SOFTWARE/OS VERSIONS Ubuntu 20.04 LTS Clang 18 installed via https://apt.llvm.org/
works for me with clazy master and llvm 18.1.7 (built from source)
I've reproduced specifically with llvm18 from ubuntu-24.04, will investigate further.
A possibly relevant merge request was started @ https://invent.kde.org/sdk/clazy/-/merge_requests/138