Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

building Nebula code can't make #978

Closed
xieceinhe opened this issue Sep 26, 2019 · 14 comments
Closed

building Nebula code can't make #978

xieceinhe opened this issue Sep 26, 2019 · 14 comments
Assignees

Comments

@xieceinhe
Copy link

Describe the bug(must be provided)
I was building Nebula code. when Step4: build. bash> make
I get an bug like this:
Scanning dependencies of target base_obj_gch
[ 0%] Generating Base.h.gch
In file included from /opt/nebula/gcc/include/c++/8.2.0/chrono:40,
from /opt/nebula/gcc/include/c++/8.2.0/thread:38,
from /home/zkzy/nebula/nebula/src/common/base/Base.h:15:
/opt/nebula/gcc/include/c++/8.2.0/limits:1599:7: internal compiler error: Illegal instruction
min() _GLIBCXX_USE_NOEXCEPT { return FLT_MIN; }
^~~
0xb48c5f crash_signal
../.././gcc/toplev.c:325
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See https://gcc.gnu.org/bugs/ for instructions.
src/common/base/CMakeFiles/base_obj_gch.dir/build.make:60: recipe for target 'src/common/base/Base.h.gch' failed
make[2]: *** [src/common/base/Base.h.gch] Error 1
CMakeFiles/Makefile2:297: recipe for target 'src/common/base/CMakeFiles/base_obj_gch.dir/all' failed
make[1]: *** [src/common/base/CMakeFiles/base_obj_gch.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2

Your Environments(must be provided)

  • OS: uname -a
  • Compliler: g++ --version or clang++ --version
  • CPU: lscpu
    Linux ai01 4.15.0-64-generic [Code] Support cpplint #73-Ubuntu SMP Thu Sep 12 13:16:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

g++ (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0

Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 32
On-line CPU(s) list: 0-31
Thread(s) per core: 2
Core(s) per socket: 8
Socket(s): 2
NUMA node(s): 2
Vendor ID: GenuineIntel
CPU family: 6
Model: 45
Model name: Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz
Stepping: 7
CPU MHz: 2390.744
CPU max MHz: 2800.0000
CPU min MHz: 1200.0000
BogoMIPS: 3990.29
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 20480K
NUMA node0 CPU(s): 0-7,16-23
NUMA node1 CPU(s): 8-15,24-31

How To Reproduce(must be provided)
This bug step is:
bash> git clone https://github.com/vesoft-inc/nebula.git
bash> cd nebula && ./build_dep.sh C
bash> cd nebula && ./build_dep.sh U
bash> source ~/.bashrc
bash> mkdir build && cd build
bash> cmake ..
bash> make

Expected behavior
Compile successfully

Additional context
before is just all.

@laura-ding
Copy link
Contributor

Thanks for your feedback. Do you have the core files for GCC? If have, please use gdb and use disass. Please send the screenshot of the content after executing disass, thanks!

@dutor
Copy link
Contributor

dutor commented Oct 9, 2019

Sorry for the embarassment and delayed reply.

This issue seems due to the incompatibility of instruction set, between the machine you are building on and the one the compiler was built.

Would you mind checking the instruction set of your host? You could run lscpu | grep ^Flags to retrieve such info.

@xieceinhe
Copy link
Author

@dutor
lscpu | grep ^Flags
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm epb pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid xsaveopt dtherm ida arat pln pts md_clear flush_l1d

@dutor
Copy link
Contributor

dutor commented Oct 9, 2019

@xieceinhe
Thanks for the quick response. We will address such issues as soon as possible.

@dutor
Copy link
Contributor

dutor commented Oct 12, 2019

@xieceinhe
I had done some comparisons on the instruction set. Found that the followings are not present in your maching:

3dnowprefetch
abm
adx
avx2
bmi1
bmi2
clflushopt
erms
f16c
fma
fsgsbase
hle
intel_pt
invpcid
movbe
mpx
osxsave
rdrand
rdseed
rtm
smap
smep
tsc_adjust

But since I hardly can reproduce this problem, so I cannot figure out the specific involved instruction set.

The notorious illegal instruction set problem might be caused by many reasons. Such as, the compiler executable utilizes unsupported instructions, the miss-match between compiler and assembler.

To locate in which stage the issue occurs, could you please try to add -DCMAKE_CXX_FLAGS=-V to cmake when building? Like mkdir build && cd build && cmake -DCMAKE_CXX_FLAGS=-v .. && make VERBOSE=1.

To find out whether the compiler executable itself uses illegal instructions, you better turn the coredump on, via ulimit -c unlimited. To verify the coredump file can be generated normally, you could try with this snippet int main() { *(char*)0 = 0; }. BTW, you could checkout the location where core dump files are put, by sysctl kernel.core_pattern

Thanks in advance.

@dutor
Copy link
Contributor

dutor commented Oct 12, 2019

Another way, could you please try compiling and run this snippet?

$ cat > test.cpp
#include <thread>
int main() { return 0; }
$ /opt/nebula/gcc/bin/g++ -v test.cpp

@xieceinhe
Copy link
Author

@dutor I tryed the sencond way
/opt/nebula/gcc/bin/g++ -v test.cpp
Then got this show:

Using built-in specs.
COLLECT_GCC=/opt/nebula/gcc/bin/g++
COLLECT_LTO_WRAPPER=/opt/nebula/gcc/bin/../libexec/gcc/x86_64-pc-linux-gnu/8.2.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /home/sherman/Workspace/dev-rpms/gcc/8.2.0/_build/gcc-8.2.0/configure --prefix=/home/sherman/Workspace/dev-rpms/gcc/8.2.0/_install --with-gmp=/home/sherman/Workspace/dev-rpms/gcc/8.2.0/../../gmp/6.1.2/.install --with-mpfr=/home/sherman/Workspace/dev-rpms/gcc/8.2.0/../../mpfr/4.0.1/.install --with-mpc=/home/sherman/Workspace/dev-rpms/gcc/8.2.0/../../mpc/1.1.0/.install --without-isl --disable-multiarch --disable-multilib --enable-languages=c,c++,lto --disable-libada --disable-libvtv --enable-default-pie --disable-nls --enable-lto
Thread model: posix
gcc version 8.2.0 (GCC)
COLLECT_GCC_OPTIONS='-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
/opt/nebula/gcc/bin/../libexec/gcc/x86_64-pc-linux-gnu/8.2.0/cc1plus -quiet -v -iprefix /opt/nebula/gcc/bin/../lib/gcc/x86_64-pc-linux-gnu/8.2.0/ -D_GNU_SOURCE test.cpp -quiet -dumpbase test.cpp -mtune=generic -march=x86-64 -auxbase test -version -o /tmp/ccUyBYjG.s
GNU C++14 (GCC) version 8.2.0 (x86_64-pc-linux-gnu)
compiled by GNU C version 8.2.0, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/opt/nebula/gcc/bin/../lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/include"
ignoring duplicate directory "/opt/nebula/gcc/bin/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../include/c++/8.2.0"
ignoring duplicate directory "/opt/nebula/gcc/bin/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../include/c++/8.2.0/x86_64-pc-linux-gnu"
ignoring duplicate directory "/opt/nebula/gcc/bin/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../include/c++/8.2.0/backward"
ignoring duplicate directory "/opt/nebula/gcc/bin/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/8.2.0/include"
ignoring duplicate directory "/opt/nebula/gcc/bin/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/8.2.0/include-fixed"
ignoring nonexistent directory "/opt/nebula/gcc/bin/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/include"
ignoring nonexistent directory "/home/zkzy/wukong/wukong/deps/zeromq-4.0.5-install/include"
#include "..." search starts here:
#include <...> search starts here:
/home/zkzy/wukong/wukong/deps/hwloc-1.11.7-install/include
/home/zkzy/wukong/wukong/deps/nanomsg-1.1.4-install/include
/home/zkzy/wukong/wukong/deps/tbb44_20151115oss/include
/opt/nebula/gcc/bin/../lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../include/c++/8.2.0
/opt/nebula/gcc/bin/../lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../include/c++/8.2.0/x86_64-pc-linux-gnu
/opt/nebula/gcc/bin/../lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../include/c++/8.2.0/backward
/opt/nebula/gcc/bin/../lib/gcc/x86_64-pc-linux-gnu/8.2.0/include
/opt/nebula/gcc/bin/../lib/gcc/x86_64-pc-linux-gnu/8.2.0/include-fixed
/usr/local/include
/opt/nebula/gcc/bin/../lib/gcc/../../include
/usr/include
End of search list.
GNU C++14 (GCC) version 8.2.0 (x86_64-pc-linux-gnu)
compiled by GNU C version 8.2.0, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 7c8a473902c02382e21b342be96f78d1
In file included from /opt/nebula/gcc/include/c++/8.2.0/chrono:40,
from /opt/nebula/gcc/include/c++/8.2.0/thread:38,
from test.cpp:1:
/opt/nebula/gcc/include/c++/8.2.0/limits:1599:7: internal compiler error: Illegal instruction
min() _GLIBCXX_USE_NOEXCEPT { return FLT_MIN; }
^~~
0xb48c5f crash_signal
../.././gcc/toplev.c:325
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See https://gcc.gnu.org/bugs/ for instructions.

@dutor
Copy link
Contributor

dutor commented Oct 12, 2019

@xieceinhe
Excellent, buddy!
Given that this simple case could repeat the problem, you could further try to compile under gdb.
Such as:

$ gdb --args g++  test.cpp
gdb> set follow-fork-mode child
gdb> run
...
gdb> disas

@xieceinhe
Copy link
Author

sudo apt-get install gdb
gdb --args /opt/nebula/gcc/bin/g++ test.cpp
gdb> set follow-fork-mode child
gdb> run
Starting program: /opt/nebula/gcc/bin/g++ test.cpp
[New process 31172]
process 31172 is executing new program: /opt/nebula/gcc/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/cc1plus

Thread 2.1 "cc1plus" received signal SIGILL, Illegal instruction.
[Switching to process 31172]
0x00000000013aa0fb in __gmpn_mul_1 ()
gdb> disas
Dump of assembler code for function __gmpn_mul_1:
0x00000000013aa060 <+0>: mov %rcx,%r10
0x00000000013aa063 <+3>: mov %rdx,%rcx
0x00000000013aa066 <+6>: mov %edx,%r8d
0x00000000013aa069 <+9>: shr $0x3,%rcx
0x00000000013aa06d <+13>: and $0x7,%r8d
0x00000000013aa071 <+17>: mov %r10,%rdx
0x00000000013aa074 <+20>: lea 0xb2442d(%rip),%r10 # 0x1ece4a8
0x00000000013aa07b <+27>: movslq (%r10,%r8,4),%r8
0x00000000013aa07f <+31>: lea (%r8,%r10,1),%r10
0x00000000013aa083 <+35>: jmpq *%r10
0x00000000013aa086 <+38>: mulx (%rsi),%r10,%r8
0x00000000013aa08b <+43>: lea 0x38(%rsi),%rsi
0x00000000013aa08f <+47>: lea -0x8(%rdi),%rdi
0x00000000013aa093 <+51>: jmpq 0x13aa137 <__gmpn_mul_1+215>
0x00000000013aa098 <+56>: mulx (%rsi),%r9,%rax
0x00000000013aa09d <+61>: lea 0x10(%rsi),%rsi
0x00000000013aa0a1 <+65>: lea 0x10(%rdi),%rdi
0x00000000013aa0a5 <+69>: inc %rcx
0x00000000013aa0a8 <+72>: jmpq 0x13aa17c <__gmpn_mul_1+284>
0x00000000013aa0ad <+77>: mulx (%rsi),%r10,%r8
0x00000000013aa0b2 <+82>: lea 0x18(%rsi),%rsi
0x00000000013aa0b6 <+86>: lea 0x18(%rdi),%rdi
0x00000000013aa0ba <+90>: inc %rcx
0x00000000013aa0bd <+93>: jmpq 0x13aa16f <__gmpn_mul_1+271>
---Type to continue, or q to quit---
0x00000000013aa0c2 <+98>: mulx (%rsi),%r9,%rax
0x00000000013aa0c7 <+103>: lea 0x20(%rsi),%rsi
0x00000000013aa0cb <+107>: lea 0x20(%rdi),%rdi
0x00000000013aa0cf <+111>: inc %rcx
0x00000000013aa0d2 <+114>: jmpq 0x13aa162 <__gmpn_mul_1+258>
0x00000000013aa0d7 <+119>: mulx (%rsi),%r10,%r8
0x00000000013aa0dc <+124>: lea 0x28(%rsi),%rsi
0x00000000013aa0e0 <+128>: lea 0x28(%rdi),%rdi
0x00000000013aa0e4 <+132>: inc %rcx
0x00000000013aa0e7 <+135>: jmp 0x13aa155 <__gmpn_mul_1+245>
0x00000000013aa0e9 <+137>: mulx (%rsi),%r9,%rax
0x00000000013aa0ee <+142>: lea 0x30(%rsi),%rsi
0x00000000013aa0f2 <+146>: lea 0x30(%rdi),%rdi
0x00000

@dutor
Copy link
Contributor

dutor commented Oct 12, 2019

@xieceinhe

From the assembly dumps, I finally figure out the root cause. Bravo!

The root cause is the improper compilation of the GMP library, which is used by the GCC compiler. By default, GMP produces libraries optimized for the host processor, using mulx instruction from the BMI instruction set in this case.

We will revolve this issue by rebuilding the compiler.

@laura-ding
Copy link
Contributor

@xieceinhe Could you update the code and retry again? Thanks so much!

bash> cd nebula && ./build_dep.sh C
bash> source ~/.bashrc
bash> rm -rf build/*
bash> cd build && cmake ..

@xieceinhe
Copy link
Author

cd build && cmake ..
-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
-- Check for working C compiler: /opt/nebula/gcc/bin/gcc
-- Check for working C compiler: /opt/nebula/gcc/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/nebula/gcc/bin/g++
-- Check for working CXX compiler: /opt/nebula/gcc/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- ENABLE_ASAN: OFF
-- ENABLE_TESTING: ON
-- CCACHE: enabled but not found
-- CMAKE_BUILD_TYPE = Debug (Options are: Debug, Release, RelWithDebInfo, MinSizeRel)
-- CMAKE_INSTALL_PREFIX: /usr/local/nebula
-- Found Git: /usr/bin/git (found version "2.17.1")
-- Specified NEBULA_KRB5_ROOT: /opt/nebula/krb5
-- Specified NEBULA_LIBUNWIND_ROOT: /opt/nebula/libunwind
-- Specified NEBULA_OPENSSL_ROOT: /opt/nebula/openssl
-- Specified NEBULA_BOOST_ROOT: /opt/nebula/boost
-- Specified NEBULA_FLEX_ROOT: /opt/nebula/flex
-- Specified NEBULA_BISON_ROOT: /opt/nebula/bison
-- Specified NEBULA_GPERF_BIN_DIR: /opt/nebula/gperf/bin
-- Specified NEBULA_THIRDPARTY_ROOT: /opt/nebula/third-party
-- CMAKE_INCLUDE_PATH: /opt/nebula/third-party/zstd/include:/opt/nebula/third-party/zlib/include:/opt/nebula/third-party/wangle/include:/opt/nebula/third-party/snappy/include:/opt/nebula/third-party/rocksdb/include:/opt/nebula/third-party/proxygen/include:/opt/nebula/third-party/mstch/include:/opt/nebula/third-party/libevent/include:/opt/nebula/third-party/jemalloc/include:/opt/nebula/third-party/googletest/include:/opt/nebula/third-party/glog/include:/opt/nebula/third-party/gflags/include:/opt/nebula/third-party/folly/include:/opt/nebula/third-party/fbthrift/include:/opt/nebula/third-party/fatal/include:/opt/nebula/third-party/double-conversion/include:/opt/nebula/third-party/bzip2/include:/opt/nebula/flex/include:/opt/nebula/boost/include:/opt/nebula/openssl/include:/opt/nebula/libunwind/include:/opt/nebula/krb5/include
-- CMAKE_LIBRARY_PATH: /opt/nebula/third-party/zstd/lib:/opt/nebula/third-party/zlib/lib:/opt/nebula/third-party/wangle/lib:/opt/nebula/third-party/snappy/lib:/opt/nebula/third-party/rocksdb/lib:/opt/nebula/third-party/proxygen/lib:/opt/nebula/third-party/mstch/lib:/opt/nebula/third-party/libevent/lib:/opt/nebula/third-party/jemalloc/lib:/opt/nebula/third-party/googletest/lib:/opt/nebula/third-party/glog/lib:/opt/nebula/third-party/gflags/lib:/opt/nebula/third-party/folly/lib:/opt/nebula/third-party/fbthrift/lib:/opt/nebula/third-party/double-conversion/lib:/opt/nebula/third-party/bzip2/lib:/opt/nebula/bison/lib:/opt/nebula/flex/lib:/opt/nebula/boost/lib:/opt/nebula/openssl/lib:/opt/nebula/libunwind/lib:/opt/nebula/krb5/lib
-- CMAKE_PROGRAM_PATH: /opt/nebula/third-party/zstd/bin:/opt/nebula/third-party/libevent/bin:/opt/nebula/third-party/jemalloc/bin:/opt/nebula/third-party/gflags/bin:/opt/nebula/third-party/fbthrift/bin:/opt/nebula/third-party/bzip2/bin:/opt/nebula/gperf/bin:/opt/nebula/bison/bin:/opt/nebula/flex/bin:/opt/nebula/krb5/bin
-- Mstch_INCLUDE_DIR = /opt/nebula/third-party/mstch/include , Mstch_LIBRARY = /opt/nebula/third-party/mstch/lib/libmstch.a
-- Found ZLIB: /opt/nebula/third-party/zlib/lib/libz.a (found version "1.2.11")
-- Boost version: 1.67.0
-- Found OpenSSL: /opt/nebula/openssl/lib/libcrypto.a (found version "1.1.0h")
-- found krb5-config here /opt/nebula/krb5/bin/krb5-config
-- Found kerberos 5 headers: /opt/nebula/krb5/include
-- Found kerberos 5 libs: /opt/nebula/krb5/lib/libgssapi_krb5.a;/opt/nebula/krb5/lib/libkrb5.a;/opt/nebula/krb5/lib/libk5crypto.a;/opt/nebula/krb5/lib/libcom_err.a;/opt/nebula/krb5/lib/libkrb5support.a
-- Found GPERF: /opt/nebula/gperf/bin/gperf (found suitable version "3.1", minimum required is "2.8")
-- Found Libunwind: /opt/nebula/libunwind/lib/libunwind.a
-- Found BISON: /opt/nebula/bison/bin/bison (found suitable version "3.0.5", minimum required is "3.0.5")
-- Found FLEX: /opt/nebula/flex/bin/flex (found version "2.6.4")
-- Found ncurses: /usr/include
-- Could NOT find LibLZMA (missing: LIBLZMA_INCLUDE_DIR LIBLZMA_LIBRARY LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET)
-- Found PCH Support: gcc compiler version is g++ (GCC) 8.2.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software see the source for copying conditions. There is NO
warranty not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-- Glibc version is 2.27
Precompile header file /home/nebula/nebula/src/common/base/Base.h into /home/nebula/nebula/build/src/common/base/Base.h.gch
-- Skip building the java client
-- Skip building the importer
-- Create the pre-commit hook
-- Creating pre-commit hook done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/nebula/nebula/build

@xieceinhe
Copy link
Author

$ cmake ..
-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
-- Check for working C compiler: /opt/nebula/third-party/bin/gcc
-- Check for working C compiler: /opt/nebula/third-party/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/nebula/third-party/bin/g++
-- Check for working CXX compiler: /opt/nebula/third-party/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- ENABLE_ASAN: OFF
-- ENABLE_TESTING: ON
-- ENABLE_UBSAN: OFF
-- CCACHE: enabled but not found
-- CMAKE_BUILD_TYPE = Debug (Options are: Debug, Release, RelWithDebInfo, MinSizeRel)
-- CMAKE_INSTALL_PREFIX: /usr/local/nebula
-- Found Git: /usr/bin/git (found version "2.17.1")
-- Specified NEBULA_THIRDPARTY_ROOT: /opt/nebula/third-party
-- CMAKE_INCLUDE_PATH: /opt/nebula/third-party/include
-- CMAKE_LIBRARY_PATH: /opt/nebula/third-party/lib64:/opt/nebula/third-party/lib
-- CMAKE_PROGRAM_PATH: /opt/nebula/third-party/bin
-- Mstch_INCLUDE_DIR = /opt/nebula/third-party/include , Mstch_LIBRARY = /opt/nebula/third-party/lib/libmstch.a
-- Found ZLIB: /opt/nebula/third-party/lib/libz.a (found version "1.2.11")
-- Boost version: 1.67.0
-- Found OpenSSL: /opt/nebula/third-party/lib64/libcrypto.a (found version "1.1.1c")
-- found krb5-config here /opt/nebula/third-party/bin/krb5-config
-- Found kerberos 5 headers: /opt/nebula/third-party/include
-- Found kerberos 5 libs: /opt/nebula/third-party/lib/libgssapi_krb5.a;/opt/nebula/third-party/lib/libkrb5.a;/opt/nebula/third-party/lib/libk5crypto.a;/opt/nebula/third-party/lib/libcom_err.a;/opt/nebula/third-party/lib/libkrb5support.a
-- Found GPERF: /opt/nebula/third-party/bin/gperf (found suitable version "3.1", minimum required is "2.8")
-- Found Libunwind: /opt/nebula/third-party/lib/libunwind.a
-- Found BISON: /opt/nebula/third-party/bin/bison (found suitable version "3.0.5", minimum required is "3.0.5")
-- Found FLEX: /opt/nebula/third-party/bin/flex (found version "2.6.4")
-- Found ncurses: /usr/include
-- Could NOT find LibLZMA (missing: LIBLZMA_INCLUDE_DIR LIBLZMA_LIBRARY LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET)
-- Found PCH Support: gcc compiler version is g++ (GCC) 8.2.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software see the source for copying conditions. There is NO
warranty not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-- Glibc version is 2.27
Precompile header file /home/nebula/nebula/src/common/base/Base.h into /home/nebula/nebula/build/src/common/base/Base.h.gch
-- Skip building the java client
-- Skip building the importer
-- Create the pre-commit hook
-- Creating pre-commit hook done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/nebula/nebula/build

@laura-ding
Copy link
Contributor

@xieceinhe Thanks for your reply! Now that you have built successfully, I close the issue.

yixinglu pushed a commit to yixinglu/nebula that referenced this issue Jan 31, 2023
<!--
Thanks for your contribution!
In order to review PR more efficiently, please add information according to the template.
-->

## What type of PR is this?
- [x] bug
- [ ] feature
- [ ] enhancement

## What problem(s) does this PR solve?
#### Issue(s) number: 
close vesoft-inc/nebula-ent#957

#### Description:
Before:
 it will check whether there is a root account,when meta is restarted

 After:
 it will check whether there is an account with the GOD role, when the meta is restarted

## How do you solve it?



## Special notes for your reviewer, ex. impact of this fix, design document, etc:



## Checklist:
Tests:
- [ ] Unit test(positive and negative cases)
- [ ] Function test
- [ ] Performance test
- [ ] N/A

Affects:
- [ ] Documentation affected (Please add the label if documentation needs to be modified.)
- [ ] Incompatibility (If it breaks the compatibility, please describe it and add the label.)
- [ ] If it's needed to cherry-pick (If cherry-pick to some branches is required, please label the destination version(s).)
- [ ] Performance impacted: Consumes more CPU/Memory


## Release notes:

Please confirm whether to be reflected in release notes and how to describe:
> ex. Fixed the bug .....


Migrated from vesoft-inc#4330

Co-authored-by: jimingquan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants