nebula3.1.0在源码编译中Linking CXX executable ../../bin/nebula-metad过程中产生的问题

nebula版本:3.1.0
部署方式:源码编译
环境:docker起的centos8.4的镜像
kernel版本:4.18.0-348.el8.x86_64
执行过程:
1.docker起centos8.4镜像

docker pull centos:centos8.4.2105
docker images|grep centos8.4
docker run -dit --name ocrapi --restart=always docker.io/centos:centos8.4.2105
docker ps|grep ocrapi
docker exec -it ocrapi /bin/bash

2.环境配置

cd /etc/yum.repos.d/
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
yum makecache
yum update -y
yum install -y make \
                 m4 \
                 git \
                 wget \
                 unzip \
                 xz \
                 readline-devel \
                 ncurses-devel \
                 zlib-devel \
                 gcc \
                 gcc-c++ \
                 cmake \
                 curl \
                 redhat-lsb-core \
                 bzip2
git clone --branch release-3.1 https://github.com/vesoft-inc/nebula.git
cd nebula
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/nebula -DENABLE_TESTING=OFF -DCMAKE_BUILD_TYPE=Release ..
make


因为lstdc++静态的包之前这个问题我问过,yum的源里面不能直接下载所以是按照别的帖子的方法,自己下的rpm包,具体过程如下:

wget https://vault.centos.org/centos/8/PowerTools/x86_64/os/Packages/libstdc++-static-8.5.0-4.el8_5.x86_64.rpm
yum install libstdc++-static-8.5.0-4.el8_5.x86_64.rpm


libstdc++版本如下:
image
随后再回到build目录下进行make,产生了如下问题:

能否提供third party版本?(例如编译刚开始的时候,会打印系统编译器等信息)
另外请提供libstdc的包地址,我们抽空在本地测试一下。

libstdc的包就是按照文档里准备资源通过yum下载的,只有那个静态包是wget下来的,具体地址是这个https://centos.pkgs.org/8/centos-powertools-x86_64/libstdc+±static-8.5.0-4.el8_5.x86_64.rpm.html

-- ENABLE_ASAN                     : OFF (Build with AddressSanitizer)
-- ENABLE_BREAKPAD                 : OFF (Whether to enable breakpad)
-- ENABLE_CCACHE                   : ON (Use ccache to speed up compiling)
-- ENABLE_CLANG_TIDY               : OFF (Enable clang-tidy if present)
-- ENABLE_COMPILER_LAUNCHER        : ON (Using compiler launcher if available)
-- ENABLE_COMPRESSED_DEBUG_INFO    : ON (Compress debug info to reduce binary size)
-- ENABLE_CONSOLE_COMPILATION      : OFF (Enable nebula-console compilation)
-- ENABLE_COVERAGE                 : OFF (Build with coverage report)
-- ENABLE_CREATE_GIT_HOOKS         : ON (Enable create git hooks.)
-- 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_INCLUDE_WHAT_YOU_USE     : OFF (Enable include-what-you-use find  nouse include files)
-- ENABLE_JEMALLOC                 : ON (Use jemalloc as memory allocator)
-- ENABLE_PACKAGE_TAR              : OFF (Enable package artifacts to tar.)
-- ENABLE_PACK_ONE                 : ON (Whether to package into one)
-- ENABLE_PIC                      : OFF (Build with -fPIC)
-- ENABLE_STANDALONE_VERSION       : OFF (Enable standalone version build)
-- 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              : /usr/bin/c++ (CXX compiler)
-- CMAKE_CXX_COMPILER_ID           : GNU
-- NEBULA_USE_LINKER               : bfd (Linker to be used)
CMake Warning at cmake/nebula/CompilerLauncher.cmake:28 (message):
  ccache is enabled but was not found.  Not using it
Call Stack (most recent call first):
  CMakeLists.txt:48 (include)


>>>> Configuring third party for 'Nebula Graph' <<<<
-- Downloading prebuilt third party automatically...
-- cxx_cmd: /usr/bin/c++ -D_GLIBCXX_USE_CXX11_ABI=1
Downloading vesoft-third-party-3.0-x86_64-libc-2.28-gcc-8.3.0-abi-11.sh...
Nebula Third Party has been installed to /etc/yum.repos.d/nebula/build/third-party/install
-- NEBULA_THIRDPARTY_ROOT          : /etc/yum.repos.d/nebula/build/third-party/install
-- Build info of nebula third party:
Package         : Nebula Third Party
Version         : 3.0
Date            : Thu Jun  9 07:41:14 UTC 2022
glibc           : 2.28
Arch            : x86_64
Compiler        : GCC 8.3.0
C++ ABI         : 11
Vendor          : VEsoft Inc.

-- CMAKE_INCLUDE_PATH              : /etc/yum.repos.d/nebula/build/third-party/install/include
-- CMAKE_LIBRARY_PATH              : /etc/yum.repos.d/nebula/build/third-party/install/lib64;/etc/yum.repos.d/nebula/build/third-party/install/lib
-- CMAKE_PROGRAM_PATH              : /etc/yum.repos.d/nebula/build/third-party/install/bin
-- GLIBC_VERSION                   : 2.28

-- Found ZLIB: /etc/yum.repos.d/nebula/build/third-party/install/lib/libz.a (found version "1.2.11") 
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found OpenSSL: /etc/yum.repos.d/nebula/build/third-party/install/lib64/libcrypto.a (found version "1.1.1l")  
-- found krb5-config here /etc/yum.repos.d/nebula/build/third-party/install/bin/krb5-config
-- Found kerberos 5 headers: /etc/yum.repos.d/nebula/build/third-party/install/include
-- Found kerberos 5 libs:    /etc/yum.repos.d/nebula/build/third-party/install/lib/libgssapi_krb5.a;/etc/yum.repos.d/nebula/build/third-party/install/lib/libkrb5.a;/etc/yum.repos.d/nebula/build/third-party/install/lib/libk5crypto.a;/etc/yum.repos.d/nebula/build/third-party/install/lib/libcom_err.a;/etc/yum.repos.d/nebula/build/third-party/install/lib/libkrb5support.a
-- Found Boost: /etc/yum.repos.d/nebula/build/third-party/install/include (found version "1.76.0")  
-- Found Libunwind: /etc/yum.repos.d/nebula/build/third-party/install/lib/libunwind.a  
-- Found BISON: /etc/yum.repos.d/nebula/build/third-party/install/bin/bison (found suitable version "3.7.6", minimum required is "3.0.5") 
-- Found FLEX: /etc/yum.repos.d/nebula/build/third-party/install/bin/flex (found version "2.6.4") 
-- Looking for lzma_auto_decoder in /etc/yum.repos.d/nebula/build/third-party/install/lib/liblzma.a
-- Looking for lzma_auto_decoder in /etc/yum.repos.d/nebula/build/third-party/install/lib/liblzma.a - found
-- Looking for lzma_easy_encoder in /etc/yum.repos.d/nebula/build/third-party/install/lib/liblzma.a
-- Looking for lzma_easy_encoder in /etc/yum.repos.d/nebula/build/third-party/install/lib/liblzma.a - found
-- Looking for lzma_lzma_preset in /etc/yum.repos.d/nebula/build/third-party/install/lib/liblzma.a
-- Looking for lzma_lzma_preset in /etc/yum.repos.d/nebula/build/third-party/install/lib/liblzma.a - found
-- Found LibLZMA: /etc/yum.repos.d/nebula/build/third-party/install/lib/liblzma.a (found version "5.2.5") 
>>>> Configuring third party for 'Nebula Graph' done <<<<
-- Create the pre-commit hook
-- Creating pre-commit hook done
-- Found Git: /usr/bin/git (found version "2.27.0") 
-- NEBULA_BUILD_VERSION            : 
-- HOST_SYSTEM_NAME                : el
-- HOST_SYSTEM_VER                 : el8
-- CPACK_GENERATOR                 : RPM
-- CMAKE_HOST_SYSTEM_PROCESSOR     : x86_64
-- Configuring done
-- Generating done
-- Build files have been written to: /etc/yum.repos.d/nebula/build

目前这个包下不到了

在vault库里找到了

嗯,我上面贴了一个pkgs的链接,可以看一下那里面,应该不会下不了,我昨天刚下的

所以没有.html么? 没关系 我在vault库里找到了

我这里正常通过编译

操作步骤上是按你的步骤来的,在这个基础上手动装了libstdc static
流畅通过编译

好的

方便给一个上面说的vault库里静态libstdc的链接么

https://vault.centos.org/centos/8/PowerTools/x86_64/os/Packages/libstdc++-static-8.5.0-4.el8_5.x86_64.rpm

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