开发者社区 > 数据库 > 正文

编译miniob时报出的错,是否是libcommon.so库1.0.0版本和miniob不兼容呢?

OB中编译miniob时报出的错,是否是libcommon.so库1.0.0版本和miniob不兼容呢?/usr/bin/ld: Dwarf Error: Can't find .debug_ranges section. CMakeFiles/client_performance_test.dir/client_performance_test.cpp.o: In function __gnu_cxx::new_allocator<std::_List_node<common::Reporter*> >::allocate(unsigned long, void const*)': client_performance_test.cpp:(.text._ZN9__gnu_cxx13new_allocatorISt10_List_nodeIPN6common8ReporterEEE8allocateEmPKv[_ZN9__gnu_cxx13new_allocatorISt10_List_nodeIPN6common8ReporterEEE8allocateEmPKv]+0x45): undefined reference tostd::__throw_bad_array_new_length()' ../../lib/libcommon.so.1.0.0: undefined reference to `std::__throw_bad_array_new_length()@GLIBCXX_3.4.29' collect2: error: ld returned 1 exit status

展开
收起
fuxixi 2022-10-17 13:30:07 1408 0
1 条回答
写回答
取消 提交回答
  • 是系统glic++库有点混乱导致的加载错了库的版本,需要清一下版本,或者指定一下库版本就解决掉了。另外docker构建没问题。此答案整理自钉钉群“[社区]OB 入门到实战群3”

    2022-10-17 15:06:12
    赞同 展开评论 打赏
问答地址:

数据库领域前沿技术分享与交流

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载