在centos7,源码编译安装,编译过程中报错

提问参考模版:

  • nebula 版本:

  • 部署方式(单机 )

  • 是否为线上版本:Y

  • 硬件信息

    • 磁盘( 30g SSD)
    • CPU2*2核、内存信息4g
  • 问题的具体描述

`[root@bogon build]# cmake -DENABLE_BUILD_STORAGE=on -DENABLE_TESTING=OFF -DCMAKE_BUILD_TYPE=Release ..`
>>>> Options of Nebula Graph <<<<
-- ENABLE_ASAN                     : OFF (Build with AddressSanitizer)
-- ENABLE_BUILD_STORAGE            : on (Whether to build storage)
-- ENABLE_CCACHE                   : ON (Use ccache to speed up compiling)
-- ENABLE_CLANG_TIDY               : OFF (Enable clang-tidy if present)
-- ENABLE_COMPRESSED_DEBUG_INFO    : ON (Compress debug info to reduce binary size)
-- ENABLE_COVERAGE                 : OFF (Build with coverage report)
-- ENABLE_FRAME_POINTER            : OFF (Build with frame pointer)
-- ENABLE_FUZZY_TESTING            : OFF (Enable Fuzzy tests)
-- ENABLE_GDB_SCRIPT_SECTION       : OFF (Add .debug_gdb_scripts section)
-- ENABLE_JEMALLOC                 : ON (Use jemalloc as memory allocator)
-- ENABLE_MODULE_UPDATE            : OFF (Automatically update module)
-- ENABLE_PACK_ONE                 : ON (Whether to package into one)
-- ENABLE_PIC                      : OFF (Build with -fPIC)
-- ENABLE_STATIC_ASAN              : OFF (Statically link against libasan)
-- ENABLE_STATIC_UBSAN             : OFF (Statically link against libubsan)
-- ENABLE_STRICT_ALIASING          : OFF (Build with -fstrict-aliasing)
-- ENABLE_TESTING                  : OFF (Build unit tests)
-- ENABLE_TSAN                     : OFF (Build with ThreadSanitizer)
-- ENABLE_UBSAN                    : OFF (Build with UndefinedBehaviourSanitizer)
-- ENABLE_VERBOSE_BISON            : OFF (Enable Bison to report state)
-- ENABLE_WERROR                   : ON (Regard warnings as errors)
-- CMAKE_BUILD_TYPE                : Release (Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel ...)
-- CMAKE_INSTALL_PREFIX            : /usr/local/nebula (Install path prefix, prepended onto install directories.)
-- CMAKE_CXX_STANDARD              : 17
-- CMAKE_CXX_COMPILER              : /opt/vesoft/toolset/gcc/7.5.0/bin/g++ (CXX compiler)
-- CMAKE_CXX_COMPILER_ID           : GNU
-- NEBULA_USE_LINKER               : bfd
-- CCACHE                              : Enabled but not found
>>>> Configuring third party for 'Nebula Graph' <<<<
-- NEBULA_THIRDPARTY_ROOT          : /root/nebula-graph/build/third-party/install
-- Build info of nebula third party:
Package         : Nebula Third Party
Version         : 2.0
Date            : Mon Jun 28 13:19:14 UTC 2021
glibc           : 2.17
Arch            : x86_64
Compiler        : GCC 7.5.0
C++ ABI         : 11
Vendor          : VEsoft Inc.

预先格式化的文本

-- CMAKE_INCLUDE_PATH              : /root/nebula-graph/build/third-party/install/include
-- CMAKE_LIBRARY_PATH              : /root/nebula-graph/build/third-party/install/lib64;/root/nebula-graph/build/third-party/install/lib
-- CMAKE_PROGRAM_PATH              : /root/nebula-graph/build/third-party/install/bin
-- GLIBC_VERSION                   : 2.17

-- found krb5-config here /root/nebula-graph/build/third-party/install/bin/krb5-config
-- Found kerberos 5 headers: /root/nebula-graph/build/third-party/install/include
-- Found kerberos 5 libs:    /root/nebula-graph/build/third-party/install/lib/libgssapi_krb5.a;/root/nebula-graph/build/third-party/install/lib/libkrb5.a;/root/nebula-graph/build/third-party/install/lib/libk5crypto.a;/root/nebula-graph/build/third-party/install/lib/libcom_err.a;/root/nebula-graph/build/third-party/install/lib/libkrb5support.a
>>>> Configuring third party for 'Nebula Graph' done <<<<
-- Create the pre-commit hook
-- Creating pre-commit hook done
>>>> Configuring Nebula Common <<<<
>>>> Options of Nebula Common <<<<
-- ENABLE_ASAN                     : OFF (Build with AddressSanitizer)
-- ENABLE_CCACHE                   : ON (Use ccache to speed up compiling)
-- ENABLE_CLANG_TIDY               : OFF (Enable clang-tidy if present)
-- ENABLE_COMPRESSED_DEBUG_INFO    : ON (Compress debug info to reduce binary size)
-- ENABLE_COVERAGE                 : OFF (Build with coverage report)
-- ENABLE_FRAME_POINTER            : OFF (Build with frame pointer)
-- ENABLE_FUZZY_TESTING            : OFF (Enable Fuzzy tests)
-- ENABLE_GDB_SCRIPT_SECTION       : OFF (Add .debug_gdb_scripts section)
-- ENABLE_JEMALLOC                 : ON (Use jemalloc as memory allocator)
-- ENABLE_PIC                      : OFF (Build with -fPIC)
-- ENABLE_STATIC_ASAN              : OFF (Statically link against libasan)
-- ENABLE_STATIC_UBSAN             : OFF (Statically link against libubsan)
-- ENABLE_STRICT_ALIASING          : OFF (Build with -fstrict-aliasing)
-- ENABLE_TESTING                  : OFF (Build unit tests)
-- ENABLE_TSAN                     : OFF (Build with ThreadSanitizer)
-- ENABLE_UBSAN                    : OFF (Build with UndefinedBehaviourSanitizer)
-- ENABLE_WERROR                   : ON (Regard warnings as errors)
-- Set D_GLIBCXX_USE_CXX11_ABI to 1
-- CMAKE_BUILD_TYPE                : Release (Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel ...)
-- CMAKE_INSTALL_PREFIX            : /usr/local/nebula (Install path prefix, prepended onto install directories.)
-- CMAKE_CXX_STANDARD              : 17
-- CMAKE_CXX_COMPILER              : /opt/vesoft/toolset/gcc/7.5.0/bin/g++
-- CMAKE_CXX_COMPILER_ID           : GNU
-- NEBULA_USE_LINKER               : bfd
-- CCACHE                              : Enabled but not found
-- NEBULA_THIRDPARTY_ROOT          : /root/nebula-graph/build/third-party/install
-- Build info of nebula third party:
Package         : Nebula Third Party
Version         : 2.0
Date            : Mon Jun 28 13:19:14 UTC 2021
glibc           : 2.17
Arch            : x86_64
Compiler        : GCC 7.5.0
C++ ABI         : 11
Vendor          : VEsoft Inc.

-- CMAKE_INCLUDE_PATH              : /root/nebula-graph/build/third-party/install/include
-- CMAKE_LIBRARY_PATH              : /root/nebula-graph/build/third-party/install/lib64;/root/nebula-graph/build/third-party/install/lib
-- CMAKE_PROGRAM_PATH              : /root/nebula-graph/build/third-party/install/bin
>>>> Configuring third party for 'Nebula Common' <<<<
-- GLIBC_VERSION                   : 2.17

-- found krb5-config here /root/nebula-graph/build/third-party/install/bin/krb5-config
-- Found kerberos 5 headers: /root/nebula-graph/build/third-party/install/include
-- Found kerberos 5 libs:    /root/nebula-graph/build/third-party/install/lib/libgssapi_krb5.a;/root/nebula-graph/build/third-party/install/lib/libkrb5.a;/root/nebula-graph/build/third-party/install/lib/libk5crypto.a;/root/nebula-graph/build/third-party/install/lib/libcom_err.a;/root/nebula-graph/build/third-party/install/lib/libkrb5support.a
-- Create the pre-commit hook
>>>> Configuring third party for 'Nebula Common' done <<<<
-- Creating pre-commit hook done
-- Configuring done
-- Generating done
-- Build files have been written to: /root/nebula-graph/build/modules/common
>>>> Configuring Nebula Common done <<<<
>>>> Configuring Nebula Storage <<<<
-- ENABLE_PACK_ONE         : ON
-- ENABLE_MODULE_UPDATE    : OFF
-- NEBULA_COMMON_SOURCE_DIR: /root/nebula-graph/modules/common
>>>> Options of Nebula Storage <<<<
-- ENABLE_ASAN                     : OFF (Build with AddressSanitizer)
-- ENABLE_CCACHE                   : ON (Use ccache to speed up compiling)
-- ENABLE_CLANG_TIDY               : OFF (Enable clang-tidy if present)
-- ENABLE_COMPRESSED_DEBUG_INFO    : ON (Compress debug info to reduce binary size)
-- ENABLE_COVERAGE                 : OFF (Build with coverage report)
-- ENABLE_FRAME_POINTER            : OFF (Build with frame pointer)
-- ENABLE_FUZZY_TESTING            : OFF (Enable Fuzzy tests)
-- ENABLE_GDB_SCRIPT_SECTION       : OFF (Add .debug_gdb_scripts section)
-- ENABLE_JEMALLOC                 : ON (Use jemalloc as memory allocator)
-- ENABLE_MODULE_UPDATE            : OFF (Automatically update module)
-- ENABLE_PACK_ONE                 : ON (Whether to package into one)
-- ENABLE_PIC                      : OFF (Build with -fPIC)
-- ENABLE_STATIC_ASAN              : OFF (Statically link against libasan)
-- ENABLE_STATIC_UBSAN             : OFF (Statically link against libubsan)
-- ENABLE_STRICT_ALIASING          : OFF (Build with -fstrict-aliasing)
-- ENABLE_TESTING                  : OFF (Build unit tests)
-- ENABLE_TSAN                     : OFF (Build with ThreadSanitizer)
-- ENABLE_UBSAN                    : OFF (Build with UndefinedBehaviourSanitizer)
-- ENABLE_WERROR                   : ON (Regard warnings as errors)
-- CMAKE_BUILD_TYPE                : Release (Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel ...)
-- CMAKE_INSTALL_PREFIX            : /usr/local/nebula (Install path prefix, prepended onto install directories.)
-- CMAKE_CXX_STANDARD              : 17
-- CMAKE_CXX_COMPILER              : /opt/vesoft/toolset/gcc/7.5.0/bin/g++
-- CMAKE_CXX_COMPILER_ID           : GNU
-- NEBULA_USE_LINKER               : bfd
-- CCACHE                              : Enabled but not found
-- NEBULA_THIRDPARTY_ROOT          : /root/nebula-graph/build/third-party/install
-- Build info of nebula third party:
Package         : Nebula Third Party
Version         : 2.0
Date            : Mon Jun 28 13:19:14 UTC 2021
glibc           : 2.17
Arch            : x86_64
Compiler        : GCC 7.5.0
C++ ABI         : 11
Vendor          : VEsoft Inc.

-- CMAKE_INCLUDE_PATH              : /root/nebula-graph/build/third-party/install/include
-- CMAKE_LIBRARY_PATH              : /root/nebula-graph/build/third-party/install/lib64;/root/nebula-graph/build/third-party/install/lib
-- CMAKE_PROGRAM_PATH              : /root/nebula-graph/build/third-party/install/bin
>>>> Configuring third party for 'Nebula Storage' <<<<
-- GLIBC_VERSION                   : 2.17

-- found krb5-config here /root/nebula-graph/build/third-party/install/bin/krb5-config
-- Found kerberos 5 headers: /root/nebula-graph/build/third-party/install/include
-- Found kerberos 5 libs:    /root/nebula-graph/build/third-party/install/lib/libgssapi_krb5.a;/root/nebula-graph/build/third-party/install/lib/libkrb5.a;/root/nebula-graph/build/third-party/install/lib/libk5crypto.a;/root/nebula-graph/build/third-party/install/lib/libcom_err.a;/root/nebula-graph/build/third-party/install/lib/libkrb5support.a
>>>> Configuring third party for 'Nebula Storage' done <<<<
-- Create the pre-commit hook
-- Creating pre-commit hook done
>>>> Configuring Nebula Common <<<<
>>>> Options of Nebula Common <<<<
-- ENABLE_ASAN                     : OFF (Build with AddressSanitizer)
-- ENABLE_CCACHE                   : ON (Use ccache to speed up compiling)
-- ENABLE_CLANG_TIDY               : OFF (Enable clang-tidy if present)
-- ENABLE_COMPRESSED_DEBUG_INFO    : ON (Compress debug info to reduce binary size)
-- ENABLE_COVERAGE                 : OFF (Build with coverage report)
-- ENABLE_FRAME_POINTER            : OFF (Build with frame pointer)
-- ENABLE_FUZZY_TESTING            : OFF (Enable Fuzzy tests)
-- ENABLE_GDB_SCRIPT_SECTION       : OFF (Add .debug_gdb_scripts section)
-- ENABLE_JEMALLOC                 : ON (Use jemalloc as memory allocator)
-- ENABLE_PIC                      : OFF (Build with -fPIC)
-- ENABLE_STATIC_ASAN              : OFF (Statically link against libasan)
-- ENABLE_STATIC_UBSAN             : OFF (Statically link against libubsan)
-- ENABLE_STRICT_ALIASING          : OFF (Build with -fstrict-aliasing)
-- ENABLE_TESTING                  : OFF (Build unit tests)
-- ENABLE_TSAN                     : OFF (Build with ThreadSanitizer)
-- ENABLE_UBSAN                    : OFF (Build with UndefinedBehaviourSanitizer)
-- ENABLE_WERROR                   : ON (Regard warnings as errors)
-- Set D_GLIBCXX_USE_CXX11_ABI to 1
-- CMAKE_BUILD_TYPE                : Release (Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel ...)
-- CMAKE_INSTALL_PREFIX            : /usr/local/nebula (Install path prefix, prepended onto install directories.)
-- CMAKE_CXX_STANDARD              : 17
-- CMAKE_CXX_COMPILER              : /opt/vesoft/toolset/gcc/7.5.0/bin/g++
-- CMAKE_CXX_COMPILER_ID           : GNU
-- NEBULA_USE_LINKER               : bfd
-- CCACHE                              : Enabled but not found
-- NEBULA_THIRDPARTY_ROOT          : /root/nebula-graph/build/third-party/install
-- Build info of nebula third party:
Package         : Nebula Third Party
Version         : 2.0
Date            : Mon Jun 28 13:19:14 UTC 2021
glibc           : 2.17
Arch            : x86_64
Compiler        : GCC 7.5.0
C++ ABI         : 11
Vendor          : VEsoft Inc.

-- CMAKE_INCLUDE_PATH              : /root/nebula-graph/build/third-party/install/include
-- CMAKE_LIBRARY_PATH              : /root/nebula-graph/build/third-party/install/lib64;/root/nebula-graph/build/third-party/install/lib
-- CMAKE_PROGRAM_PATH              : /root/nebula-graph/build/third-party/install/bin
>>>> Configuring third party for 'Nebula Common' <<<<
-- GLIBC_VERSION                   : 2.17

-- found krb5-config here /root/nebula-graph/build/third-party/install/bin/krb5-config
-- Found kerberos 5 headers: /root/nebula-graph/build/third-party/install/include
-- Found kerberos 5 libs:    /root/nebula-graph/build/third-party/install/lib/libgssapi_krb5.a;/root/nebula-graph/build/third-party/install/lib/libkrb5.a;/root/nebula-graph/build/third-party/install/lib/libk5crypto.a;/root/nebula-graph/build/third-party/install/lib/libcom_err.a;/root/nebula-graph/build/third-party/install/lib/libkrb5support.a
>>>> Configuring third party for 'Nebula Common' done <<<<
-- Create the pre-commit hook
-- Creating pre-commit hook done
-- Configuring done
-- Generating done
-- Build files have been written to: /root/nebula-graph/build/modules/common
>>>> Configuring Nebula Common done <<<<
-- HOST_SYSTEM_VER is el7
-- CPACK_GENERATOR is RPM
-- Configuring done
-- Generating done
-- Build files have been written to: /root/nebula-graph/build/modules/storage
>>>> Configuring Nebula Storage done <<<<
-- Configuring done
-- Generating done
-- Build files have been written to: /root/nebula-graph/build
[root@bogon build]# make -j2
[  1%] Built target parser_target
[  0%] Built target graph_thrift_generator
[  2%] Built target meta_thrift_generator
[  4%] Built target storage_thrift_generator
[  4%] Built target raftex_thrift_generator
[  4%] Built target common_thrift_generator
Scanning dependencies of target version_obj
[  4%] Building CXX object src/common/version/CMakeFiles/version_obj.dir/Version.cpp.o
[  8%] Built target base_obj
[ 11%] Built target time_obj
[ 13%] Built target time_utils_obj
[ 15%] Built target network_obj
[ 17%] Built target thrift_obj
[ 20%] Built target fs_obj
[ 20%] Built target concurrent_obj
[ 22%] Built target thread_obj
[ 22%] Built target process_obj
[ 24%] Built target hdfs_helper_obj
[ 24%] Built target http_client_obj
[ 24%] Built target stats_obj
[ 24%] Built target charset_obj
[ 24%] Built target nebula_algo_obj
[ 24%] Built target encryption_obj
[ 31%] Built target meta_thrift_obj
[ 31%] Built target version_obj
[ 37%] Built target graph_thrift_obj
[ 51%] Built target storage_thrift_obj
[ 55%] Built target common_thrift_obj
[ 62%] Built target raftex_thrift_obj
[ 66%] Built target datatypes_obj
[ 66%] Built target ws_common_obj
[ 66%] Built target conf_obj
[ 73%] Built target ws_obj
[ 77%] Built target meta_obj
[ 77%] Built target meta_client_obj
[ 77%] Built target file_based_cluster_id_man_obj
[ 77%] Built target internal_storage_client_obj
[ 77%] Built target storage_client_base_obj
[ 97%] Built target expression_obj
[100%] Built target graph_storage_client_obj
[100%] Built target general_storage_client_obj
[100%] Built target function_manager_obj
[100%] Built target graph_obj
[100%] Built target agg_function_manager_obj
[100%] Built target ft_es_graph_adapter_obj
[100%] Built target ft_es_storage_adapter_obj
[  1%] Built target common_project
[  1%] Built target stats_def_obj
[  0%] Built target graph_thrift_generator
[  2%] Built target meta_thrift_generator
[  1%] Building CXX object src/service/CMakeFiles/service_obj.dir/GraphService.cpp.o
[  4%] Built target storage_thrift_generator
[  4%] Built target raftex_thrift_generator
[  4%] Built target common_thrift_generator
[  4%] Built target version_obj
[  8%] Built target base_obj
[ 11%] Built target time_obj
[ 13%] Built target time_utils_obj
[ 15%] Built target network_obj
[ 17%] Built target thrift_obj
[ 20%] Built target fs_obj
[ 20%] Built target concurrent_obj
[ 22%] Built target thread_obj
[ 22%] Built target process_obj
[ 24%] Built target hdfs_helper_obj
[ 24%] Built target http_client_obj
[ 24%] Built target stats_obj
[ 24%] Built target charset_obj
[ 24%] Built target nebula_algo_obj
[ 24%] Built target encryption_obj
[ 31%] Built target meta_thrift_obj
[ 44%] Built target storage_thrift_obj
[ 51%] Built target graph_thrift_obj
[ 55%] Built target common_thrift_obj
[ 62%] Built target raftex_thrift_obj
[ 66%] Built target datatypes_obj
[ 73%] Built target ws_obj
[ 73%] Built target ws_common_obj
[ 73%] Built target conf_obj
[ 77%] Built target meta_obj
[ 97%] Built target expression_obj
[ 97%] Built target meta_client_obj
[ 97%] Built target file_based_cluster_id_man_obj
[ 97%] Built target internal_storage_client_obj
[ 97%] Built target storage_client_base_obj
[100%] Built target graph_storage_client_obj
[100%] Built target general_storage_client_obj
[100%] Built target function_manager_obj
[100%] Built target agg_function_manager_obj
[100%] Built target graph_obj
[100%] Built target ft_es_graph_adapter_obj
[100%] Built target ft_es_storage_adapter_obj
[  0%] Built target common_project
[  0%] Built target keyutils_obj
[  1%] Built target codec_obj
[  3%] Built target disk_man_obj
[  9%] Built target kvstore_obj
[ 11%] Built target raftex_obj
[ 13%] Built target wal_obj
[ 13%] Built target meta_http_handler
[ 56%] Built target meta_service_handler
[ 60%] Built target old_meta_thrift_obj
[ 62%] Built target storage_transaction_executor
[ 64%] Built target storage_server
[ 72%] Built target storage_admin_service_handler
[ 74%] Built target storage_common_obj
[ 74%] Built target internal_storage_service_handler
[ 76%] Built target storage_http_handler
[ 84%] Built target graph_storage_service_handler
[ 86%] Built target general_storage_service_handler
[ 88%] Built target mock_obj
[ 88%] Linking CXX executable ../../bin/nebula-storaged
/root/nebula-graph/src/service/GraphService.cpp: In member function 'virtual folly::Future<nebula::AuthResponse> nebula::graph::GraphService::future_authenticate(const string&, const string&)':
/root/nebula-graph/src/service/GraphService.cpp:32:39: error: 'apache::thrift::Cpp2RequestContext* apache::thrift::ServerInterface::getConnectionContext() const' is deprecated: Replaced by getRequestContext [-Werror=deprecated-declarations]
     auto *peer = getConnectionContext()->getPeerAddress();
                                       ^
In file included from /root/nebula-graph/build/third-party/install/include/thrift/lib/cpp2/GeneratedCodeHelper.h:31:0,
                 from /root/nebula-graph/modules/common/src/common/datatypes/DateOps.inl:12,
                 from /root/nebula-graph/build/modules/common/src/common/interface/gen-cpp2/common_types.h:13,
                 from /root/nebula-graph/build/modules/common/src/common/interface/gen-cpp2/storage_types.h:12,
                 from /root/nebula-graph/build/modules/common/src/common/interface/gen-cpp2/GraphStorageServiceAsyncClient.h:11,
                 from /root/nebula-graph/modules/common/src/common/clients/storage/GraphStorageClient.h:12,
                 from /root/nebula-graph/src/service/GraphService.cpp:10:
/root/nebula-graph/build/third-party/install/include/thrift/lib/cpp2/async/AsyncProcessor.h:291:3: note: declared here
   getConnectionContext() const {
   ^~~~~~~~~~~~~~~~~~~~
/root/nebula-graph/src/service/GraphService.cpp: In member function 'const char* nebula::graph::GraphService::getErrorStr(nebula::ErrorCode)':
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_LEADER_CHANGED' not handled in switch [-Werror=switch]
     switch (result) {
            ^
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_SPACE_NOT_FOUND' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_TAG_NOT_FOUND' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_EDGE_NOT_FOUND' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_INDEX_NOT_FOUND' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_EDGE_PROP_NOT_FOUND' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_TAG_PROP_NOT_FOUND' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_ROLE_NOT_FOUND' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_CONFIG_NOT_FOUND' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_GROUP_NOT_FOUND' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_ZONE_NOT_FOUND' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_LISTENER_NOT_FOUND' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_PART_NOT_FOUND' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_KEY_NOT_FOUND' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_BACKUP_FAILED' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_BACKUP_EMPTY_TABLE' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_BACKUP_TABLE_FAILED' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_PARTIAL_RESULT' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_REBUILD_INDEX_FAILED' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_INVALID_PASSWORD' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_FAILED_GET_ABS_PATH' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_NO_HOSTS' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_EXISTED' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_INVALID_HOST' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_UNSUPPORTED' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_NOT_DROP' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_BALANCER_RUNNING' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_CONFIG_IMMUTABLE' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_CONFLICT' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_INVALID_PARM' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_WRONGCLUSTER' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_STORE_FAILURE' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_STORE_SEGMENT_ILLEGAL' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_BAD_BALANCE_PLAN' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_BALANCED' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_NO_RUNNING_BALANCE_PLAN' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_NO_VALID_HOST' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_CORRUPTTED_BALANCE_PLAN' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_NO_INVALID_BALANCE_PLAN' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_IMPROPER_ROLE' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_INVALID_PARTITION_NUM' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_INVALID_REPLICA_FACTOR' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_INVALID_CHARSET' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_INVALID_COLLATE' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_CHARSET_COLLATE_NOT_MATCH' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_SNAPSHOT_FAILURE' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_BLOCK_WRITE_FAILURE' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_REBUILD_INDEX_FAILURE' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_INDEX_WITH_TTL' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_ADD_JOB_FAILURE' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_STOP_JOB_FAILURE' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_SAVE_JOB_FAILURE' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_BALANCER_FAILURE' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_JOB_NOT_FINISHED' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_TASK_REPORT_OUT_DATE' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_INVALID_JOB' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_BACKUP_BUILDING_INDEX' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_BACKUP_SPACE_NOT_FOUND' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_RESTORE_FAILURE' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_SESSION_NOT_FOUND' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_LIST_CLUSTER_FAILURE' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_LIST_CLUSTER_GET_ABS_PATH_FAILURE' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_GET_META_DIR_FAILURE' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_QUERY_NOT_FOUND' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_CONSENSUS_ERROR' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_KEY_HAS_EXISTS' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_DATA_TYPE_MISMATCH' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_INVALID_FIELD_VALUE' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_INVALID_OPERATION' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_NOT_NULLABLE' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_FIELD_UNSET' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_OUT_OF_RANGE' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_ATOMIC_OP_FAILED' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_DATA_CONFLICT_ERROR' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_WRITE_STALLED' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_IMPROPER_DATA_TYPE' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_INVALID_SPACEVIDLEN' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_INVALID_FILTER' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_INVALID_UPDATER' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_INVALID_STORE' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_INVALID_PEER' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_RETRY_EXHAUSTED' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_TRANSFER_LEADER_FAILED' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_INVALID_STAT_TYPE' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_INVALID_VID' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_NO_TRANSFORMED' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_LOAD_META_FAILED' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_FAILED_TO_CHECKPOINT' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_CHECKPOINT_BLOCKED' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_FILTER_OUT' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_INVALID_DATA' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_MUTATE_EDGE_CONFLICT' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_MUTATE_TAG_CONFLICT' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_OUTDATED_LOCK' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_INVALID_TASK_PARA' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_USER_CANCEL' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_TASK_EXECUTION_FAILED' not handled in switch [-Werror=switch]
/root/nebula-graph/src/service/GraphService.cpp:96:12: error: enumeration value 'E_UNKNOWN' not handled in switch [-Werror=switch]
[ 90%] Built target nebula-storaged
[ 90%] Linking CXX executable ../../../bin/storage_integrity
[ 92%] Built target storage_integrity
[ 92%] Linking CXX executable ../../../bin/storage_perf
cc1plus: all warnings being treated as errors
make[2]: *** [src/service/CMakeFiles/service_obj.dir/GraphService.cpp.o] 错误 1
make[1]: *** [src/service/CMakeFiles/service_obj.dir/all] 错误 2
make[1]: *** 正在等待未完成的任务....
[ 92%] Linking CXX executable ../../../bin/meta_dump
[ 92%] Built target storage_perf
[ 92%] Linking CXX executable ../../../bin/db_dump
[ 92%] Built target meta_dump
[ 92%] Linking CXX executable ../../../bin/db_upgrader
[ 94%] Built target db_dump
[ 94%] Built target meta_version_man_obj
[ 96%] Built target meta_data_upgrade_obj
[ 96%] Linking CXX executable ../../bin/nebula-metad
[ 98%] Built target db_upgrader
[100%] Built target nebula-metad
[  1%] Built target storage_project
make: *** [all] 错误 2

不懂这个问题怎么解决

是在vw虚拟机中进行编译安装的

你要看文档里面这一项说明呀


这个指令下载的不是新的吗,如果是最新的,我不是就应该按下图中的命令吗?

你克隆的时候前面不是加-b v2.0.1,说明nebula-graph用的是v2.0.1的分支。nebula-graph这个repo会去拉取nebula-common和nebula-storage,nebula-common和nebula-storage就需要和nebula-graph保持分支一致,你执行的cmake没有指定分支,那么nebula-common和nebula-storage用的就是master的代码。所以你需要按照上图指定nebula-common和nebula-storage的分支,假如你是想用最新的代码,那你克隆nebula-graph的时候就不要加 -b v2.0.1


您看一下这个文档的意思,“如果需要安装最新版的开发代码,就执行如下命令…”;
所以按照您所说的意思是,文档这个地方写错了?

文档写的最新版本呀,我说的是最新代码,文档说的没有问题,最新版本是v2.0.1,它就是最新发布的版本,但是它不是最新的代码。不过我看他后面的描述也是用的最新版本代码,那里就是描述错的。我和文档同学说下,让他们改下。

如果解决我这个问题的话,需要执行哪个代码,麻烦您贴出来给我看看。
我是按文档输入的命令。

首先你是要用什么版本的服务端代码。master还是2.0.1的


这个指令下载下来的是哪个,用的就是哪个。

这个用的是v2.0.1的分支,那么你cmake的命令应该是
cmake -DENABLE_BUILD_STORAGE=on -DENABLE_TESTING=OFF -DCMAKE_BUILD_TYPE=Release \ -DNEBULA_COMMON_REPO_TAG=v2.0.1 -DNEBULA_STORAGE_REPO_TAG=v2.0.1 ..

好的,我试一下!
所以,您看看这手册,是不是描述的有些问题

1 个赞

嗯嗯,文档同学改了,现在只有后面的操作

我执行完了一遍,还是报错,

你把执行cmake的所有输出保存到文件里面,上传出来

cmake.txt (35.0 KB)

你到 nebula-graph/modules/common 下面执行 git branch 结果截图下。或者你将 nebula-graph/modules/ 这个目录删除了,然后再执行下 cmake,应该是你原来下了master的common和storage,然后cmake的时候实际没有没有切到2.0.1。用的还是master的代码。

image
主分支

将 nebula-graph/modules/ 这个目录删除了,然后再执行下 cmake


直接把这个用rm指令删除,是吗

浙ICP备20010487号