support compress & decompress by stream(block by block) #384
Cirrus CI / main freebsd_instance:family/freebsd-13-3
failed
Aug 12, 2024 in 23s
Task Summary
Instruction main failed in 00:07
Details
✅ 00:00 clone
✅ 00:12 install
❌ 00:07 main
[ 20%] Building C object CMakeFiles/libdeflate_static.dir/lib/gzip_decompress.c.o
[ 22%] Linking C static library libdeflate.a
[ 22%] Built target libdeflate_static
[ 24%] Building C object CMakeFiles/libdeflate_shared.dir/lib/arm/cpu_features.c.o
[ 26%] Building C object CMakeFiles/libdeflate_shared.dir/lib/utils.c.o
[ 28%] Building C object CMakeFiles/libdeflate_shared.dir/lib/x86/cpu_features.c.o
[ 30%] Building C object CMakeFiles/libdeflate_shared.dir/lib/deflate_compress.c.o
/tmp/cirrus-ci-build/lib/deflate_compress.c:3677:20: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
3677 | const u8 * const in_max_block_end = in_next + dict_nbytes;
| ^
/tmp/cirrus-ci-build/lib/deflate_compress.c:4298:2: warning: no newline at end of file [-Wnewline-eof]
4298 | }
| ^
2 warnings generated.
[ 32%] Building C object CMakeFiles/libdeflate_shared.dir/lib/deflate_decompress.c.o
[ 33%] Building C object CMakeFiles/libdeflate_shared.dir/lib/adler32.c.o
[ 35%] Building C object CMakeFiles/libdeflate_shared.dir/lib/zlib_compress.c.o
[ 37%] Building C object CMakeFiles/libdeflate_shared.dir/lib/zlib_decompress.c.o
[ 39%] Building C object CMakeFiles/libdeflate_shared.dir/lib/crc32.c.o
[ 41%] Building C object CMakeFiles/libdeflate_shared.dir/lib/gzip_compress.c.o
[ 43%] Building C object CMakeFiles/libdeflate_shared.dir/lib/gzip_decompress.c.o
[ 45%] Linking C shared library libdeflate.so
[ 45%] Built target libdeflate_shared
[ 47%] Building C object programs/CMakeFiles/libdeflate_prog_utils.dir/prog_util.c.o
[ 49%] Building C object programs/CMakeFiles/libdeflate_prog_utils.dir/tgetopt.c.o
[ 50%] Linking C static library libdeflate_prog_utils.a
[ 50%] Built target libdeflate_prog_utils
[ 52%] Building C object programs/CMakeFiles/libdeflate-gzip.dir/gzip.c.o
/tmp/cirrus-ci-build/programs/gzip.c:292:16: error: too many arguments to function call, expected 5, have 6
291 | ret = gzips_decompress_by_stream(decompressor, &in, stbuf.st_size, (options->test?0:&out),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
292 | NULL, NULL);
| ^~~~
/usr/include/sys/_null.h:32:14: note: expanded from macro 'NULL'
32 | #define NULL ((void *)0)
| ^~~~~~~~~~~
/tmp/cirrus-ci-build/programs/gzip_decompress_by_stream.h:29:5: note: 'gzips_decompress_by_stream' declared here
29 | int gzips_decompress_by_stream(struct libdeflate_decompressor *decompressor,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
30 | struct file_stream *in, u64 in_size, struct file_stream *out,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31 | u64* actual_out_nbytes_ret);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
*** Error code 1
Stop.
make[2]: stopped in /tmp/cirrus-ci-build/build
*** Error code 1
Stop.
make[1]: stopped in /tmp/cirrus-ci-build/build
*** Error code 1
Stop.
make: stopped in /tmp/cirrus-ci-build/build
Loading