CMake errors on building docker image
I am running this command from inside the haf
directory:
..\haf\hive\scripts\ci-helpers\build_instance.sh local ..\haf registry.gitlab.syncad.com/hive/haf/
(As you see, slightly adapted to work for Windows.)
The Docker image building fails and it shows 4 CMake Error
(you can search for that phrase in the log). Here is the complete log:
Moving into source root directory: ..\haf
/e/Docker/haf /e/Docker/haf
#1 [internal] load build definition from Dockerfile
#1 sha256:4bdf162c4ef71790a396ec8d278a044996d33fa1313548f88d5c11bcfe89fd22
#1 transferring dockerfile: 32B done
#1 DONE 0.0s
#2 [internal] load .dockerignore
#2 sha256:0f54f609f6330b2fe1b2a715d57e640a48eac4939fab58db1271c0f085763e12
#2 transferring context: 34B done
#2 DONE 0.0s
#3 [internal] load metadata for registry.gitlab.syncad.com/hive/haf/ci-base-image:ubuntu22.04-2
#3 sha256:e06bff154775ddf95b1b7749d5a978ef595466981e88123ff4f024b402babaef
#3 DONE 1.7s
#4 [build 1/4] FROM registry.gitlab.syncad.com/hive/haf/ci-base-image:ubuntu22.04-2@sha256:e7ef9044f9da03653d349d01e51e17c406550ef97f921a1552e7c21a8968b190
#4 sha256:b455ae76f9b2683b69ec8e1c7cb367bb7f66bc317e0fba3472355d64e15ca302
#4 DONE 0.0s
#5 [base_instance 2/10] WORKDIR /home/hived
#5 sha256:12cf77071f0d338adec3578d9afad2929798152923b2b8ad5d0d482c9a5f5487
#5 CACHED
#8 [internal] load build context
#8 sha256:f6e757a3bada8ed0c44ad932b921caa5bc25a86c58834fa7cbd62e7d6ae1dcbc
#8 transferring context: 57.19MB 3.3s
#8 transferring context: 117.63MB 8.3s
#8 ...
#6 [base_instance 3/10] RUN mkdir -p /home/hived/bin && mkdir /home/hived/shm_dir && mkdir /home/hived/datadir && chown -Rc hived:users /home/hived/
#6 sha256:6596a417c0487635aaa31199dd9aece6f970e9f938a3612ad30b937db9e02c30
#6 ...
#8 [internal] load build context
#8 sha256:f6e757a3bada8ed0c44ad932b921caa5bc25a86c58834fa7cbd62e7d6ae1dcbc
#8 transferring context: 133.93MB 13.4s
#8 transferring context: 162.17MB 18.5s
#8 transferring context: 163.99MB 18.7s done
#8 DONE 18.8s
#6 [base_instance 3/10] RUN mkdir -p /home/hived/bin && mkdir /home/hived/shm_dir && mkdir /home/hived/datadir && chown -Rc hived:users /home/hived/
#6 sha256:6596a417c0487635aaa31199dd9aece6f970e9f938a3612ad30b937db9e02c30
#6 ...
#7 [build 2/4] WORKDIR /home/haf_admin
#7 sha256:b7067b831931f0d82ecb15b853ee9e8ea65efeecb93d21216390eb12009cbd60
#7 CACHED
#9 [build 3/4] COPY --chown=haf_admin:users . /home/haf_admin/haf
#9 sha256:5d2ae70c7f68a5501161c5e782da46d6029f3143044d34b113003146138ea977
#9 DONE 2.3s
#6 [base_instance 3/10] RUN mkdir -p /home/hived/bin && mkdir /home/hived/shm_dir && mkdir /home/hived/datadir && chown -Rc hived:users /home/hived/
#6 sha256:6596a417c0487635aaa31199dd9aece6f970e9f938a3612ad30b937db9e02c30
#6 ...
#10 [build 4/4] RUN ./haf/scripts/build.sh --haf-source-dir="./haf" --haf-binaries-dir="./build" --cmake-arg="-DBUILD_HIVE_TESTNET=OFF" --cmake-arg="-DHIVE_CONVERTER_BUILD=OFF" --cmake-arg="-DHIVE_LINT=OFF" hived cli_wallet compress_block_log extension.hive_fork_manager && cd ./build && find . -name *.o -type f -delete && find . -name *.a -type f -delete
#10 sha256:962afd32fa959070ca9c8af7c25c81e75b2ddc016489c05a9059d68badfecf63
#10 0.522
#10 0.522 ./haf/scripts/build.sh parameters: --haf-source-dir=./haf --haf-binaries-dir=./build --cmake-arg=-DBUILD_HIVE_TESTNET=OFF --cmake-arg=-DHIVE_CONVERTER_BUILD=OFF --cmake-arg=-DHIVE_LINT=OFF hived cli_wallet compress_block_log extension.hive_fork_manager
#10 0.529
#10 0.529 /home/haf_admin/haf/scripts/../hive/scripts/build.sh parameters: --source-dir=/home/haf_admin/haf --binary-dir=/home/haf_admin/build --cmake-arg=-DBUILD_HIVE_TESTNET=OFF --cmake-arg=-DHIVE_CONVERTER_BUILD=OFF --cmake-arg=-DHIVE_LINT=OFF
#10 0.532 Build will use 4 concurrent jobs...
#10 0.536 /home/haf_admin
#10 0.538 mkdir: created directory '/home/haf_admin/build'
#10 0.539 ~/build ~
#10 0.539 /home/haf_admin/build
#10 1.116 -- The C compiler identification is GNU 11.3.0
#10 1.346 -- The CXX compiler identification is GNU 11.3.0
#10 1.380 -- Detecting C compiler ABI info
#10 1.481 -- Detecting C compiler ABI info - done
#10 1.507 -- Check for working C compiler: /usr/bin/cc - skipped
#10 1.508 -- Detecting C compile features
#10 1.517 -- Detecting C compile features - done
#10 1.527 -- Detecting CXX compiler ABI info
#10 1.661 -- Detecting CXX compiler ABI info - done
#10 1.689 -- Check for working CXX compiler: /usr/bin/c++ - skipped
#10 1.693 -- Detecting CXX compile features
#10 1.697 -- Detecting CXX compile features - done
#10 1.702 -- BUILD_HIVE_TESTNET: OFF
#10 1.702 -- ENABLE_SMT_SUPPORT: OFF
#10 1.702 -- STORE_ACCOUNT_METADATA: ON
#10 1.702 --
#10 1.702 -- CONFIGURING TO INDEX ACCOUNT METADATA
#10 1.702 --
#10 1.702 -- CHAINBASE_CHECK_LOCKING: ON
#10 1.702 -- HIVE_CONVERTER_BUILD: OFF
#10 1.702 -- HIVE_FAIL_ON_WARNINGS: OFF
#10 1.778 -- Looking for pthread.h
#10 1.903 -- Looking for pthread.h - found
#10 1.906 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
#10 1.986 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
#10 1.988 -- Found Threads: TRUE
#10 2.048 -- Found Boost: /usr/include (found suitable version "1.74.0", minimum required is "1.58") found components: thread date_time system filesystem program_options serialization chrono unit_test_framework context locale coroutine atomic
#10 2.054 -- Configuring Hive on Linux
#10 2.057 -- Configuring project fc located in: /home/haf_admin/haf/hive/libraries/fc
#10 2.120 CMake Error at /usr/share/cmake-3.22/Modules/ExternalProject.cmake:2882 (message):
#10 2.120 No download info given for 'project_secp256k1' and its source directory:
#10 2.120
#10 2.120 /home/haf_admin/haf/hive/libraries/fc/vendor/secp256k1-zkp
#10 2.120
#10 2.120 is not an existing non-empty directory. Please specify one of:
#10 2.120
#10 2.120 * SOURCE_DIR with an existing non-empty directory
#10 2.120 * DOWNLOAD_COMMAND
#10 2.120 * URL
#10 2.120 * GIT_REPOSITORY
#10 2.120 * SVN_REPOSITORY
#10 2.120 * HG_REPOSITORY
#10 2.120 * CVS_REPOSITORY and CVS_MODULE
#10 2.120 Call Stack (most recent call first):
#10 2.120 /usr/share/cmake-3.22/Modules/ExternalProject.cmake:3716 (_ep_add_download_command)
#10 2.120 hive/libraries/fc/CMakeLists.txt:83 (ExternalProject_Add)
#10 2.120
#10 2.120
#10 2.139 -- Configuring fc to build on Unix/Apple
#10 2.179 -- Found Boost: /usr/include (found suitable version "1.74.0", minimum required is "1.53") found components: thread date_time system filesystem program_options serialization chrono unit_test_framework context locale iostreams coroutine atomic regex
#10 2.307 -- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.a (found version "3.0.2")
#10 2.348 CMake Error at hive/libraries/fc/CMakeLists.txt:272 (add_subdirectory):
#10 2.348 The source directory
#10 2.348
#10 2.348 /home/haf_admin/haf/hive/libraries/fc/vendor/websocketpp
#10 2.348
#10 2.348 does not contain a CMakeLists.txt file.
#10 2.348
#10 2.348
#10 2.467 -- Found Curses: /usr/lib/x86_64-linux-gnu/libcurses.so
#10 2.473 -- Found Readline: /usr/include
#10 2.474 -- Found Readline: /usr/lib/x86_64-linux-gnu/libreadline.a;/usr/lib/x86_64-linux-gnu/libreadline.a;/usr/lib/x86_64-linux-gnu/libtinfo.a
#10 2.496 -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.a (found version "1.2.11")
#10 2.496 -- zlib found
#10 2.508 -- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version "1.0.8")
#10 2.515 -- Looking for BZ2_bzCompressInit
#10 2.817 -- Looking for BZ2_bzCompressInit - found
#10 2.818 -- bzip2 found
#10 2.818 -- LOG_LONG_API: ON
#10 2.818 --
#10 2.818 -- LOGGING LONG API CALLS
#10 2.818 -- MAX MS: 1000
#10 2.818 -- WARN MS: 750
#10 2.818 --
#10 2.824 -- Finished fc module configuration...
#10 2.847 -- The ASM compiler identification is GNU
#10 2.853 -- Found assembler: /usr/bin/cc
#10 2.863 -- Found snappy: /usr/lib/x86_64-linux-gnu/libsnappy.so
#10 2.872 -- Found Git: /usr/bin/git (found version "2.34.1")
#10 2.882 -- Performing Test HAVE_OMIT_LEAF_FRAME_POINTER
#10 3.018 -- Performing Test HAVE_OMIT_LEAF_FRAME_POINTER - Success
#10 3.058 -- Performing Test HAVE_SSE42
#10 3.341 -- Performing Test HAVE_SSE42 - Success
#10 3.343 -- Performing Test HAVE_THREAD_LOCAL
#10 3.432 -- Performing Test HAVE_THREAD_LOCAL - Success
#10 3.432 -- Enabling RTTI
#10 3.433 -- Performing Test HAVE_FALLOCATE
#10 3.528 -- Performing Test HAVE_FALLOCATE - Success
#10 3.529 -- Performing Test HAVE_SYNC_FILE_RANGE_WRITE
#10 3.632 -- Performing Test HAVE_SYNC_FILE_RANGE_WRITE - Success
#10 3.633 -- Performing Test HAVE_PTHREAD_MUTEX_ADAPTIVE_NP
#10 3.804 -- Performing Test HAVE_PTHREAD_MUTEX_ADAPTIVE_NP - Success
#10 3.809 -- Looking for malloc_usable_size
#10 3.978 -- Looking for malloc_usable_size - found
#10 3.979 -- Looking for sched_getcpu
#10 4.071 -- Looking for sched_getcpu - found
#10 4.077 -- JNI library is disabled
#10 4.087 CMake Error at hive/libraries/vendor/CMakeLists.txt:47 (add_subdirectory):
#10 4.087 add_subdirectory given source "zstd/build/cmake" which is not an existing
#10 4.087 directory.
#10 4.087
#10 4.087
#10 4.748 -- TEMPLATE_DEPS: /home/haf_admin/build/hive/libraries/jsonball/template_context/mm_ticks.json;/home/haf_admin/build/hive/libraries/jsonball/template_context/resource_parameters.json;/home/haf_admin/haf/hive/libraries/jsonball/templates/jsonball/CMakeLists.txt.j2;/home/haf_admin/haf/hive/libraries/jsonball/templates/jsonball/rc_params.cpp.j2;/home/haf_admin/haf/hive/libraries/jsonball/templates/jsonball/mm_ticks.cpp.j2;/home/haf_admin/haf/hive/libraries/jsonball/templates/jsonball/include/hive/jsonball/jsonball.hpp.j2
#10 4.748
#10 4.893 -- TEMPLATE_OUTPUTS: /home/haf_admin/build/hive/libraries/jsonball/gensrc/jsonball/CMakeLists.txt;/home/haf_admin/build/hive/libraries/jsonball/gensrc/jsonball/rc_params.cpp;/home/haf_admin/build/hive/libraries/jsonball/gensrc/jsonball/mm_ticks.cpp;/home/haf_admin/build/hive/libraries/jsonball/gensrc/jsonball/include/hive/jsonball/jsonball.hpp
#10 4.893
#10 5.172 -- Found Boost: /usr/include (found suitable version "1.74.0", minimum required is "1.58") found components: thread date_time system filesystem chrono program_options unit_test_framework locale atomic
#10 5.174 -- Configuring AppBase on Linux
#10 5.203 -- Found Boost: /usr/include (found suitable version "1.74.0", minimum required is "1.57") found components: thread date_time system filesystem chrono unit_test_framework locale atomic
#10 5.205 -- Configuring ChainBase on Linux
#10 5.208 CMake Error at hive/libraries/chain/CMakeLists.txt:10 (message):
#10 5.208 The compression_dicitonaries submodule has not been cloned, it is required
#10 5.208 for mainnet builds
#10 5.208
#10 5.208
#10 5.210 -- Configuring incomplete, errors occurred!
#10 5.210 See also "/home/haf_admin/build/CMakeFiles/CMakeOutput.log".
#10 ERROR: executor failed running [/bin/bash -c ./haf/scripts/build.sh --haf-source-dir="./haf" --haf-binaries-dir="./build" --cmake-arg="-DBUILD_HIVE_TESTNET=${BUILD_HIVE_TESTNET}" --cmake-arg="-DHIVE_CONVERTER_BUILD=${HIVE_CONVERTER_BUILD}" --cmake-arg="-DHIVE_LINT=${HIVE_LINT}" hived cli_wallet compress_block_log extension.hive_fork_manager && cd ./build && find . -name *.o -type f -delete && find . -name *.a -type f -delete]: exit code: 1
#6 [base_instance 3/10] RUN mkdir -p /home/hived/bin && mkdir /home/hived/shm_dir && mkdir /home/hived/datadir && chown -Rc hived:users /home/hived/
#6 sha256:6596a417c0487635aaa31199dd9aece6f970e9f938a3612ad30b937db9e02c30
#6 CANCELED
------
> [build 4/4] RUN ./haf/scripts/build.sh --haf-source-dir="./haf" --haf-binaries-dir="./build" --cmake-arg="-DBUILD_HIVE_TESTNET=OFF" --cmake-arg="-DHIVE_CONVERTER_BUILD=OFF" --cmake-arg="-DHIVE_LINT=OFF" hived cli_wallet compress_block_log extension.hive_fork_manager && cd ./build && find . -name *.o -type f -delete && find . -name *.a -type f -delete:
------
executor failed running [/bin/bash -c ./haf/scripts/build.sh --haf-source-dir="./haf" --haf-binaries-dir="./build" --cmake-arg="-DBUILD_HIVE_TESTNET=${BUILD_HIVE_TESTNET}" --cmake-arg="-DHIVE_CONVERTER_BUILD=${HIVE_CONVERTER_BUILD}" --cmake-arg="-DHIVE_LINT=${HIVE_LINT}" hived cli_wallet compress_block_log extension.hive_fork_manager && cd ./build && find . -name *.o -type f -delete && find . -name *.a -type f -delete]: exit code: 1
Edited by Borislav Zlatanov