collect2: error: ld returned 1 exit status

麒麟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 totypeinfo 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 totypeinfo 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 totypeinfo 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

安装银河麒麟桌面系统V10【超详细图文教程】
删除干净,按照这个试试,后面有啥问题可以问
如有帮助,望采纳
https://blog.csdn.net/apull/article/details/127084781

哈喽,看了下你的报错,错误很多呀。

这个是题取你报错的核心原因:
未定义clang::tooling::FrontendAction工厂的类型信息引用/usr/bin/ld:CMakeFiles/dad instrument.dir/DadInstrument.cpp.o:
未定义clang::ASTFrontendAction的类型信息引用
未定义引用::cl:“generic_parser_base'
未定义对clang::ast_matchers::MatchFinder::MatchCallbackE的typeinfo的引用后退'
未定义对“typeinfo for clang::ast_matchers::MatchFinder::MatchCallback”的引用
导致最终的报错,退出安装
collect2: error: ld returned 1 exit status
collect2:错误:ld返回1退出状态

贴一下你的硬件信息和ISO镜像信息,主要是cpu类型和ISO版本。