麒麟V10系统
安装时报错
什么原因?怎么解决?
/usr/bin/ld: CMakeFiles/dead-instrument.dir/DeadInstrument.cpp.o:(.data.rel.ro._ZTIZN5clang7tooling24newFrontendActionFactoryINS_12ast_matchers11MatchFinderEEESt10unique_ptrINS0_21FrontendActionFactoryESt14default_deleteIS5_EEPT_PNS0_19SourceFileCallbacksEE28FrontendActionFactoryAdapter[_ZTIZN5clang7tooling24newFrontendActionFactoryINS_12ast_matchers11MatchFinderEEESt10unique_ptrINS0_21FrontendActionFactoryESt14default_deleteIS5_EEPT_PNS0_19SourceFileCallbacksEE28FrontendActionFactoryAdapter]+0x10): undefined reference to typeinfo for clang::tooling::FrontendActionFactory' /usr/bin/ld: CMakeFiles/dead-instrument.dir/DeadInstrument.cpp.o:(.data.rel.ro._ZTIZN5clang7tooling24newFrontendActionFactoryINS_12ast_matchers11MatchFinderEEESt10unique_ptrINS0_21FrontendActionFactoryESt14default_deleteIS5_EEPT_PNS0_19SourceFileCallbacksEEN28FrontendActionFactoryAdapter22ConsumerFactoryAdaptorE[_ZTIZN5clang7tooling24newFrontendActionFactoryINS_12ast_matchers11MatchFinderEEESt10unique_ptrINS0_21FrontendActionFactoryESt14default_deleteIS5_EEPT_PNS0_19SourceFileCallbacksEEN28FrontendActionFactoryAdapter22ConsumerFactoryAdaptorE]+0x10): undefined reference to
typeinfo for clang::ASTFrontendAction'
/usr/bin/ld: CMakeFiles/dead-instrument.dir/DeadInstrument.cpp.o:(.data.rel.ro+0x108): undefined reference to typeinfo for llvm::cl::GenericOptionValue' /usr/bin/ld: CMakeFiles/dead-instrument.dir/DeadInstrument.cpp.o:(.data.rel.ro+0x150): undefined reference to
typeinfo for llvm::cl::generic_parser_base'
/usr/bin/ld: CMakeFiles/dead-instrument.dir/DeadInstrument.cpp.o:(.data.rel.ro+0x170): undefined reference to typeinfo for llvm::cl::Option' /usr/bin/ld: ../libDeadInstrumentlib.a(DeadInstrumenter.cpp.o):(.data.rel.ro._ZTIN4dead6detail18RuleActionCallbackE[_ZTIN4dead6detail18RuleActionCallbackE]+0x10): undefined reference to
typeinfo for clang::ast_matchers::MatchFinder::MatchCallback'
/usr/bin/ld: ../libDeadInstrumentlib.a(DeadInstrumenter.cpp.o):(.data.rel.ro._ZTIN4dead6detail23RuleActionEditCollectorE[_ZTIN4dead6detail23RuleActionEditCollectorE]+0x10): undefined reference to `typeinfo for clang::ast_matchers::MatchFinder::MatchCallback'
collect2: error: ld returned 1 exit status