Add piece cache feature for fileless torrent operation #8039
Cirrus CI / main
failed
Sep 24, 2025 in 5m 14s
Task Summary
Instruction build_cmake failed in 04:29
Details
✅ 00:01 clone
✅ 00:40 install
❌ 04:29 build_cmake
| ^
| static
/tmp/cirrus-ci-build/examples/client_test_piece_cache.cpp:973:13: error: no previous prototype for function 'timestamp' [-Werror,-Wmissing-prototypes]
973 | char const* timestamp()
| ^
/tmp/cirrus-ci-build/examples/client_test_piece_cache.cpp:973:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
973 | char const* timestamp()
| ^
| static
/tmp/cirrus-ci-build/examples/client_test_piece_cache.cpp:987:6: error: no previous prototype for function 'print_alert' [-Werror,-Wmissing-prototypes]
987 | void print_alert(lt::alert const* a, std::string& str)
| ^
/tmp/cirrus-ci-build/examples/client_test_piece_cache.cpp:987:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
987 | void print_alert(lt::alert const* a, std::string& str)
| ^
| static
/tmp/cirrus-ci-build/examples/client_test_piece_cache.cpp:1044:33: error: implicit conversion changes signedness: 'const int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
1040 | cache_manager->cache_piece_data(
| ~~~~~~~~~~~~~~~~
1041 | ih,
1042 | rp->piece,
1043 | rp->buffer.get(),
1044 | rp->size
| ~~~~^~~~
/tmp/cirrus-ci-build/examples/client_test_piece_cache.cpp:1391:6: error: no previous prototype for function 'print_compact_piece' [-Werror,-Wmissing-prototypes]
1391 | void print_compact_piece(lt::partial_piece_info const& pp, std::string& out)
| ^
/tmp/cirrus-ci-build/examples/client_test_piece_cache.cpp:1391:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1391 | void print_compact_piece(lt::partial_piece_info const& pp, std::string& out)
| ^
| static
/tmp/cirrus-ci-build/examples/client_test_piece_cache.cpp:1411:6: error: no previous prototype for function 'print_piece' [-Werror,-Wmissing-prototypes]
1411 | void print_piece(lt::partial_piece_info const& pp
| ^
/tmp/cirrus-ci-build/examples/client_test_piece_cache.cpp:1411:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1411 | void print_piece(lt::partial_piece_info const& pp
| ^
| static
/tmp/cirrus-ci-build/examples/client_test_piece_cache.cpp:1468:6: error: no previous prototype for function 'is_resume_file' [-Werror,-Wmissing-prototypes]
1468 | bool is_resume_file(std::string const& s)
| ^
/tmp/cirrus-ci-build/examples/client_test_piece_cache.cpp:1468:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1468 | bool is_resume_file(std::string const& s)
| ^
| static
/tmp/cirrus-ci-build/examples/client_test_piece_cache.cpp:1480:6: error: no previous prototype for function 'print_usage' [-Werror,-Wmissing-prototypes]
1480 | void print_usage()
| ^
/tmp/cirrus-ci-build/examples/client_test_piece_cache.cpp:1480:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1480 | void print_usage()
| ^
| static
8 errors generated.
[199/427] Building CXX object examples/CMakeFiles/client_test_piece_cache.dir/torrent_view.cpp.o
[200/427] Building CXX object examples/CMakeFiles/client_test_piece_cache.dir/session_view.cpp.o
ninja: build stopped: subcommand failed.
Loading