[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1096477: crashme: ftbfs with GCC-15



Package: src:crashme
Version: 2.8.5-2
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/crashme_2.8.5-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

[...]
      |                       void (*)(int)
crashme.c:412:28: note: expected ‘void (*)(void)’ but argument is of type ‘void (*)(int)’
  412 | my_signal (int sig, void (*func) ())
      |                     ~~~~~~~^~~~~~~~
crashme.c:361:1: note: ‘again_handler’ declared here
  361 | again_handler (int sig)
      | ^~~~~~~~~~~~~
crashme.c:441:22: error: passing argument 2 of ‘my_signal’ from incompatible pointer type [-Wincompatible-pointer-types]
  441 |   my_signal (SIGIOT, again_handler);
      |                      ^~~~~~~~~~~~~
      |                      |
      |                      void (*)(int)
crashme.c:412:28: note: expected ‘void (*)(void)’ but argument is of type ‘void (*)(int)’
  412 | my_signal (int sig, void (*func) ())
      |                     ~~~~~~~^~~~~~~~
crashme.c:361:1: note: ‘again_handler’ declared here
  361 | again_handler (int sig)
      | ^~~~~~~~~~~~~
crashme.c:447:23: error: passing argument 2 of ‘my_signal’ from incompatible pointer type [-Wincompatible-pointer-types]
  447 |   my_signal (SIGALRM, again_handler);
      |                       ^~~~~~~~~~~~~
      |                       |
      |                       void (*)(int)
crashme.c:412:28: note: expected ‘void (*)(void)’ but argument is of type ‘void (*)(int)’
  412 | my_signal (int sig, void (*func) ())
      |                     ~~~~~~~^~~~~~~~
crashme.c:361:1: note: ‘again_handler’ declared here
  361 | again_handler (int sig)
      | ^~~~~~~~~~~~~
crashme.c:449:22: error: passing argument 2 of ‘my_signal’ from incompatible pointer type [-Wincompatible-pointer-types]
  449 |   my_signal (SIGINT, again_handler);
      |                      ^~~~~~~~~~~~~
      |                      |
      |                      void (*)(int)
crashme.c:412:28: note: expected ‘void (*)(void)’ but argument is of type ‘void (*)(int)’
  412 | my_signal (int sig, void (*func) ())
      |                     ~~~~~~~^~~~~~~~
crashme.c:361:1: note: ‘again_handler’ declared here
  361 | again_handler (int sig)
      | ^~~~~~~~~~~~~
crashme.c: In function ‘monitor_fcn’:
crashme.c:959:23: error: passing argument 2 of ‘my_signal’ from incompatible pointer type [-Wincompatible-pointer-types]
  959 |   my_signal (SIGALRM, monitor_fcn);
      |                       ^~~~~~~~~~~
      |                       |
      |                       void (*)(int)
crashme.c:412:28: note: expected ‘void (*)(void)’ but argument is of type ‘void (*)(int)’
  412 | my_signal (int sig, void (*func) ())
      |                     ~~~~~~~^~~~~~~~
crashme.c:956:1: note: ‘monitor_fcn’ declared here
  956 | monitor_fcn (int sig)
      | ^~~~~~~~~~~
crashme.c: In function ‘vfork_main’:
crashme.c:1009:27: error: passing argument 2 of ‘my_signal’ from incompatible pointer type [-Wincompatible-pointer-types]
 1009 |       my_signal (SIGALRM, monitor_fcn);
      |                           ^~~~~~~~~~~
      |                           |
      |                           void (*)(int)
crashme.c:412:28: note: expected ‘void (*)(void)’ but argument is of type ‘void (*)(int)’
  412 | my_signal (int sig, void (*func) ())
      |                     ~~~~~~~^~~~~~~~
crashme.c:956:1: note: ‘monitor_fcn’ declared here
  956 | monitor_fcn (int sig)
      | ^~~~~~~~~~~
make[1]: *** [makefile:15: crashme.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/build/reproducible-path/crashme-2.8.5'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" returned exit code 2
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


Reply to: