#1097315 lrslib: ftbfs with GCC-15

Package:
src:lrslib
Source:
src:lrslib
Submitter:
Matthias Klose
Date:
2025-09-04 22:09:12 UTC
Severity:
normal
Tags:
#1097315#5
Date:
2025-02-17 17:35:15 UTC
From:
To:
[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/lrslib_0.73-2_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

[...]
      |             ^~~~~~~~~~
/usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here
   72 | typedef void (*__sighandler_t) (int);
      |                ^~~~~~~~~~~~~~
lrslib.c: In function ‘timecheck_1’:
lrslib.h:154:23: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
  154 | #define timecheck suf(timecheck)
      |                       ^~~~~~~~~
      |                       |
      |                       void (*)(void)
lrslib.h:175:34: note: in definition of macro ‘errcheck’
  175 | #define errcheck(s,e) if ((long)(e)==-1L){  perror(s);exit(1);}
      |                                  ^
lrslib.h:154:19: note: in expansion of macro ‘suf’
  154 | #define timecheck suf(timecheck)
      |                   ^~~
lrslib.c:6374:40: note: in expansion of macro ‘timecheck’
 6374 |   errcheck ("signal", signal (SIGALRM, timecheck));
      |                                        ^~~~~~~~~
/usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’
   88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
      |                                          ~~~~~~~~~~~~~~~^~~~~~~~~
lrslib.h:154:23: note: ‘timecheck_1’ declared here
  154 | #define timecheck suf(timecheck)
      |                       ^~~~~~~~~
lrsarith-011/lrslong.h:242:19: note: in definition of macro ‘suf’
  242 | #define suf(func) func##_1
      |                   ^~~~
lrslib.c:6371:1: note: in expansion of macro ‘timecheck’
 6371 | timecheck ()
      | ^~~~~~~~~
/usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here
   72 | typedef void (*__sighandler_t) (int);
      |                ^~~~~~~~~~~~~~
lrslib.c: In function ‘checkpoint_1’:
lrslib.h:40:24: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
   40 | #define checkpoint suf(checkpoint)
      |                        ^~~~~~~~~~
      |                        |
      |                        void (*)(void)
lrslib.h:175:34: note: in definition of macro ‘errcheck’
  175 | #define errcheck(s,e) if ((long)(e)==-1L){  perror(s);exit(1);}
      |                                  ^
lrslib.h:40:20: note: in expansion of macro ‘suf’
   40 | #define checkpoint suf(checkpoint)
      |                    ^~~
lrslib.c:6382:40: note: in expansion of macro ‘checkpoint’
 6382 |   errcheck ("signal", signal (SIGUSR1, checkpoint));
      |                                        ^~~~~~~~~~
/usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’
   88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
      |                                          ~~~~~~~~~~~~~~~^~~~~~~~~
lrslib.h:40:24: note: ‘checkpoint_1’ declared here
   40 | #define checkpoint suf(checkpoint)
      |                        ^~~~~~~~~~
lrsarith-011/lrslong.h:242:19: note: in definition of macro ‘suf’
  242 | #define suf(func) func##_1
      |                   ^~~~
lrslib.c:6379:1: note: in expansion of macro ‘checkpoint’
 6379 | checkpoint ()
      | ^~~~~~~~~~
/usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here
   72 | typedef void (*__sighandler_t) (int);
      |                ^~~~~~~~~~~~~~
make[2]: *** [makefile:276: lrslib1-shr.o] Error 1
make[2]: Leaving directory '/build/reproducible-path/lrslib-0.73'
make[1]: *** [debian/rules:22: override_dh_auto_build] Error 2
make[1]: Leaving directory '/build/reproducible-path/lrslib-0.73'
make: *** [debian/rules:28: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2