Bug#1074965: freecdb: ftbfs with GCC-14
Package: src:freecdb
Version: 0.77
Severity: important
Tags: sid trixie
User: debian-gcc@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/freecdb_0.77_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
[...]
14 | if (!n) return; *--to = *--from; --n;
| ^
byte_cr.c:15:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
15 | if (!n) return; *--to = *--from; --n;
| ^~
byte_cr.c:15:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
15 | if (!n) return; *--to = *--from; --n;
| ^
byte_cr.c:16:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
16 | if (!n) return; *--to = *--from; --n;
| ^~
byte_diff.c: In function ‘byte_diff’:
byte_diff.c:11:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
11 | if (!n) return 0; if (*s != *t) break; ++s; ++t; --n;
| ^~
byte_cr.c:16:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
16 | if (!n) return; *--to = *--from; --n;
| ^
byte_diff.c:11:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
11 | if (!n) return 0; if (*s != *t) break; ++s; ++t; --n;
| ^~
byte_diff.c:12:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
12 | if (!n) return 0; if (*s != *t) break; ++s; ++t; --n;
| ^~
byte_diff.c:12:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
12 | if (!n) return 0; if (*s != *t) break; ++s; ++t; --n;
| ^~
byte_diff.c:13:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
13 | if (!n) return 0; if (*s != *t) break; ++s; ++t; --n;
| ^~
byte_diff.c:13:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
13 | if (!n) return 0; if (*s != *t) break; ++s; ++t; --n;
| ^~
byte_diff.c:14:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
14 | if (!n) return 0; if (*s != *t) break; ++s; ++t; --n;
| ^~
byte_diff.c:14:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
14 | if (!n) return 0; if (*s != *t) break; ++s; ++t; --n;
| ^~
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -c -o cdb.o cdb.c
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -c -o cdb_hash.o cdb_hash.c
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -c -o cdb_make.o cdb_make.c
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -c -o error.o error.c
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -c -o error_str.o error_str.c
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -c -o fmt_ulong.o fmt_ulong.c
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -c -o open_trunc.o open_trunc.c
cdb_make.c: In function ‘cdb_make_start’:
cdb_make.c:18:21: error: passing argument 2 of ‘buffer_init’ from incompatible pointer type [-Wincompatible-pointer-types]
18 | buffer_init(&c->b,write,fd,c->bspace,sizeof c->bspace);
| ^~~~~
| |
| ssize_t (*)(int, const void *, size_t) {aka long int (*)(int, const void *, long unsigned int)}
In file included from cdb_make.h:6,
from cdb_make.c:8:
buffer.h:18:34: note: expected ‘int (*)()’ but argument is of type ‘ssize_t (*)(int, const void *, size_t)’ {aka ‘long int (*)(int, const void *, long unsigned int)’}
18 | extern void buffer_init(buffer *,int (*)(),int,char *,unsigned int);
| ^~~~~~~~~
cdb.c: In function ‘cdb_init’:
cdb.c:37:11: warning: the comparison will always evaluate as ‘true’ for the pointer operand in ‘x + 1’ must not be NULL [-Waddress]
37 | if (x + 1) {
| ^
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -c -o scan_ulong.o scan_ulong.c
make[2]: *** [<builtin>: cdb_make.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" "CFLAGS=-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall" returned exit code 2
make[1]: *** [debian/rules:7: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:4: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Reply to: