Package: src:zsync Version: 0.6.2-5 Severity: important Tags: sid trixie User: debian-...@lists.debian.org Usertags: ftbfs-gcc-14
[This bug is targeted to the upcoming trixie release] Please keep this issue open in the bug tracker for the package it was filed for. If a fix in another package is required, please file a bug for the other package (or clone), and add a block in this package. Please keep the issue open until the package can be built in a follow-up test rebuild. The package fails to build in a test rebuild on at least amd64 with gcc-14/g++-14, but succeeds to build with gcc-13/g++-13. The severity of this report will be raised before the trixie release. The full build log can be found at: http://qa-logs.debian.net/2024/07/01/zsync_0.6.2-5_unstable_gccexp.log The last lines of the build log are at the end of this report. To build with GCC 14, either set CC=gcc-14 CXX=g++-14 explicitly, or install the gcc, g++, gfortran, ... packages from experimental. apt-get -t=experimental install g++ Common build failures are new warnings resulting in build failures with -Werror turned on, or new/dropped symbols in Debian symbols files. For other C/C++ related build failures see the porting guide at http://gcc.gnu.org/gcc-14/porting_to.html [...] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/string.h:26, from sha1test.c:18: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from zmap.c:26: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ zsync.c: In function ‘zsync_begin’: zsync.c:154:44: warning: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Wcalloc-transposed-args] 154 | struct zsync_state *zs = calloc(sizeof *zs, 1); | ^ zsync.c:154:44: note: earlier argument should specify number of elements, later size of each element zsync.c:213:35: warning: comparison of unsigned expression in ‘< 0’ is always false [-Wtype-limits] 213 | if (zs->blocksize < 0 || (zs->blocksize & (zs->blocksize - 1))) { | ^ zsync.c:243:68: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] 243 | if (fread(zblock, sizeof *zblock, nzblocks, f) < nzblocks) { | ^ zsync.c: In function ‘zsync_get_urls’: zsync.c:443:18: error: returning ‘char **’ from a function with incompatible return type ‘const char * const*’ [-Wincompatible-pointer-types] 443 | return zs->zurl; | ~~^~~~~~ zsync.c:448:18: error: returning ‘char **’ from a function with incompatible return type ‘const char * const*’ [-Wincompatible-pointer-types] 448 | return zs->url; | ~~^~~~~ zsync.c: In function ‘zsync_recompress’: zsync.c:704:55: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘long int’ [-Wsign-compare] 704 | if (fwrite(p, 1, r - (p - buf), zout) != r - (p - buf)) { | ^~ zsync.c: In function ‘zsync_receive_data_compressed’: zsync.c:925:22: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 925 | zr->strm.next_in = buf; | ^ zsync.c:928:42: warning: comparison of integer expressions of different signedness: ‘off_t’ {aka ‘long int’} and ‘uLong’ {aka ‘long unsigned int’} [-Wsign-compare] 928 | if (zr->strm.total_in == 0 || offset != zr->strm.total_in) { | ^~ zsync.c:930:43: error: passing argument 4 of ‘zsync_configure_zstream_for_zdata’ from incompatible pointer type [-Wincompatible-pointer-types] 930 | &(zr->outoffset)); | ^~~~~~~~~~~~~~~~ | | | off_t * {aka long int *} zsync.c:771:65: note: expected ‘long long int *’ but argument is of type ‘off_t *’ {aka ‘long int *’} 771 | long zoffset, long long *poutoffset) { | ~~~~~~~~~~~^~~~~~~~~~ zsync.c:942:26: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 942 | zr->strm.next_in = buf; | ^ zsync.c:954:17: warning: this statement may fall through [-Wimplicit-fallthrough=] 954 | eoz = 1; | ~~~~^~~ zsync.c:955:9: note: here 955 | case Z_BUF_ERROR: | ^~~~ make[3]: *** [Makefile:561: zsync.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory '/<<PKGBUILDDIR>>/libzsync' make[2]: *** [Makefile:750: all-recursive] Error 1 make[2]: Leaving directory '/<<PKGBUILDDIR>>' make[1]: *** [Makefile:584: all] Error 2 make[1]: Leaving directory '/<<PKGBUILDDIR>>' dh_auto_build: error: make -j8 returned exit code 2 make: *** [debian/rules:16: build] Error 25 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2