Bug#1075346: openwince-jtag: ftbfs with GCC-14
Package: src:openwince-jtag
Version: 0.5.1-10
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/openwince-jtag_0.5.1-10_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
[...]
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/openwince -I/usr/include/openwince/device -I/usr/include/openwince/arm -I.. -I../include -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -c `test -f 'bsdl2jtag.c' || echo './'`bsdl2jtag.c
jtag.c: In function ‘jtag_parse_file’:
jtag.c:209:39: error: passing argument 2 of ‘getline’ from incompatible pointer type [-Wincompatible-pointer-types]
209 | while (go && (getline( &line, &n, f ) != -1))
| ^~
| |
| int *
In file included from /usr/include/stdio.h:960,
from jtag.c:27:
/usr/include/x86_64-linux-gnu/bits/stdio.h:118:36: note: expected ‘size_t *’ {aka ‘long unsigned int *’} but argument is of type ‘int *’
118 | getline (char **__lineptr, size_t *__n, FILE *__stream)
| ~~~~~~~~^~~
bsdl2jtag.c: In function ‘endline’:
bsdl2jtag.c:217:48: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
217 | if(!strlen(att)==IR_l) {
| ^~
bsdl2jtag.c:217:36: note: add parentheses around left hand side expression to silence this warning
217 | if(!strlen(att)==IR_l) {
| ^~~~~~~~~~~~
| ( )
make[4]: *** [Makefile:333: jtag.o] Error 1
make[4]: *** Waiting for unfinished jobs....
bsdl2jtag.c: In function ‘main’:
bsdl2jtag.c:320:37: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
320 | if(b!='\n') fgets(line, 1023, infile);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
flash.c: In function ‘flashmsbin’:
flash.c:129:17: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
129 | fread( &sync, sizeof (char), 7, f );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flash.c:143:17: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
143 | fread( &start, sizeof start, 1, f );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flash.c:144:17: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
144 | fread( &len, sizeof len, 1, f );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flash.c:159:17: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
159 | fread( &a, sizeof a, 1, f );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
flash.c:160:17: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
160 | fread( &l, sizeof l, 1, f );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
flash.c:161:17: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
161 | fread( &c, sizeof c, 1, f );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
flash.c:180:25: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
180 | fread( &data, sizeof data, 1, f );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flash.c:199:17: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
199 | fread( &a, sizeof a, 1, f );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
flash.c:200:17: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
200 | fread( &l, sizeof l, 1, f );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
flash.c:201:17: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
201 | fread( &c, sizeof c, 1, f );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
flash.c:220:25: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
220 | fread( &data, sizeof data, 1, f );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[3]: *** [Makefile:354: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:267: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:222: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Reply to: