编译nebula-v3.0.1报错

nebula版本:v3.0.1
编译环境:centos8
相关的依赖都已经装好,编译报错(文本同截图):

[ 44%] Built target storage_stats_obj
Consolidate compiler generated dependencies of target version_obj
[ 44%] Built target version_obj
Consolidate compiler generated dependencies of target ws_common_obj
[ 44%] Built target ws_common_obj
Consolidate compiler generated dependencies of target nebula-metad
[ 44%] Linking CXX executable ../../bin/nebula-metad
collect2: fatal error: ld terminated with signal 9 [Killed]
compilation terminated.
/usr/lib/gcc/x86_64-redhat-linux/8/libstdc++.a(eh_catch.o): In function `__cxa_begin_catch':
(.text.__cxa_begin_catch+0x0): multiple definition of `__cxa_begin_catch'
/root/nebula/build/third-party/install/lib/libfolly.a(ExceptionTracerLib.cpp.o):(.text+0x2030): first defined here
/usr/lib/gcc/x86_64-redhat-linux/8/libstdc++.a(eh_catch.o): In function `__cxa_end_catch':
(.text.__cxa_end_catch+0x0): multiple definition of `__cxa_end_catch'
/root/nebula/build/third-party/install/lib/libfolly.a(ExceptionTracerLib.cpp.o):(.text+0x1e60): first defined here
/usr/lib/gcc/x86_64-redhat-linux/8/libstdc++.a(eh_ptr.o): In function `std::rethrow_exception(std::__exception_ptr::exception_ptr)':
(.text._ZSt17rethrow_exceptionNSt15__exception_ptr13exception_ptrE+0x0): multiple definition of `std::rethrow_exception(std::__exception_ptr::exception_ptr)'
/root/nebula/build/third-party/install/lib/libfolly.a(ExceptionTracerLib.cpp.o):(.text+0x1c60): first defined here
/usr/lib/gcc/x86_64-redhat-linux/8/libstdc++.a(eh_throw.o): In function `__cxa_throw':
(.text.__cxa_throw+0x0): multiple definition of `__cxa_throw'
/root/nebula/build/third-party/install/lib/libfolly.a(ExceptionTracerLib.cpp.o):(.text+0x1990): first defined here
/usr/lib/gcc/x86_64-redhat-linux/8/libstdc++.a(eh_throw.o): In function `__cxa_rethrow':
(.text.__cxa_rethrow+0x0): multiple definition of `__cxa_rethrow'
/root/nebula/build/third-party/install/lib/libfolly.a(ExceptionTracerLib.cpp.o):(.text+0x1b40): first defined here
make[2]: *** [src/daemons/CMakeFiles/nebula-metad.dir/build.make:718: bin/nebula-metad] Error 1
make[2]: *** Deleting file 'bin/nebula-metad'
make[1]: *** [CMakeFiles/Makefile2:6543: src/daemons/CMakeFiles/nebula-metad.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

c++不太了解,想开始尝试下,想问下这是什么原因引起的报错?

我搜了下这个报错信息,说是内存不足引起的。可以贴一下你的机器配置吗,CPU 核数,内存大小,磁盘类型,磁盘大小。

image
报错的时候,看着内存监控没用多少

操作系统
CentOS 8.2 64bit

你看下你的软件的版本符合要求不。:thinking: 看下文档对着比较下。

符合的,libstdc+±static libasan也安装了

我搜了下multiple definition of … first defined here错误,说是不同文件中使用了同一个变量,是否是我的libstdc++.a和libfolly.a有冲突?

:joy: 稍等哈,我喊个实施同学来瞅瞅。

建议使用nebula-gears项目中提供的编译器

George 说的 gear 仓库是这个哈 GitHub - vesoft-inc/nebula-gears: Gears for Nebula Graph 你可以试试,有问题了再来更新下帖子。

好的 感谢

此话题已在最后回复的 30 天后被自动关闭。不再允许新回复。