nebula-graph master编译失败

  • nebula 版本:

x86架构的ubuntu18.04,nebula-graph版本是v2.0 master版本

  • 部署方式(分布式 / 单机 / Docker / DBaaS):单机
  • 是否为线上版本:Y / N n
  • 硬件信息
    • 磁盘( 推荐使用 SSD) ssd
    • CPU、内存信息 128g
  • 问题的具体描述
    编译执行make -j8失败
In file included from /usr/include/c++/7/map:60:0,
                 from /usr/include/c++/7/regex:52,
                 from /data/etnao/nebula-graph/modules/common/src/common/base/Base.h:19,
                 from /data/etnao/nebula-graph/modules/common/src/common/charset/Charset.h:10,
                 from /data/etnao/nebula-graph/src/context/QueryContext.h:11,
                 from /data/etnao/nebula-graph/src/planner/ngql/PathPlanner.h:10,
                 from /data/etnao/nebula-graph/src/planner/ngql/PathPlanner.cpp:6:
/usr/include/c++/7/bits/stl_tree.h: In instantiation of ‘std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique_(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Arg&&, _NodeGen&) [with _Arg = const folly::Range<const char*>&; _NodeGen = std::_Rb_tree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::_Identity<std::__cxx11::basic_string<char> >, std::less<std::__cxx11::basic_string<char> >, std::allocator<std::__cxx11::basic_string<char> > >::_Alloc_node; _Key = std::__cxx11::basic_string<char>; _Val = std::__cxx11::basic_string<char>; _KeyOfValue = std::_Identity<std::__cxx11::basic_string<char> >; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::__cxx11::basic_string<char> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::__cxx11::basic_string<char> >]’:
/usr/include/c++/7/bits/stl_tree.h:2452:21:   required from ‘void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique(_II, _II) [with _InputIterator = std::_Rb_tree_const_iterator<folly::Range<const char*> >; _Key = std::__cxx11::basic_string<char>; _Val = std::__cxx11::basic_string<char>; _KeyOfValue = std::_Identity<std::__cxx11::basic_string<char> >; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::__cxx11::basic_string<char> >]’
/usr/include/c++/7/bits/stl_set.h:183:4:   required from ‘std::set<_Key, _Compare, _Alloc>::set(_InputIterator, _InputIterator) [with _InputIterator = std::_Rb_tree_const_iterator<folly::Range<const char*> >; _Key = std::__cxx11::basic_string<char>; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::__cxx11::basic_string<char> >]’
/data/etnao/nebula-graph/src/planner/ngql/PathPlanner.cpp:51:83:   required from here
/usr/include/c++/7/bits/stl_tree.h:2201:59: error: no match for call to ‘(std::_Identity<std::__cxx11::basic_string<char> >) (const folly::Range<const char*>&)’
  = _M_get_insert_hint_unique_pos(__position, _KeyOfValue()(__v));
                                              ~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/7/functional:49:0,
                 from /data/etnao/nebula-graph/modules/common/src/common/base/ObjectPool.h:10,
                 from /data/etnao/nebula-graph/src/context/QueryContext.h:10,
                 from /data/etnao/nebula-graph/src/planner/ngql/PathPlanner.h:10,
                 from /data/etnao/nebula-graph/src/planner/ngql/PathPlanner.cpp:6:
/usr/include/c++/7/bits/stl_function.h:873:7: note: candidate: _Tp& std::_Identity<_Tp>::operator()(_Tp&) const [with _Tp = std::__cxx11::basic_string<char>]
       operator()(_Tp& __x) const
       ^~~~~~~~
/usr/include/c++/7/bits/stl_function.h:873:7: note:   no known conversion for argument 1 from ‘const folly::Range<const char*>’ to ‘std::__cxx11::basic_string<char>&’
/usr/include/c++/7/bits/stl_function.h:877:7: note: candidate: const _Tp& std::_Identity<_Tp>::operator()(const _Tp&) const [with _Tp = std::__cxx11::basic_string<char>]
       operator()(const _Tp& __x) const
       ^~~~~~~~
/usr/include/c++/7/bits/stl_function.h:877:7: note:   no known conversion for argument 1 from ‘const folly::Range<const char*>’ to ‘const std::__cxx11::basic_string<char>&’
In file included from /data/etnao/nebula-graph/src/planner/Planner.h:13:0,
                 from /data/etnao/nebula-graph/src/planner/ngql/PathPlanner.h:12,
                 from /data/etnao/nebula-graph/src/planner/ngql/PathPlanner.cpp:6:
/data/etnao/nebula-graph/src/planner/plan/PlanNode.h: In member function ‘virtual nebula::graph::PlanNode* nebula::graph::SingleInputNode::clone() const’:
/data/etnao/nebula-graph/src/planner/plan/PlanNode.h:318:5: error: control reaches end of non-void function [-Werror=return-type]
     }
     ^
In file included from /data/etnao/nebula-graph/src/parser/Sentence.h:22:0,
                 from /data/etnao/nebula-graph/src/parser/MutateSentences.h:13,
                 from /data/etnao/nebula-graph/src/parser/TraverseSentences.h:11,
                 from /data/etnao/nebula-graph/src/context/Iterator.h:17,
                 from /data/etnao/nebula-graph/src/context/Result.h:12,
                 from /data/etnao/nebula-graph/src/context/ExecutionContext.h:11,
                 from /data/etnao/nebula-graph/src/context/QueryContext.h:18,
                 from /data/etnao/nebula-graph/src/planner/ngql/PathPlanner.h:10,
                 from /data/etnao/nebula-graph/src/planner/ngql/PathPlanner.cpp:6:
/data/etnao/nebula-graph/modules/common/src/common/expression/TextSearchExpression.h: In member function ‘virtual const nebula::Value& nebula::TextSearchExpression::eval(nebula::ExpressionContext&)’:
/data/etnao/nebula-graph/modules/common/src/common/expression/TextSearchExpression.h:97:5: error: control reaches end of non-void function [-Werror=return-type]
     }
     ^
In file included from /data/etnao/nebula-graph/modules/common/src/common/expression/ExprVisitor.h:19:0,
                 from /data/etnao/nebula-graph/src/visitor/ExprVisitorImpl.h:10,
                 from /data/etnao/nebula-graph/src/visitor/DeducePropsVisitor.h:12,
                 from /data/etnao/nebula-graph/src/context/ast/QueryAstContext.h:13,
                 from /data/etnao/nebula-graph/src/planner/ngql/PathPlanner.h:11,
                 from /data/etnao/nebula-graph/src/planner/ngql/PathPlanner.cpp:6:
/data/etnao/nebula-graph/modules/common/src/common/expression/LabelAttributeExpression.h: In member function ‘virtual const nebula::Value& nebula::LabelAttributeExpression::eval(nebula::ExpressionContext&)’:
/data/etnao/nebula-graph/modules/common/src/common/expression/LabelAttributeExpression.h:38:5: error: control reaches end of non-void function [-Werror=return-type]
     }
     ^
In file included from /data/etnao/nebula-graph/src/planner/Planner.h:13:0,
                 from /data/etnao/nebula-graph/src/planner/ngql/PathPlanner.h:12,
                 from /data/etnao/nebula-graph/src/planner/ngql/PathPlanner.cpp:6:
/data/etnao/nebula-graph/src/planner/plan/PlanNode.h: In member function ‘virtual nebula::graph::PlanNode* nebula::graph::SingleDependencyNode::clone() const’:
/data/etnao/nebula-graph/src/planner/plan/PlanNode.h:297:5: error: control reaches end of non-void function [-Werror=return-type]
     }
     ^
/data/etnao/nebula-graph/src/planner/plan/PlanNode.h: In member function ‘virtual nebula::graph::PlanNode* nebula::graph::BinaryInputNode::clone() const’:
/data/etnao/nebula-graph/src/planner/plan/PlanNode.h:371:5: error: control reaches end of non-void function [-Werror=return-type]
     }
     ^
/data/etnao/nebula-graph/src/planner/plan/PlanNode.h: In member function ‘virtual nebula::graph::PlanNode* nebula::graph::VariableDependencyNode::clone() const’:
/data/etnao/nebula-graph/src/planner/plan/PlanNode.h:391:5: error: control reaches end of non-void function [-Werror=return-type]
     }
     ^
cc1plus: all warnings being treated as errors
src/planner/CMakeFiles/planner_obj.dir/build.make:484: recipe for target 'src/planner/CMakeFiles/planner_obj.dir/ngql/PathPlanner.cpp.o' failed
make[2]: *** [src/planner/CMakeFiles/planner_obj.dir/ngql/PathPlanner.cpp.o] Error 1
CMakeFiles/Makefile2:1297: recipe for target 'src/planner/CMakeFiles/planner_obj.dir/all' failed
make[1]: *** [src/planner/CMakeFiles/planner_obj.dir/all] Error 2
Makefile:148: recipe for target 'all' failed
make: *** [all] Error 2
root@yanshi:/data/etnao/nebula-graph/build# cmake -v
CMake Error: The source directory "/data/etnao/nebula-graph/build/-v" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
root@yanshi:/data/etnao/nebula-graph/build# cmake --version
cmake version 3.19.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).
root@yanshi:/data/etnao/nebula-graph/build# 

(附件同上内容)
nebula-graph编译失败.md (8.5 KB)

同步一下上游的代码,包括common和storage的

重新下载编译还是错误,错误如下:
/usr/include/c++/8/bits/stl_function.h:1115:7: note: no known conversion for argument 1 from ‘const folly::Range<const char*>’ to ‘const std::__cxx11::basic_string&’
[ 23%] Building CXX object src/meta/CMakeFiles/meta_service_handler.dir/processors/schemaMan/DropTagProcessor.cpp.o
In file included from /bdp/github/nebula-graph/src/planner/Planner.h:13,
from /bdp/github/nebula-graph/src/planner/ngql/PathPlanner.h:12,
from /bdp/github/nebula-graph/src/planner/ngql/PathPlanner.cpp:6:
/bdp/github/nebula-graph/src/planner/plan/PlanNode.h: In member function ‘virtual nebula::graph::PlanNode* nebula::graph::SingleInputNode::clone() const’:
/bdp/github/nebula-graph/src/planner/plan/PlanNode.h:317:23: error: control reaches end of non-void function [-Werror=return-type]
LOG(FATAL) << “Shouldn’t call the unimplemented method”;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /bdp/github/nebula-graph/src/parser/Sentence.h:22,
from /bdp/github/nebula-graph/src/parser/MutateSentences.h:13,
from /bdp/github/nebula-graph/src/parser/TraverseSentences.h:11,
from /bdp/github/nebula-graph/src/context/Iterator.h:17,
from /bdp/github/nebula-graph/src/context/Result.h:12,
from /bdp/github/nebula-graph/src/context/ExecutionContext.h:11,
from /bdp/github/nebula-graph/src/context/QueryContext.h:18,
from /bdp/github/nebula-graph/src/planner/ngql/PathPlanner.h:10,
from /bdp/github/nebula-graph/src/planner/ngql/PathPlanner.cpp:6:
/bdp/github/nebula-graph/modules/common/src/common/expression/TextSearchExpression.h: In member function ‘virtual const nebula::Value& nebula::TextSearchExpression::eval(nebula::ExpressionContext&)’:
/bdp/github/nebula-graph/modules/common/src/common/expression/TextSearchExpression.h:96:23: error: control reaches end of non-void function [-Werror=return-type]
LOG(FATAL) << “TextSearchExpression has to be rewritten”;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /bdp/github/nebula-graph/modules/common/src/common/expression/ExprVisitor.h:19,
from /bdp/github/nebula-graph/src/visitor/ExprVisitorImpl.h:10,
from /bdp/github/nebula-graph/src/visitor/DeducePropsVisitor.h:12,
from /bdp/github/nebula-graph/src/context/ast/QueryAstContext.h:13,
from /bdp/github/nebula-graph/src/planner/ngql/PathPlanner.h:11,
from /bdp/github/nebula-graph/src/planner/ngql/PathPlanner.cpp:6:
/bdp/github/nebula-graph/modules/common/src/common/expression/LabelAttributeExpression.h: In member function ‘virtual const nebula::Value& nebula::LabelAttributeExpression::eval(nebula::ExpressionContext&)’:
/bdp/github/nebula-graph/modules/common/src/common/expression/LabelAttributeExpression.h:37:23: error: control reaches end of non-void function [-Werror=return-type]
LOG(FATAL) << “LabelAttributeExpression has to be rewritten”;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /bdp/github/nebula-graph/src/planner/Planner.h:13,
from /bdp/github/nebula-graph/src/planner/ngql/PathPlanner.h:12,
from /bdp/github/nebula-graph/src/planner/ngql/PathPlanner.cpp:6:
/bdp/github/nebula-graph/src/planner/plan/PlanNode.h: In member function ‘virtual nebula::graph::PlanNode* nebula::graph::SingleDependencyNode::clone() const’:
/bdp/github/nebula-graph/src/planner/plan/PlanNode.h:296:23: error: control reaches end of non-void function [-Werror=return-type]
LOG(FATAL) << “Shouldn’t call the unimplemented method”;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/bdp/github/nebula-graph/src/planner/plan/PlanNode.h: In member function ‘virtual nebula::graph::PlanNode* nebula::graph::BinaryInputNode::clone() const’:
/bdp/github/nebula-graph/src/planner/plan/PlanNode.h:370:23: error: control reaches end of non-void function

Scanning dependencies of target nebula-storaged
[ 91%] Building CXX object src/daemons/CMakeFiles/nebula-storaged.dir/StorageDaemon.cpp.o
[ 91%] Building CXX object src/daemons/CMakeFiles/nebula-storaged.dir/SetupLogging.cpp.o
[ 91%] Linking CXX executable …/…/bin/nebula-storaged
/usr/bin/ld.bfd: …/storage/CMakeFiles/storage_admin_service_handler.dir/admin/ListClusterInfoProcessor.cpp.o: in function nebula::storage::ListClusterInfoProcessor::process(nebula::storage::cpp2::ListClusterInfoReq const&)': ListClusterInfoProcessor.cpp:(.text+0x649): undefined reference to std::filesystem::current_pathabi:cxx11
/usr/bin/ld.bfd: …/kvstore/CMakeFiles/kvstore_obj.dir/NebulaStore.cpp.o: in function nebula::kvstore::NebulaStore::removeSpaceDir(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) [clone .constprop.2113]': NebulaStore.cpp:(.text+0x1947): undefined reference to std::filesystem::__cxx11::path::_M_split_cmpts()’
/usr/bin/ld.bfd: NebulaStore.cpp:(.text+0x1951): undefined reference to std::filesystem::remove_all(std::filesystem::__cxx11::path const&)' /usr/bin/ld.bfd: ../kvstore/CMakeFiles/kvstore_obj.dir/NebulaStore.cpp.o: in function nebula::kvstore::NebulaStore::removeSpaceDir(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’:
NebulaStore.cpp:(.text+0x1b47): undefined reference to std::filesystem::__cxx11::path::_M_split_cmpts()' /usr/bin/ld.bfd: NebulaStore.cpp:(.text+0x1b51): undefined reference to std::filesystem::remove_all(std::filesystem::__cxx11::path const&)’
/usr/bin/ld.bfd: …/kvstore/CMakeFiles/kvstore_obj.dir/NebulaStore.cpp.o:(.gcc_except_table+0xc4): undefined reference to typeinfo for std::filesystem::__cxx11::filesystem_error' /usr/bin/ld.bfd: ../kvstore/CMakeFiles/kvstore_obj.dir/NebulaStore.cpp.o:(.gcc_except_table+0xe8): undefined reference to typeinfo for std::filesystem::__cxx11::filesystem_error’
/usr/bin/ld.bfd: …/kvstore/CMakeFiles/kvstore_obj.dir/NebulaStore.cpp.o:(.gcc_except_table+0x114): undefined reference to typeinfo for std::filesystem::__cxx11::filesystem_error' /usr/bin/ld.bfd: ../kvstore/CMakeFiles/kvstore_obj.dir/NebulaStore.cpp.o:(.gcc_except_table+0x138): undefined reference to typeinfo for std::filesystem::__cxx11::filesystem_error’
/usr/bin/ld.bfd: …/kvstore/CMakeFiles/disk_man_obj.dir/DiskManager.cpp.o: in function __gnu_cxx::__normal_iterator<std::filesystem::__cxx11::path*, std::vector<std::filesystem::__cxx11::path, std::allocator<std::filesystem::__cxx11::path> > > std::__find_if<__gnu_cxx::__normal_iterator<std::filesystem::__cxx11::path*, std::vector<std::filesystem::__cxx11::path, std::allocator<std::filesystem::__cxx11::path> > >, __gnu_cxx::__ops::_Iter_equals_val<std::filesystem::__cxx11::path const> >(__gnu_cxx::__normal_iterator<std::filesystem::__cxx11::path*, std::vector<std::filesystem::__cxx11::path, std::allocator<std::filesystem::__cxx11::path> > >, __gnu_cxx::__normal_iterator<std::filesystem::__cxx11::path*, std::vector<std::filesystem::__cxx11::path, std::allocator<std::filesystem::__cxx11::path> > >, __gnu_cxx::__ops::_Iter_equals_val<std::filesystem::__cxx11::path const>, std::random_access_iterator_tag) [clone .constprop.365]': DiskManager.cpp:(.text+0x43): undefined reference to std::filesystem::__cxx11::path::compare(std::filesystem::__cxx11::path const&) const’
/usr/bin/ld.bfd: DiskManager.cpp:(.text+0x59): undefined reference to std::filesystem::__cxx11::path::compare(std::filesystem::__cxx11::path const&) const' /usr/bin/ld.bfd: DiskManager.cpp:(.text+0x6f): undefined reference to std::filesystem::__cxx11::path::compare(std::filesystem::__cxx11::path const&) const’
/usr/bin/ld.bfd: DiskManager.cpp:(.text+0x8a): undefined reference to std::filesystem::__cxx11::path::compare(std::filesystem::__cxx11::path const&) const' /usr/bin/ld.bfd: DiskManager.cpp:(.text+0xd8): undefined reference to std::filesystem::__cxx11::path::compare(std::filesystem::__cxx11::path const&) const’
/usr/bin/ld.bfd: …/kvstore/CMakeFiles/disk_man_obj.dir/DiskManager.cpp.o:DiskManager.cpp:(.text+0xeb): more undefined references to std::filesystem::__cxx11::path::compare(std::filesystem::__cxx11::path const&) const' follow /usr/bin/ld.bfd: ../kvstore/CMakeFiles/disk_man_obj.dir/DiskManager.cpp.o: in function nebula::kvstore::DiskManager::refresh()’:
DiskManager.cpp:(.text+0x636): undefined reference to std::filesystem::space(std::filesystem::__cxx11::path const&, std::error_code&)' /usr/bin/ld.bfd: ../kvstore/CMakeFiles/disk_man_obj.dir/DiskManager.cpp.o: in function nebula::kvstore::DiskManager::DiskManager(std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&, std::shared_ptrnebula::thread::GenericWorker)’:
DiskManager.cpp:(.text+0x987): undefined reference to std::filesystem::__cxx11::path::_M_split_cmpts()' /usr/bin/ld.bfd: DiskManager.cpp:(.text+0x994): undefined reference to std::filesystem::absolute(std::filesystem::__cxx11::path const&)’
/usr/bin/ld.bfd: DiskManager.cpp:(.text+0x9ee): undefined reference to std::filesystem::status(std::filesystem::__cxx11::path const&)' /usr/bin/ld.bfd: DiskManager.cpp:(.text+0xa03): undefined reference to std::filesystem::create_directories(std::filesystem::__cxx11::path const&)’
/usr/bin/ld.bfd: DiskManager.cpp:(.text+0xa7a): undefined reference to std::filesystem::__cxx11::path::_M_split_cmpts()' /usr/bin/ld.bfd: DiskManager.cpp:(.text+0xa8a): undefined reference to std::filesystem::canonical(std::filesystem::__cxx11::path const&)’
/usr/bin/ld.bfd: DiskManager.cpp:(.text+0xaec): undefined reference to std::filesystem::space(std::filesystem::__cxx11::path const&)' /usr/bin/ld.bfd: DiskManager.cpp:(.text+0xb70): undefined reference to std::filesystem::__cxx11::path::_M_split_cmpts()’
/usr/bin/ld.bfd: DiskManager.cpp:(.text+0xb94): undefined reference to std::filesystem::__cxx11::path::_M_split_cmpts()' /usr/bin/ld.bfd: DiskManager.cpp:(.text+0xd09): undefined reference to std::filesystem::status(std::filesystem::__cxx11::path const&)’
/usr/bin/ld.bfd: …/kvstore/CMakeFiles/disk_man_obj.dir/DiskManager.cpp.o: in function nebula::kvstore::DiskManager::addPartToPath(int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': DiskManager.cpp:(.text+0xfbf): undefined reference to std::filesystem::__cxx11::path::_M_split_cmpts()’
/usr/bin/ld.bfd: DiskManager.cpp:(.text+0xfd1): undefined reference to std::filesystem::canonical(std::filesystem::__cxx11::path const&)' /usr/bin/ld.bfd: DiskManager.cpp:(.text+0x103e): undefined reference to std::filesystem::__cxx11::path::parent_path() const’
/usr/bin/ld.bfd: DiskManager.cpp:(.text+0x1050): undefined reference to std::filesystem::__cxx11::path::parent_path() const' /usr/bin/ld.bfd: ../kvstore/CMakeFiles/disk_man_obj.dir/DiskManager.cpp.o: in function nebula::kvstore::DiskManager::removePartFromPath(int, int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’:
DiskManager.cpp:(.text+0x1471): undefined reference to std::filesystem::__cxx11::path::_M_split_cmpts()' /usr/bin/ld.bfd: DiskManager.cpp:(.text+0x1483): undefined reference to std::filesystem::canonical(std::filesystem::__cxx11::path const&)’
/usr/bin/ld.bfd: DiskManager.cpp:(.text+0x14ee): undefined reference to std::filesystem::__cxx11::path::parent_path() const' /usr/bin/ld.bfd: DiskManager.cpp:(.text+0x1500): undefined reference to std::filesystem::__cxx11::path::parent_path() const’
/usr/bin/ld.bfd: …/kvstore/CMakeFiles/disk_man_obj.dir/DiskManager.cpp.o: in function void std::vector<std::filesystem::__cxx11::path, std::allocator<std::filesystem::__cxx11::path> >::_M_realloc_insert<std::filesystem::__cxx11::path>(__gnu_cxx::__normal_iterator<std::filesystem::__cxx11::path*, std::vector<std::filesystem::__cxx11::path, std::allocator<std::filesystem::__cxx11::path> > >, std::filesystem::__cxx11::path&&)': DiskManager.cpp:(.text._ZNSt6vectorINSt10filesystem7__cxx114pathESaIS2_EE17_M_realloc_insertIJS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_[_ZNSt6vectorINSt10filesystem7__cxx114pathESaIS2_EE17_M_realloc_insertIJS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_]+0xc2): undefined reference to std::filesystem::__cxx11::path::_M_split_cmpts()’
/usr/bin/ld.bfd: DiskManager.cpp:(.text.ZNSt6vectorINSt10filesystem7__cxx114pathESaIS2_EE17_M_realloc_insertIJS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT[ZNSt6vectorINSt10filesystem7__cxx114pathESaIS2_EE17_M_realloc_insertIJS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT]+0xd8): undefined reference to std::filesystem::__cxx11::path::_M_split_cmpts()' /usr/bin/ld.bfd: DiskManager.cpp:(.text._ZNSt6vectorINSt10filesystem7__cxx114pathESaIS2_EE17_M_realloc_insertIJS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_[_ZNSt6vectorINSt10filesystem7__cxx114pathESaIS2_EE17_M_realloc_insertIJS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_]+0x15a): undefined reference to std::filesystem::__cxx11::path::_M_split_cmpts()’
/usr/bin/ld.bfd: DiskManager.cpp:(.text.ZNSt6vectorINSt10filesystem7__cxx114pathESaIS2_EE17_M_realloc_insertIJS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT[ZNSt6vectorINSt10filesystem7__cxx114pathESaIS2_EE17_M_realloc_insertIJS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT]+0x171): undefined reference to std::filesystem::__cxx11::path::_M_split_cmpts()' /usr/bin/ld.bfd: DiskManager.cpp:(.text._ZNSt6vectorINSt10filesystem7__cxx114pathESaIS2_EE17_M_realloc_insertIJS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_[_ZNSt6vectorINSt10filesystem7__cxx114pathESaIS2_EE17_M_realloc_insertIJS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_]+0x239): undefined reference to std::filesystem::__cxx11::path::_M_split_cmpts()’
/usr/bin/ld.bfd: …/kvstore/CMakeFiles/disk_man_obj.dir/DiskManager.cpp.o:DiskManager.cpp:(.text.ZNSt6vectorINSt10filesystem7__cxx114pathESaIS2_EE17_M_realloc_insertIJS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT[ZNSt6vectorINSt10filesystem7__cxx114pathESaIS2_EE17_M_realloc_insertIJS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT]+0x250): more undefined references to std::filesystem::__cxx11::path::_M_split_cmpts()' follow /usr/bin/ld.bfd: ../kvstore/CMakeFiles/disk_man_obj.dir/DiskManager.cpp.o:(.gcc_except_table+0x1c4): undefined reference to typeinfo for std::filesystem::__cxx11::filesystem_error’
/usr/bin/ld.bfd: …/kvstore/CMakeFiles/disk_man_obj.dir/DiskManager.cpp.o:(.gcc_except_table+0x1e0): undefined reference to typeinfo for std::filesystem::__cxx11::filesystem_error' /usr/bin/ld.bfd: ../kvstore/CMakeFiles/disk_man_obj.dir/DiskManager.cpp.o:(.gcc_except_table+0x278): undefined reference to typeinfo for std::filesystem::__cxx11::filesystem_error’
/usr/bin/ld.bfd: …/kvstore/CMakeFiles/disk_man_obj.dir/DiskManager.cpp.o:(.gcc_except_table+0x294): undefined reference to typeinfo for std::filesystem::__cxx11::filesystem_error' /usr/bin/ld.bfd: ../kvstore/CMakeFiles/disk_man_obj.dir/DiskManager.cpp.o:(.gcc_except_table+0x2e4): undefined reference to typeinfo for std::filesystem::__cxx11::filesystem_error’
/usr/bin/ld.bfd: …/kvstore/CMakeFiles/disk_man_obj.dir/DiskManager.cpp.o:(.gcc_except_table+0x300): more undefined references to `typeinfo for std::filesystem::__cxx11::filesystem_error’ follow
collect2: error: ld returned 1 exit status
make[5]: *** [src/daemons/CMakeFiles/nebula-storaged.dir/build.make:506:bin/nebula-storaged] 错误 1
make[4]: *** [CMakeFiles/Makefile2:5280:src/daemons/CMakeFiles/nebula-storaged.dir/all] 错误 2
make[3]: *** [Makefile:152:all] 错误 2
make[2]: *** [CMakeFiles/storage_project.dir/build.make:57:CMakeFiles/storage_project] 错误 2
make[1]: *** [CMakeFiles/Makefile2:399:CMakeFiles/storage_project.dir/all] 错误 2
make: *** [Makefile:130:all] 错误 2

第一,你将执行 cmake 过程的输出完整贴出来,太长了,你可以用附件上传的方式保存到文件后上传。
第二,你执行cmake的时候加上 -DENABLE_MODULE_UPDATE=ON,这样就会自动帮你更新common和storage的代码,但是nebula-graph需要你手动更新

浙ICP备20010487号