Skip to content

kernel: Add pure kernel bitcoin-chainstate

Cirrus CI / no wallet, libbitcoinkernel failed Aug 6, 2024 in 14m 23s

Task Summary

Instruction ci failed in 14:15

Details

✅ 00:03 clone
✅ 00:01 merge_base
❌ 14:15 ci

/bin/bash ../libtool  --tag=CXX --preserve-dup-deps  --mode=link /usr/bin/ccache clang++-16 -stdlib=libc++ -std=c++20 -g -O2 -fvisibility=hidden -fdebug-prefix-map=/ci_container_base/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu=. -Wstack-protector -fstack-protector-all -fcf-protection=full -fstack-clash-protection -Wall -Wextra -Wgnu -Wformat -Wformat-security -Wvla -Wshadow-field -Wthread-safety -Wloop-analysis -Wredundant-decls -Wunused-member-function -Wdate-time -Wconditional-uninitialized -Woverloaded-virtual -Wsuggest-override -Wimplicit-fallthrough -Wunreachable-code -Wdocumentation -Wself-assign -Wundef -Wno-unused-parameter -Werror  -fPIE -pipe -std=c++20 -O2  -Wl,--exclude-libs,ALL  -Wl,-z,relro -Wl,-z,now -Wl,-z,separate-code -pie   -pthread -lpthread  -static -L/ci_container_base/depends/x86_64-pc-linux-gnu/lib  -o bitcoin-chainstate bitcoin_chainstate-bitcoin-chainstate.o libbitcoinkernel.la secp256k1/libsecp256k1.la 
libtool: link: /usr/bin/ccache clang++-16 -stdlib=libc++ -std=c++20 -g -O2 -fvisibility=hidden -fdebug-prefix-map=/ci_container_base/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu=. -Wstack-protector -fstack-protector-all -fcf-protection=full -fstack-clash-protection -Wall -Wextra -Wgnu -Wformat -Wformat-security -Wvla -Wshadow-field -Wthread-safety -Wloop-analysis -Wredundant-decls -Wunused-member-function -Wdate-time -Wconditional-uninitialized -Woverloaded-virtual -Wsuggest-override -Wimplicit-fallthrough -Wunreachable-code -Wdocumentation -Wself-assign -Wundef -Wno-unused-parameter -Werror -fPIE -pipe -std=c++20 -O2 -Wl,--exclude-libs -Wl,ALL -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-z -Wl,separate-code -pie -pthread -o bitcoin-chainstate bitcoin_chainstate-bitcoin-chainstate.o  -L/ci_container_base/depends/x86_64-pc-linux-gnu/lib ./.libs/libbitcoinkernel.a -lpthread secp256k1/.libs/libsecp256k1.a -pthread
/usr/bin/ccache clang++-16 -stdlib=libc++ -std=c++20 -DHAVE_CONFIG_H -I. -I../src/config  -fmacro-prefix-map=/ci_container_base/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu=. -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -DHAVE_BUILD_INFO -DPROVIDE_FUZZ_MAIN_FUNCTION -I/ci_container_base/depends/x86_64-pc-linux-gnu/include/  -g -O2 -fvisibility=hidden -fdebug-prefix-map=/ci_container_base/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu=. -Wstack-protector -fstack-protector-all -fcf-protection=full -fstack-clash-protection -Wall -Wextra -Wgnu -Wformat -Wformat-security -Wvla -Wshadow-field -Wthread-safety -Wloop-analysis -Wredundant-decls -Wunused-member-function -Wdate-time -Wconditional-uninitialized -Woverloaded-virtual -Wsuggest-override -Wimplicit-fallthrough -Wunreachable-code -Wdocumentation -Wself-assign -Wundef -Wno-unused-parameter -Werror  -fPIE -pipe -std=c++20 -O2  -c -o kernel/bitcoin_chainstate-bitcoin-chainstate.o `test -f 'kernel/bitcoin-chainstate.cpp' || echo './'`kernel/bitcoin-chainstate.cpp
In file included from kernel/bitcoin-chainstate.cpp:1:
./kernel/bitcoinkernel_wrapper.h:348:95: error: implicit instantiation of undefined template 'std::basic_string<char>'
        : m_options{kernel_chainstate_manager_options_create(context.m_context.get(), data_dir.c_str(), &error)}
                                                                                              ^
/usr/lib/llvm-16/bin/../include/c++/v1/__fwd/string.h:45:28: note: template is declared here
class _LIBCPP_TEMPLATE_VIS basic_string;
                           ^
In file included from kernel/bitcoin-chainstate.cpp:1:
./kernel/bitcoinkernel_wrapper.h:369:90: error: implicit instantiation of undefined template 'std::basic_string<char>'
        : m_options{kernel_block_manager_options_create(context.m_context.get(), data_dir.c_str(), &error)}
                                                                                         ^
/usr/lib/llvm-16/bin/../include/c++/v1/__fwd/string.h:45:28: note: template is declared here
class _LIBCPP_TEMPLATE_VIS basic_string;
                           ^
In file included from kernel/bitcoin-chainstate.cpp:1:
In file included from ./kernel/bitcoinkernel_wrapper.h:11:
/usr/lib/llvm-16/bin/../include/c++/v1/span:535:38: error: implicit instantiation of undefined template 'std::basic_string<char>'
        return iterator(this, data() + size());
                                     ^
./kernel/bitcoinkernel_wrapper.h:573:31: note: in instantiation of member function 'std::span<const std::basic_string<char>>::end' requested here
        for (const auto& path : paths) {
                              ^
/usr/lib/llvm-16/bin/../include/c++/v1/__fwd/string.h:45:28: note: template is declared here
class _LIBCPP_TEMPLATE_VIS basic_string;
                           ^
In file included from kernel/bitcoin-chainstate.cpp:1:
In file included from ./kernel/bitcoinkernel_wrapper.h:10:
In file included from /usr/lib/llvm-16/bin/../include/c++/v1/memory:925:
In file included from /usr/lib/llvm-16/bin/../include/c++/v1/iterator:717:
/usr/lib/llvm-16/bin/../include/c++/v1/__iterator/wrap_iter.h:101:9: error: implicit instantiation of undefined template 'std::basic_string<char>'
        ++__i_;
        ^
./kernel/bitcoinkernel_wrapper.h:573:31: note: in instantiation of member function 'std::__wrap_iter<const std::basic_string<char> *>::operator++' requested here
        for (const auto& path : paths) {
                              ^
/usr/lib/llvm-16/bin/../include/c++/v1/__fwd/string.h:45:28: note: template is declared here
class _LIBCPP_TEMPLATE_VIS basic_string;
                           ^
In file included from kernel/bitcoin-chainstate.cpp:1:
./kernel/bitcoinkernel_wrapper.h:574:35: error: implicit instantiation of undefined template 'std::basic_string<char>'
            c_paths.push_back(path.c_str());
                                  ^
/usr/lib/llvm-16/bin/../include/c++/v1/__fwd/string.h:45:28: note: template is declared here
class _LIBCPP_TEMPLATE_VIS basic_string;
                           ^
5 errors generated.
make[2]: *** [Makefile:16296: kernel/bitcoin_chainstate-bitcoin-chainstate.o] Error 1
make[2]: Leaving directory '/ci_container_base/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/src'
make[1]: *** [Makefile:20398: install-recursive] Error 1
make[1]: Leaving directory '/ci_container_base/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/src'
make: *** [Makefile:804: install-recursive] Error 1

Exit status: 2