debian 9 编译v1.1.0版本报错

debian 9 编译报错

版本信息:
Debian GNU/Linux 9 \n \l
cmake version 3.7.2
g++ (Nebula Graph Build) 7.5.0

编译报错

您好,请问third-party是你自己下载的吗?我本地复现了,通过wget https://oss-cdn.nebula-graph.com.cn/third-party/vesoft-third-party-x86_64-libc-2.12-gcc-7.5.0-abi-11.sh这个下载安装的third-party包是有问题的,你把 /opt/vesoft/third-party/ 这个目录手动删除下,再把build目录删除,然后重新创建build目录,重新执行cmake,这个时候会自动下载对应版本的 thrid-party。这样应该就没问题了。

我是通过git clone https://github.com/vesoft-inc/nebula.git 下载的源码
用third-party/install-gcc.sh --prefix=/opt 安装的gcc
没有单独下载third-party

你的这个方法我没太理解,删除third-party 目录,删除重建build目录,重新cmake之后报错呀
– Downloading prebuilt third party automatically…
env: ‘/test/home/innosql/nebula/third-party/install-third-party.sh’: No such file or directory

  1. nebula/third-party 这个目录不能删除,你恢复这个目录。

  2. 你看下你有没有这个目录 /opt/vesoft/third-party/

没有这个目录/opt/vesoft/third-party/

你把build目录删除,重新创建build,然后执行cmake,将执行cmake的结果截图出来。

我删除了nebula目录,重新clone了一份代码,安装了gcc third-party/install-gcc.sh --prefix=/opt,编译通过了,我之前也是这个步骤编译的,没找到之前出问题的原因。

应该是用的third-party版本不对导致的,你可以看下你以前的执行记录还在不在,看下cmake过程下载的third-party版本是否一致。我本地用libc-2.12对应的third-party就是报你那样的错误,换成libc-2.23就ok了

这是第一次失败的cmake

– NEBULA_USE_LINKER: bfd
– ENABLE_ASAN: OFF
– ENABLE_TESTING: OFF
– ENABLE_UBSAN: OFF
– ENABLE_FUZZ_TEST: OFF
– ENABLE_TSAN: OFF
– ENABLE_STATIC_ASAN : OFF
– ENABLE_STATIC_UBSAN : OFF
– ENABLE_WERROR: ON
– ENABLE_STRICT_ALIASING: OFF
– ENABLE_PCH: OFF
– ENABLE_FRAME_POINTER: ON
– CCACHE: enabled but not found
– Set macro _FORTIFY_SOURCE=2
– CMAKE_BUILD_TYPE = Release (Options are: Debug, Release, RelWithDebInfo, MinSizeRel)
– CMAKE_INSTALL_PREFIX: /home/webedit/nebula-v1.1.0-debian-9
– Downloading prebuilt third party automatically…
Downloading vesoft-third-party-x86_64-libc-2.23-gcc-7.5.0-abi-11.sh…
Nebula Third Party has been installed to /test/home/innosql/nebula/build/third-party/install
– Specified NEBULA_THIRDPARTY_ROOT: /test/home/innosql/nebula/build/third-party/install
– CMAKE_INCLUDE_PATH: /test/home/innosql/nebula/build/third-party/install/include
– CMAKE_LIBRARY_PATH: /test/home/innosql/nebula/build/third-party/install/lib64:/test/home/innosql/nebula/build/third-party/install/lib
– CMAKE_PROGRAM_PATH: /test/home/innosql/nebula/build/third-party/install/bin
– Mstch_INCLUDE_DIR = /test/home/innosql/nebula/build/third-party/install/include , Mstch_LIBRARY = /test/home/innosql/nebula/build/third-party/install/lib/libmstch.a
– Found ZLIB: /test/home/innosql/nebula/build/third-party/install/lib/libz.a (found version “1.2.11”)
– Boost version: 1.67.0
– Found OpenSSL: /test/home/innosql/nebula/build/third-party/install/lib/libssl.a;/test/home/innosql/nebula/build/third-party/install/lib/libcrypto.a (found version “1.1.1c”)
– found krb5-config here /test/home/innosql/nebula/build/third-party/install/bin/krb5-config
– Found kerberos 5 headers: /test/home/innosql/nebula/build/third-party/install/include
– Found kerberos 5 libs: /test/home/innosql/nebula/build/third-party/install/lib/libgssapi_krb5.a;/test/home/innosql/nebula/build/third-party/install/lib/libkrb5.a;/test/home/innosql/nebula/build/third-party/install/lib/libk5crypto.a;/test/home/innosql/nebula/build/third-party/install/lib/libcom_err.a;/test/home/innosql/nebula/build/third-party/install/lib/libkrb5support.a
– Found GPERF: /test/home/innosql/nebula/build/third-party/install/bin/gperf (found suitable version “3.1”, minimum required is “2.8”)
– Found Libunwind: /test/home/innosql/nebula/build/third-party/install/lib/libunwind.a
– Found BISON: /test/home/innosql/nebula/build/third-party/install/bin/bison (found suitable version “3.0.5”, minimum required is “3.0.5”)
– Found FLEX: /test/home/innosql/nebula/build/third-party/install/bin/flex (found version “2.6.4”)
– Found ncurses: /usr/include
– Looking for lzma_auto_decoder in /test/home/innosql/nebula/build/third-party/install/lib/liblzma.a
– Looking for lzma_auto_decoder in /test/home/innosql/nebula/build/third-party/install/lib/liblzma.a - found
– Looking for lzma_easy_encoder in /test/home/innosql/nebula/build/third-party/install/lib/liblzma.a
– Looking for lzma_easy_encoder in /test/home/innosql/nebula/build/third-party/install/lib/liblzma.a - found
– Looking for lzma_lzma_preset in /test/home/innosql/nebula/build/third-party/install/lib/liblzma.a
– Looking for lzma_lzma_preset in /test/home/innosql/nebula/build/third-party/install/lib/liblzma.a - found
– Found LibLZMA: /test/home/innosql/nebula/build/third-party/install/include (found version “5.2.4”)
– Glibc version is 2.24
– Create the pre-commit hook
– Creating pre-commit hook done
– ENABLE_PACK_ONE: ON
– is_one is ON
– Configuring done
– Generating done
– Build files have been written to: /test/home/innosql/nebula/build

这是第二次成功的cmake

– The C compiler identification is GNU 7.5.0
– The CXX compiler identification is GNU 7.5.0
– Check for working C compiler: /opt/vesoft/toolset/gcc/7.5.0/bin/gcc
– Check for working C compiler: /opt/vesoft/toolset/gcc/7.5.0/bin/gcc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
– Check for working CXX compiler: /opt/vesoft/toolset/gcc/7.5.0/bin/g++
– Check for working CXX compiler: /opt/vesoft/toolset/gcc/7.5.0/bin/g++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– NEBULA_USE_LINKER: bfd
– ENABLE_ASAN: OFF
– ENABLE_TESTING: OFF
– ENABLE_UBSAN: OFF
– ENABLE_FUZZ_TEST: OFF
– ENABLE_TSAN: OFF
– ENABLE_STATIC_ASAN : OFF
– ENABLE_STATIC_UBSAN : OFF
– ENABLE_WERROR: ON
– ENABLE_STRICT_ALIASING: OFF
– ENABLE_PCH: OFF
– ENABLE_FRAME_POINTER: ON
– CCACHE: enabled but not found
– Set macro _FORTIFY_SOURCE=2
– CMAKE_BUILD_TYPE = Release (Options are: Debug, Release, RelWithDebInfo, MinSizeRel)
– CMAKE_INSTALL_PREFIX: /home/webedit/nebula-v1.1.0-debian-9
– Found Git: /usr/bin/git (found version “2.11.0”)
– Downloading prebuilt third party automatically…
Downloading vesoft-third-party-x86_64-libc-2.23-gcc-7.5.0-abi-11.sh…
Nebula Third Party has been installed to /test/home/innosql/nebula/build/third-party/install
– Specified NEBULA_THIRDPARTY_ROOT: /test/home/innosql/nebula/build/third-party/install
– CMAKE_INCLUDE_PATH: /test/home/innosql/nebula/build/third-party/install/include
– CMAKE_LIBRARY_PATH: /test/home/innosql/nebula/build/third-party/install/lib64:/test/home/innosql/nebula/build/third-party/install/lib
– CMAKE_PROGRAM_PATH: /test/home/innosql/nebula/build/third-party/install/bin
– Mstch_INCLUDE_DIR = /test/home/innosql/nebula/build/third-party/install/include , Mstch_LIBRARY = /test/home/innosql/nebula/build/third-party/install/lib/libmstch.a
– Found ZLIB: /test/home/innosql/nebula/build/third-party/install/lib/libz.a (found version “1.2.11”)
– Boost version: 1.67.0
– Found OpenSSL: /test/home/innosql/nebula/build/third-party/install/lib/libssl.a;/test/home/innosql/nebula/build/third-party/install/lib/libcrypto.a (found version “1.1.1c”)
– found krb5-config here /test/home/innosql/nebula/build/third-party/install/bin/krb5-config
– Found kerberos 5 headers: /test/home/innosql/nebula/build/third-party/install/include
– Found kerberos 5 libs: /test/home/innosql/nebula/build/third-party/install/lib/libgssapi_krb5.a;/test/home/innosql/nebula/build/third-party/install/lib/libkrb5.a;/test/home/innosql/nebula/build/third-party/install/lib/libk5crypto.a;/test/home/innosql/nebula/build/third-party/install/lib/libcom_err.a;/test/home/innosql/nebula/build/third-party/install/lib/libkrb5support.a
– Found GPERF: /test/home/innosql/nebula/build/third-party/install/bin/gperf (found suitable version “3.1”, minimum required is “2.8”)
– Found Libunwind: /test/home/innosql/nebula/build/third-party/install/lib/libunwind.a
– Found BISON: /test/home/innosql/nebula/build/third-party/install/bin/bison (found suitable version “3.0.5”, minimum required is “3.0.5”)
– Found FLEX: /test/home/innosql/nebula/build/third-party/install/bin/flex (found version “2.6.4”)
– Found ncurses: /usr/include
– Looking for lzma_auto_decoder in /test/home/innosql/nebula/build/third-party/install/lib/liblzma.a
– Looking for lzma_auto_decoder in /test/home/innosql/nebula/build/third-party/install/lib/liblzma.a - found
– Looking for lzma_easy_encoder in /test/home/innosql/nebula/build/third-party/install/lib/liblzma.a
– Looking for lzma_easy_encoder in /test/home/innosql/nebula/build/third-party/install/lib/liblzma.a - found
– Looking for lzma_lzma_preset in /test/home/innosql/nebula/build/third-party/install/lib/liblzma.a
– Looking for lzma_lzma_preset in /test/home/innosql/nebula/build/third-party/install/lib/liblzma.a - found
– Found LibLZMA: /test/home/innosql/nebula/build/third-party/install/include (found version “5.2.4”)
– Glibc version is 2.24
– Create the pre-commit hook
– Creating pre-commit hook done
– ENABLE_PACK_ONE: ON
– is_one is ON
– Configuring done
– Generating done
– Build files have been written to: /test/home/innosql/nebula/build

貌似两次都是vesoft-third-party-x86_64-libc-2.23-gcc-7.5.0-abi-11.sh 啊

第一次的GCC版本打印怎么没有复制出来,在一开始的时候会打印的。你没有粘贴出来。但是找到的third-party版本是一样的,所以用的也是GCC7.5。

这是在第一次cmake之前的cmake,当时已经更新gcc版本,但是没source /opt/vesoft/toolset/gcc/7.5.0/enable

– The C compiler identification is GNU 6.3.0
– The CXX compiler identification is GNU 6.3.0
– Check for working C compiler: /usr/bin/cc
– Check for working C compiler: /usr/bin/cc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
– Check for working CXX compiler: /usr/bin/c++
– Check for working CXX compiler: /usr/bin/c++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– NEBULA_USE_LINKER: bfd
– ENABLE_ASAN: OFF
– ENABLE_TESTING: OFF
– ENABLE_UBSAN: OFF
– ENABLE_FUZZ_TEST: OFF
– ENABLE_TSAN: OFF
– ENABLE_STATIC_ASAN : OFF
– ENABLE_STATIC_UBSAN : OFF
– ENABLE_WERROR: ON
– ENABLE_STRICT_ALIASING: OFF
– ENABLE_PCH: OFF
– ENABLE_FRAME_POINTER: ON
– CCACHE: enabled but not found
– Set macro _FORTIFY_SOURCE=2
– CMAKE_BUILD_TYPE = Release (Options are: Debug, Release, RelWithDebInfo, MinSizeRel)
– CMAKE_INSTALL_PREFIX: /home/webedit/nebula-v1.1.0-debian-9
– Found Git: /usr/bin/git (found version “2.11.0”)
– Downloading prebuilt third party automatically…
Downloading vesoft-third-party-x86_64-libc-2.23-gcc–abi-11.sh…
Downloading vesoft-third-party-x86_64-libc-2.23-gcc–abi-11.sh failed
– CMAKE_INCLUDE_PATH:
– CMAKE_LIBRARY_PATH:
– CMAKE_PROGRAM_PATH:
CMake Error at cmake/FindBzip2.cmake:31 (message):
Bzip2 doesn’t exist
Call Stack (most recent call first):
CMakeLists.txt:239 (find_package)

– Configuring incomplete, errors occurred!
See also “/test/home/innosql/nebula/build/CMakeFiles/CMakeOutput.log”.

你现在编译没问题了,那再次出现再在这里反映好了,感谢你的反馈。