[PATCH] D62174: [Analysis] Link library dependencies to Analysis plugins
Petr Hosek via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon May 20 22:59:39 PDT 2019
phosek added a comment.
This is an alternative to D62154 <https://reviews.llvm.org/D62154>. With just the change to `HandleLLVMOptions.cmake`, we're seeing errors in Analysis plugins due to undefined symbols:
error: 'error' diagnostics seen but not expected:
(frontend): unable to load plugin './lib/SampleAnalyzerPlugin.so': './lib/SampleAnalyzerPlugin.so: undefined symbol: _ZN4llvm14FoldingSetBase6anchorEv'
and
bin/clang: symbol lookup error: ./lib/SampleAnalyzerPlugin.so: undefined symbol: _ZN5clang4ento15CheckerRegistry10addCheckerEPFvRNS0_14CheckerManagerEEPFbRKNS_11LangOptionsEEN4llvm9StringRefESC_SC_b
I'm not sure where those symbols are supposed to come from, but they're not part of Clang so those errors seem valid. Linking in dependencies unconditionally addresses those failures.
Note that I've been testing this in build of Clang that enables neither shared libraries nor `libLLVM.so`.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62174/new/
https://reviews.llvm.org/D62174
More information about the cfe-commits
mailing list