Fails to build with Boost 1.71. Works fine with1.70.
$ cmake -Dunity=OFF -Dassert=true -Dwerr=ON -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Debug -DBOOST_ROOT=/home/eah/dev/boost ../../..
-- The C compiler identification is Clang 10.0.1
-- The CXX compiler identification is Clang 10.0.1
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- 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/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- NIH-EP cache path: /home/eah/dev/validator-keys-tool/.nih_c/unix_makefiles/Clang_10.0.1/Debug
-- Found Git: /usr/lib/git-core/git (found version "2.25.1")
-- Installed rippled not found... using local copy from tag/commit [master]
-- Pausing to download rippled source...
-- Using 4 cores for ExternalProject builds.
-- rippled version: 1.7.0-b2
-- NIH-EP cache path: /home/eah/dev/validator-keys-tool/.nih_c/unix_makefiles/Clang_10.0.1/Debug
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- BOOST_ROOT: /home/eah/dev/boost
-- BOOST_LIBRARYDIR:
CMake Warning at .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:973 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1095 (_Boost_COMPONENT_DEPENDENCIES)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1737 (_Boost_MISSING_DEPENDENCIES)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/Boost.cmake:47 (find_package)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/CMakeLists.txt:44 (include)
CMake Warning at .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:973 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1095 (_Boost_COMPONENT_DEPENDENCIES)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1737 (_Boost_MISSING_DEPENDENCIES)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/Boost.cmake:47 (find_package)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/CMakeLists.txt:44 (include)
CMake Warning at .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:973 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1095 (_Boost_COMPONENT_DEPENDENCIES)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1737 (_Boost_MISSING_DEPENDENCIES)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/Boost.cmake:47 (find_package)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/CMakeLists.txt:44 (include)
CMake Warning at .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:973 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1095 (_Boost_COMPONENT_DEPENDENCIES)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1737 (_Boost_MISSING_DEPENDENCIES)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/Boost.cmake:47 (find_package)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/CMakeLists.txt:44 (include)
CMake Warning at .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:973 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1095 (_Boost_COMPONENT_DEPENDENCIES)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1737 (_Boost_MISSING_DEPENDENCIES)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/Boost.cmake:47 (find_package)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/CMakeLists.txt:44 (include)
CMake Warning at .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:973 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1095 (_Boost_COMPONENT_DEPENDENCIES)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1737 (_Boost_MISSING_DEPENDENCIES)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/Boost.cmake:47 (find_package)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/CMakeLists.txt:44 (include)
CMake Warning at .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:973 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1095 (_Boost_COMPONENT_DEPENDENCIES)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1737 (_Boost_MISSING_DEPENDENCIES)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/Boost.cmake:47 (find_package)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/CMakeLists.txt:44 (include)
CMake Warning at .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:973 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1095 (_Boost_COMPONENT_DEPENDENCIES)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1737 (_Boost_MISSING_DEPENDENCIES)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/Boost.cmake:47 (find_package)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/CMakeLists.txt:44 (include)
CMake Warning at .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:973 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1095 (_Boost_COMPONENT_DEPENDENCIES)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1737 (_Boost_MISSING_DEPENDENCIES)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/Boost.cmake:47 (find_package)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/CMakeLists.txt:44 (include)
CMake Warning at .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:973 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1095 (_Boost_COMPONENT_DEPENDENCIES)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/FindBoost.cmake:1737 (_Boost_MISSING_DEPENDENCIES)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/deps/Boost.cmake:47 (find_package)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/CMakeLists.txt:44 (include)
-- Found Boost: /home/eah/dev/boost (found suitable version "1.71.0", minimum required is "1.70") found components: chrono context coroutine date_time filesystem program_options regex system thread atomic
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.a (found suitable version "1.1.1f", minimum required is "1.0.2")
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Using local build of RocksDB.
# date: USE_SYSTEM_TZ_DB OFF
# date: USE_TZ_DB_IN_DOT OFF
# date: BUILD_SHARED_LIBS OFF
# date: ENABLE_DATE_TESTING OFF
# date: DISABLE_STRING_VIEW OFF
-- Could NOT find Protobuf: Found unsuitable version "3.6.1", but required is at least "3.8" (found /usr/lib/x86_64-linux-gnu/libprotobuf.a;-pthread)
-- using local protobuf build.
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.17") found components: doxygen missing components: dot
CMake Warning at .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/RippledDocs.cmake:34 (message):
could not find plantuml.jar
Call Stack (most recent call first):
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/RippledDocs.cmake:40 (verbose_find_path)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/CMakeLists.txt:65 (include)
CMake Warning at .nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/RippledDocs.cmake:34 (message):
could not find dot
Call Stack (most recent call first):
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/Builds/CMake/RippledDocs.cmake:41 (verbose_find_path)
.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-src/CMakeLists.txt:65 (include)
-- Using 4 cores for ExternalProject builds.
-- Coverage disabled
-- Configuring done
-- Generating done
-- Build files have been written to: /home/eah/dev/validator-keys-tool/build/cmake/clang.Debug.OFF
$ cmake --build build/cmake/clang.Debug.OFF/ -j8
[ 0%] Linking C static library libed25519-donna.a
[ 0%] Linking C static library libsecp256k1.a
[ 0%] Built target ed25519-donna
[ 0%] Built target secp256k1
Scanning dependencies of target xrpl_core
[ 8%] Linking CXX static library libxrpl_core.a
[100%] Built target xrpl_core
Scanning dependencies of target validator-keys
[100%] Building CXX object CMakeFiles/validator-keys.dir/src/ValidatorKeys.cpp.o
[100%] Building CXX object CMakeFiles/validator-keys.dir/src/ValidatorKeysTool.cpp.o
[100%] Building CXX object CMakeFiles/validator-keys.dir/src/test/ValidatorKeys_test.cpp.o
[100%] Building CXX object CMakeFiles/validator-keys.dir/src/test/ValidatorKeysTool_test.cpp.o
[100%] Linking CXX executable validator-keys
/usr/bin/ld: ../../../.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-build/libxrpl_core.a(STAmount.cpp.o): in function `cpp_regex_traits_char_layer':
/home/eah/dev/boost/boost/regex/v4/cpp_regex_traits.hpp:370: undefined reference to `boost::re_detail_107000::cpp_regex_traits_char_layer<char>::init()'
/usr/bin/ld: ../../../.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-build/libxrpl_core.a(STAmount.cpp.o): in function `boost::re_detail_107000::cpp_regex_traits_implementation<char>::init()':
/home/eah/dev/boost/boost/regex/v4/cpp_regex_traits.hpp:721: undefined reference to `boost::re_detail_107000::raise_runtime_error(std::runtime_error const&)'
/usr/bin/ld: /home/eah/dev/boost/boost/regex/v4/cpp_regex_traits.hpp:736: undefined reference to `boost::re_detail_107000::get_default_error_string(boost::regex_constants::error_type)'
/usr/bin/ld: ../../../.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-build/libxrpl_core.a(STAmount.cpp.o): in function `boost::re_detail_107000::cpp_regex_traits_implementation<char>::error_string[abi:cxx11](boost::regex_constants::error_type) const':
/home/eah/dev/boost/boost/regex/v4/cpp_regex_traits.hpp:447: undefined reference to `boost::re_detail_107000::get_default_error_string(boost::regex_constants::error_type)'
/usr/bin/ld: /home/eah/dev/boost/boost/regex/v4/cpp_regex_traits.hpp:449: undefined reference to `boost::re_detail_107000::get_default_error_string(boost::regex_constants::error_type)'
/usr/bin/ld: ../../../.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-build/libxrpl_core.a(STAmount.cpp.o): in function `boost::re_detail_107000::basic_regex_creator<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::insert_state(long, boost::re_detail_107000::syntax_element_type, unsigned long)':
/home/eah/dev/boost/boost/regex/v4/basic_regex_creator.hpp:322: undefined reference to `boost::re_detail_107000::raw_storage::insert(unsigned long, unsigned long)'
/usr/bin/ld: ../../../.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-build/libxrpl_core.a(STAmount.cpp.o): in function `boost::re_detail_107000::raw_storage::extend(unsigned long)':
/home/eah/dev/boost/boost/regex/v4/regex_raw_buffer.hpp:131: undefined reference to `boost::re_detail_107000::raw_storage::resize(unsigned long)'
/usr/bin/ld: ../../../.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-build/libxrpl_core.a(STAmount.cpp.o): in function `boost::re_detail_107000::cpp_regex_traits_implementation<char>::lookup_collatename[abi:cxx11](char const*, char const*) const':
/home/eah/dev/boost/boost/regex/v4/cpp_regex_traits.hpp:680: undefined reference to `boost::re_detail_107000::lookup_default_collate_name(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/ld: ../../../.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-build/libxrpl_core.a(STAmount.cpp.o): in function `boost::re_detail_107000::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::match_imp()':
/home/eah/dev/boost/boost/regex/v4/perl_matcher_common.hpp:221: undefined reference to `boost::re_detail_107000::verify_options(unsigned int, boost::regex_constants::_match_flags)'
/usr/bin/ld: ../../../.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-build/libxrpl_core.a(STAmount.cpp.o): in function `save_state_init':
/home/eah/dev/boost/boost/regex/v4/perl_matcher_non_recursive.hpp:110: undefined reference to `boost::re_detail_107000::get_mem_block()'
/usr/bin/ld: ../../../.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-build/libxrpl_core.a(STAmount.cpp.o): in function `~save_state_init':
/home/eah/dev/boost/boost/regex/v4/perl_matcher_non_recursive.hpp:118: undefined reference to `boost::re_detail_107000::put_mem_block(void*)'
/usr/bin/ld: ../../../.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-build/libxrpl_core.a(STAmount.cpp.o): in function `void boost::re_detail_107000::raise_error<boost::regex_traits_wrapper<boost::regex_traits<char, boost::cpp_regex_traits<char> > > >(boost::regex_traits_wrapper<boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::error_type)':
/home/eah/dev/boost/boost/regex/pattern_except.hpp:75: undefined reference to `boost::re_detail_107000::raise_runtime_error(std::runtime_error const&)'
/usr/bin/ld: ../../../.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-build/libxrpl_core.a(STAmount.cpp.o): in function `boost::re_detail_107000::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::extend_stack()':
/home/eah/dev/boost/boost/regex/v4/perl_matcher_non_recursive.hpp:236: undefined reference to `boost::re_detail_107000::get_mem_block()'
/usr/bin/ld: ../../../.nih_c/unix_makefiles/Clang_10.0.1/Debug/rippled_src-build/libxrpl_core.a(STAmount.cpp.o): in function `boost::re_detail_107000::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::unwind_extra_block(bool)':
/home/eah/dev/boost/boost/regex/v4/perl_matcher_non_recursive.hpp:1371: undefined reference to `boost::re_detail_107000::put_mem_block(void*)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [CMakeFiles/validator-keys.dir/build.make:145: validator-keys] Error 1
make[1]: *** [CMakeFiles/Makefile2:135: CMakeFiles/validator-keys.dir/all] Error 2
make: *** [Makefile:130: all] Error 2