Skip to content

tinyformat: don't throw run-time errors for string literals

Cirrus CI / no wallet, libbitcoinkernel failed Sep 26, 2024 in 18m 59s

Task Summary

Instruction ci failed in 18:47

Details

✅ 00:04 clone
✅ 00:01 merge_base
❌ 18:47 ci

Dependencies file "src/test/CMakeFiles/test_bitcoin.dir/sighash_tests.cpp.o.d" is newer than depends file "/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/CMakeFiles/test_bitcoin.dir/compiler_depend.internal".
Dependencies file "src/test/CMakeFiles/test_bitcoin.dir/sigopcount_tests.cpp.o.d" is newer than depends file "/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/CMakeFiles/test_bitcoin.dir/compiler_depend.internal".
Dependencies file "src/test/CMakeFiles/test_bitcoin.dir/skiplist_tests.cpp.o.d" is newer than depends file "/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/CMakeFiles/test_bitcoin.dir/compiler_depend.internal".
Dependencies file "src/test/CMakeFiles/test_bitcoin.dir/sock_tests.cpp.o.d" is newer than depends file "/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/CMakeFiles/test_bitcoin.dir/compiler_depend.internal".
Dependencies file "src/test/CMakeFiles/test_bitcoin.dir/span_tests.cpp.o.d" is newer than depends file "/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/CMakeFiles/test_bitcoin.dir/compiler_depend.internal".
Dependencies file "src/test/CMakeFiles/test_bitcoin.dir/streams_tests.cpp.o.d" is newer than depends file "/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/CMakeFiles/test_bitcoin.dir/compiler_depend.internal".
Dependencies file "src/test/CMakeFiles/test_bitcoin.dir/sync_tests.cpp.o.d" is newer than depends file "/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/CMakeFiles/test_bitcoin.dir/compiler_depend.internal".
Dependencies file "src/test/CMakeFiles/test_bitcoin.dir/system_tests.cpp.o.d" is newer than depends file "/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/CMakeFiles/test_bitcoin.dir/compiler_depend.internal".
Dependencies file "src/test/CMakeFiles/test_bitcoin.dir/timeoffsets_tests.cpp.o.d" is newer than depends file "/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/CMakeFiles/test_bitcoin.dir/compiler_depend.internal".
Dependencies file "src/test/CMakeFiles/test_bitcoin.dir/torcontrol_tests.cpp.o.d" is newer than depends file "/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/CMakeFiles/test_bitcoin.dir/compiler_depend.internal".
Dependencies file "src/test/CMakeFiles/test_bitcoin.dir/transaction_tests.cpp.o.d" is newer than depends file "/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/CMakeFiles/test_bitcoin.dir/compiler_depend.internal".
Dependencies file "src/test/CMakeFiles/test_bitcoin.dir/translation_tests.cpp.o.d" is newer than depends file "/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/CMakeFiles/test_bitcoin.dir/compiler_depend.internal".
Dependencies file "src/test/CMakeFiles/test_bitcoin.dir/txindex_tests.cpp.o.d" is newer than depends file "/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/CMakeFiles/test_bitcoin.dir/compiler_depend.internal".
Dependencies file "src/test/CMakeFiles/test_bitcoin.dir/txpackage_tests.cpp.o.d" is newer than depends file "/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/CMakeFiles/test_bitcoin.dir/compiler_depend.internal".
Dependencies file "src/test/CMakeFiles/test_bitcoin.dir/txreconciliation_tests.cpp.o.d" is newer than depends file "/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/CMakeFiles/test_bitcoin.dir/compiler_depend.internal".
Dependencies file "src/test/CMakeFiles/test_bitcoin.dir/txrequest_tests.cpp.o.d" is newer than depends file "/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/CMakeFiles/test_bitcoin.dir/compiler_depend.internal".
Dependencies file "src/test/CMakeFiles/test_bitcoin.dir/txvalidation_tests.cpp.o.d" is newer than depends file "/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/CMakeFiles/test_bitcoin.dir/compiler_depend.internal".
Dependencies file "src/test/CMakeFiles/test_bitcoin.dir/txvalidationcache_tests.cpp.o.d" is newer than depends file "/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/CMakeFiles/test_bitcoin.dir/compiler_depend.internal".
Dependencies file "src/test/CMakeFiles/test_bitcoin.dir/uint256_tests.cpp.o.d" is newer than depends file "/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/CMakeFiles/test_bitcoin.dir/compiler_depend.internal".
Dependencies file "src/test/CMakeFiles/test_bitcoin.dir/util_string_tests.cpp.o.d" is newer than depends file "/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test/CMakeFiles/test_bitcoin.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target test_bitcoin
gmake[2]: Leaving directory '/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu'
/usr/bin/gmake  -f src/test/CMakeFiles/test_bitcoin.dir/build.make src/test/CMakeFiles/test_bitcoin.dir/build
gmake[2]: Entering directory '/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu'
[ 71%] Building CXX object src/test/CMakeFiles/test_bitcoin.dir/util_string_tests.cpp.o
cd /ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src/test && /usr/bin/ccache /usr/bin/clang++-16 -stdlib=libc++ -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION -I/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu/src -I/ci_container_base/src -I/ci_container_base/src/univalue/include -I/ci_container_base/src/minisketch/include -I/ci_container_base/src/secp256k1/include -isystem /ci_container_base/depends/x86_64-pc-linux-gnu/include -pipe -std=c++20 -O2 -O2 -g -fPIE -fvisibility=hidden -fdebug-prefix-map=/ci_container_base=. -fmacro-prefix-map=/ci_container_base=. -Werror -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 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -Wstack-protector -fstack-protector-all -fcf-protection=full -fstack-clash-protection -std=c++20 -MD -MT src/test/CMakeFiles/test_bitcoin.dir/util_string_tests.cpp.o -MF CMakeFiles/test_bitcoin.dir/util_string_tests.cpp.o.d -o CMakeFiles/test_bitcoin.dir/util_string_tests.cpp.o -c /ci_container_base/src/test/util_string_tests.cpp  
/ci_container_base/src/test/util_string_tests.cpp:96:27: error: no member named 'view' in 'std::ostringstream'
    BOOST_CHECK_EQUAL(oss.view(), R"(Error "tinyformat: Too many conversion specifiers in format string" while formatting log message: "%.*f")");
                      ~~~ ^
/ci_container_base/depends/x86_64-pc-linux-gnu/include/boost/test/tools/old/interface.hpp:155:81: note: expanded from macro 'BOOST_CHECK_EQUAL'
    ::boost::test_tools::tt_detail::equal_impl_frwd(), "", CHECK, CHECK_EQUAL, (L)(R) )
                                                                                ^
/ci_container_base/depends/x86_64-pc-linux-gnu/include/boost/test/tools/old/interface.hpp:74:61: note: expanded from macro 'BOOST_TEST_TOOL_IMPL'
        BOOST_JOIN( BOOST_TEST_TOOL_PASS_ARGS, frwd_type )( ARGS ) );           \
                                                            ^~~~
/ci_container_base/depends/x86_64-pc-linux-gnu/include/boost/test/tools/old/interface.hpp:57:57: note: expanded from macro 'BOOST_TEST_TOOL_PASS_ARGS0'
    BOOST_PP_SEQ_FOR_EACH( BOOST_TEST_TOOL_PASS_ARG, _, ARGS )
                                                        ^~~~
note: (skipping 13 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/ci_container_base/depends/x86_64-pc-linux-gnu/include/boost/preprocessor/seq/elem.hpp:45:60: note: expanded from macro 'BOOST_PP_SEQ_ELEM_II'
#    define BOOST_PP_SEQ_ELEM_II(im) BOOST_PP_SEQ_ELEM_III(im)
                                                           ^~
/ci_container_base/depends/x86_64-pc-linux-gnu/include/boost/preprocessor/seq/elem.hpp:46:41: note: expanded from macro 'BOOST_PP_SEQ_ELEM_III'
#    define BOOST_PP_SEQ_ELEM_III(x, _) x
                                        ^
/ci_container_base/depends/x86_64-pc-linux-gnu/include/boost/test/tools/old/interface.hpp:53:49: note: expanded from macro 'BOOST_TEST_TOOL_PASS_ARG'
#define BOOST_TEST_TOOL_PASS_ARG( r, _, arg ) , arg, BOOST_STRINGIZE( arg )
                                                ^~~
1 error generated.
gmake[2]: *** [src/test/CMakeFiles/test_bitcoin.dir/build.make:1582: src/test/CMakeFiles/test_bitcoin.dir/util_string_tests.cpp.o] Error 1
gmake[2]: Leaving directory '/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu'
gmake[1]: *** [CMakeFiles/Makefile2:2528: src/test/CMakeFiles/test_bitcoin.dir/all] Error 2
gmake[1]: Leaving directory '/ci_container_base/ci/scratch/build-x86_64-pc-linux-gnu'
gmake: *** [Makefile:146: all] Error 2

Exit status: 2