nebula icon indicating copy to clipboard operation
nebula copied to clipboard

Termux: Issues compiling and installing from source

Open b9Joker108 opened this issue 1 year ago • 1 comments

Describe the bug

In Termux, I was endeavouring to compile, make and install from source. I encountered the following error output:

❯ cmake -DCMAKE_INSTALL_PREFIX=/usr/local/nebula -DENABLE_TESTING=OFF -DCMAKE_BUILD_TYPE=Release ..   -- The C compiler identification is Clang 18.1.3
-- The CXX compiler identification is Clang 18.1.3
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /data/data/com.termux/files/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /data/data/com.termux/files/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
>>>> Options of Nebula Graph <<<<
-- 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_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              : /data/data/com.termux/files/usr/bin/c++ (CXX compiler)
-- CMAKE_CXX_COMPILER_ID           : Clang
-- Performing Test has_static_libatomic
-- Performing Test has_static_libatomic - Success
-- 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: /data/data/com.termux/files/usr/bin/c++ -D_GLIBCXX_USE_CXX11_ABI=1
env: ‘/data/data/com.termux/files/home/nebula/third-party/install-third-party.sh’: No such file or directory
-- CMAKE_INCLUDE_PATH              :
-- CMAKE_LIBRARY_PATH              :
-- CMAKE_PROGRAM_PATH              :
readelf: Error: 'readlink (GNU coreutils) 9.4
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Dmitry V. Levin.': No such file
readelf: Error: 'readlink (GNU coreutils) 9.4
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Dmitry V. Levin.': No such file
-- GLIBC_VERSION                   :

CMake Error at cmake/FindBzip2.cmake:31 (message):
  Bzip2 doesn't exist
Call Stack (most recent call first):
  cmake/nebula/ThirdPartyConfig.cmake:94 (find_package)
  CMakeLists.txt:49 (include)
                                                                                                      
-- Configuring incomplete, errors occurred!    
                                                       
❯ pkg i bzip2
Checking availability of current mirror:
[*] https://mirror.twds.com.tw/termux/termux-main: ok
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
bzip2 is already the newest version (1.0.8-6).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

**Your Environments**

```zsh
❯ uname -a
Linux localhost 5.15.94-android13-8-27940245-abX910XXU1BWL1 #1 SMP PREEMPT Mon Dec 4 10:05:43 UTC 2023 aarch64 Android
❯ clang++ --version
clang version 18.1.3
Target: aarch64-unknown-linux-android24                                                               Thread model: posix
InstalledDir: /data/data/com.termux/files/usr/bin

How To Reproduce

Steps to reproduce the behavior:

  1. I got to the cmake stage and encountered error.
  2. bzip2 and clang both installed.

Expected behavior

I hoped the process would go off without a hitch.

Any assistance would be greatly appreciated.

Thanking you in anticipation Beauford

b9Joker108 avatar Apr 11 '24 15:04 b9Joker108

Currently, Nebula does not support clang18.

QingZ11 avatar Apr 15 '24 04:04 QingZ11