Bug#1096762: gpstrans: ftbfs with GCC-15
Package: src:gpstrans
Version: 0.41-11
Severity: important
Tags: sid forky
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-15
[This bug is NOT 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-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.
The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/gpstrans_0.41-11_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.
To build with GCC 15, either set CC=gcc-15 CXX=g++-15 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.
apt-get -t=experimental install g++
GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other 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-15/porting_to.html
[...]
prefs.c:219:11: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
219 | fgets (Line, 255, preffp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
main.c: In function ‘ParseError’:
main.c:129:1: warning: old-style function definition [-Wold-style-definition]
129 | ParseError (err)
| ^~~~~~~~~~
main.c: In function ‘AdjustTime’:
main.c:243:14: error: too many arguments to function ‘getGPSTime’; expected 0, have 1
243 | clockgps = getGPSTime (m);
| ^~~~~~~~~~ ~
In file included from main.c:35:
include/gpsinfo.h:3:6: note: declared here
3 | long getGPSTime ();
| ^~~~~~~~~~
util.c: In function ‘GetLine’:
util.c:51:7: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
51 | fgets (line, MAX_LINE, refNum);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:263:26: error: too many arguments to function ‘getGPSTime’; expected 0, have 1
263 | clockgps = getGPSTime (m);
| ^~~~~~~~~~ ~
include/gpsinfo.h:3:6: note: declared here
3 | long getGPSTime ();
| ^~~~~~~~~~
main.c: In function ‘TerminateHandler’:
main.c:287:1: warning: old-style function definition [-Wold-style-definition]
287 | TerminateHandler (sig)
| ^~~~~~~~~~~~~~~~
main.c: In function ‘main’:
main.c:310:1: warning: old-style function definition [-Wold-style-definition]
310 | main (argc, argv)
| ^~~~
make[2]: *** [Makefile:36: main.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /usr/include/stdio.h:970,
from include/defs.h:1,
from prefs.c:28:
In function ‘sprintf’,
inlined from ‘AnalyzeLine’ at prefs.c:123:5:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: warning: ‘__builtin_sprintf’ argument 3 may overlap destination object ‘key’ [-Wrestrict]
30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
prefs.c: In function ‘AnalyzeLine’:
prefs.c:100:22: note: destination object referenced by ‘restrict’-qualified argument 1 was declared here
100 | char line[255], key[255], data[255];
| ^~~
In function ‘sprintf’,
inlined from ‘AnalyzeLine’ at prefs.c:125:5:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: warning: ‘__builtin_sprintf’ argument 3 may overlap destination object ‘key’ [-Wrestrict]
30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
prefs.c: In function ‘AnalyzeLine’:
prefs.c:100:22: note: destination object referenced by ‘restrict’-qualified argument 1 was declared here
100 | char line[255], key[255], data[255];
| ^~~
make[2]: Leaving directory '/build/reproducible-path/gpstrans-0.41/src'
make[1]: *** [Makefile:12: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/gpstrans-0.41'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" returned exit code 2
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Reply to: