javionyang 2022-12-13 18:17 采纳率: 12.5%
浏览 50
已结题

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 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

  • 写回答

4条回答 默认 最新

  • yy64ll826 2022-12-13 18:39
    关注

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

    评论

报告相同问题?

问题事件

  • 系统已结题 12月21日
  • 创建了问题 12月13日

悬赏问题

  • ¥15 flink-sql-connector-rabbitmq使用
  • ¥15 zynq7015,PCIE读写延时偏大
  • ¥15 使用spss做psm(倾向性评分匹配)遇到问题
  • ¥20 vue+UEditor附件上传问题
  • ¥15 想做个WPS的自动化代码,不知道能做的起不。
  • ¥15 uniApp,生成安卓安卓包后,黑暗主题中间内容不生效,底部导航正常
  • ¥15 斯坦福自动漂移非线性模型反解
  • ¥15 学习Python如何找兼职
  • ¥15 python结合Matlab仿真忆阻器
  • ¥35 有人会注册whatsaop协议号吗?