CMake error on fresh install
I was trying to install GekkoFS in a new machine (fresh install) and I was getting some errors:
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/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: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- [gekkofs] Build type: Debug
-- Found Git: /usr/bin/git (found version "2.17.1")
-- [gekkofs] Project version: 0.7.0-snapshot+8-g725a53b-dirty
-- Found lz4: /home/jbez/Documents/Projects/bsc/gekkofs-prefix/lib/liblz4.so
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version "1.0.6")
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Found snappy: /home/jbez/Documents/Projects/bsc/gekkofs-prefix/lib/libsnappy.a
-- Found ZSTD: /home/jbez/Documents/Projects/bsc/gekkofs-prefix/lib/libzstd.so
-- Could NOT find JeMalloc (missing: JEMALLOC_LIBRARY JEMALLOC_INCLUDE_DIR)
-- Found RocksDB: /home/jbez/Documents/Projects/bsc/gekkofs-prefix/lib/librocksdb.a
-- Found AGIOS: /home/jbez/Documents/Projects/bsc/gekkofs-prefix/lib/libagios.so
-- Found Abt: /home/jbez/Documents/Projects/bsc/gekkofs-prefix/lib/libabt.so
-- Found Margo: /home/jbez/Documents/Projects/bsc/gekkofs-prefix/lib/libmargo.so
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Found Syscall_intercept: /home/jbez/Documents/Projects/bsc/gekkofs-prefix/include
-- Boost version: 1.65.1
-- Found the following Boost libraries:
-- filesystem
-- program_options
-- system
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- 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 Date: /home/jbez/Documents/Projects/bsc/gekkofs-prefix/include
-- [gekkofs] RPC protocol: 'ofi+sockets'
-- [gekkofs] Shared-memory communication: OFF
-- Create checks parents: ON
-- [gekkofs] Symlink support: ON
-- [gekkofs] File descriptors reserved for internal use: 256
-- [gekkofs] Client logging output: ON
-- [gekkofs] Forwarding mode: ON
-- [gekkofs] AGIOS scheduling: ON
-- [gekkofs] Maximum log message size in the client library: 512
-- Version: 6.1.2
-- Build type: Debug
-- CXX_STANDARD: 14
-- Performing Test has_std_14_flag
-- Performing Test has_std_14_flag - Success
-- Performing Test has_std_1y_flag
-- Performing Test has_std_1y_flag - Success
-- Performing Test SUPPORTS_VARIADIC_TEMPLATES
-- Performing Test SUPPORTS_VARIADIC_TEMPLATES - Success
-- Performing Test SUPPORTS_USER_DEFINED_LITERALS
-- Performing Test SUPPORTS_USER_DEFINED_LITERALS - Success
-- Performing Test FMT_HAS_VARIANT
-- Performing Test FMT_HAS_VARIANT - Success
-- Looking for strtod_l
-- Looking for strtod_l - not found
-- [hermes] Version: 0.4.1
-- [hermes] Build type: Debug
-- Performing Test HERMES_HAS_WALL
-- Performing Test HERMES_HAS_WALL - Success
-- Performing Test HERMES_HAS_WEXTRA
-- Performing Test HERMES_HAS_WEXTRA - Success
-- Performing Test HERMES_HAS_O0
-- Performing Test HERMES_HAS_O0 - Success
-- Performing Test HERMES_HAS_NO_INLINE
-- Performing Test HERMES_HAS_NO_INLINE - Success
-- Performing Test HERMES_HAS_STACK_PROTECTOR_ALL
-- Performing Test HERMES_HAS_STACK_PROTECTOR_ALL - Success
-- Performing Test HERMES_HAS_G3
-- Performing Test HERMES_HAS_G3 - Success
-- Performing Test HERMES_HAS_GGDB
-- Performing Test HERMES_HAS_GGDB - Success
-- [hermes] Logging enabled using external fmt (library)
CMake Warning at external/hermes/CMakeLists.txt:120 (find_package):
By not providing "FindSanitizers.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"Sanitizers", but CMake did not find one.
Could not find a package configuration file provided by "Sanitizers" with
any of the following names:
SanitizersConfig.cmake
sanitizers-config.cmake
Add the installation prefix of "Sanitizers" to CMAKE_PREFIX_PATH or set
"Sanitizers_DIR" to a directory containing one of the above files. If
"Sanitizers" provides a separate development package or SDK, be sure it has
been installed.
You have called ADD_LIBRARY for library distributor without any source files. This typically indicates a problem with your CMakeLists.txt file
You have called ADD_LIBRARY for library log_util without any source files. This typically indicates a problem with your CMakeLists.txt file
You have called ADD_LIBRARY for library env_util without any source files. This typically indicates a problem with your CMakeLists.txt file
You have called ADD_LIBRARY for library metadata without any source files. This typically indicates a problem with your CMakeLists.txt file
You have called ADD_LIBRARY for library metadata_db without any source files. This typically indicates a problem with your CMakeLists.txt file
You have called ADD_LIBRARY for library storage without any source files. This typically indicates a problem with your CMakeLists.txt file
-- Configuring done
-- Generating done
-- Build files have been written to:
I noticed that my version of cmake
was 3.10. When I updated to 3.16 it succeeded without the error messages.