Bug#1075032: goban: ftbfs with GCC-14
Package: src:goban
Version: 1.1-7
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/goban_1.1-7_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
[...]
| ~~~~~~~~~~~~~~~^~~~~~~~~
main.c:60:20: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
60 | signal(SIGHUP, sigHandler);
| ^~~~~~~~~~
| |
| void * (*)()
/usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void * (*)()’
88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
| ~~~~~~~~~~~~~~~^~~~~~~~~
make[3]: *** [Makefile:678: goban-main.o] Error 1
make[3]: *** Waiting for unfinished jobs....
match.c: In function ‘newKomi’:
match.c:498:24: warning: ‘%g’ directive writing between 1 and 13 bytes into a region of size 7 [-Wformat-overflow=]
498 | sprintf(curValue, "%g", m->komi);
| ^~
match.c:498:23: note: assuming directive output of 12 bytes
498 | sprintf(curValue, "%g", m->komi);
| ^~~~
In file included from /usr/include/stdio.h:964,
from ./wms.h:30,
from match.c:7:
In function ‘sprintf’,
inlined from ‘newKomi’ at match.c:498:5:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output between 2 and 14 bytes into a destination of size 7
30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
match.c: In function ‘changeKomi’:
match.c:760:21: warning: ‘%g’ directive writing between 1 and 13 bytes into a region of size 10 [-Wformat-overflow=]
760 | sprintf(komiStr, "%g", m->komi);
| ^~
match.c:760:20: note: assuming directive output of 12 bytes
760 | sprintf(komiStr, "%g", m->komi);
| ^~~~
In function ‘sprintf’,
inlined from ‘changeKomi’ at match.c:760:3:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output between 2 and 14 bytes into a destination of size 10
30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
match.c: In function ‘changeHcap’:
match.c:787:21: warning: ‘%d’ directive writing between 1 and 11 bytes into a region of size 3 [-Wformat-overflow=]
787 | sprintf(hcapStr, "%d", m->hcap);
| ^~
match.c:787:20: note: directive argument in the range [-2147483647, 2147483646]
787 | sprintf(hcapStr, "%d", m->hcap);
| ^~~~
In function ‘sprintf’,
inlined from ‘changeHcap’ at match.c:787:3:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output between 2 and 12 bytes into a destination of size 3
30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:366: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:305: 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: