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

Bug#1097413: morse: ftbfs with GCC-15



Package: src:morse
Version: 2.6-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/morse_2.6-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

[...]
make[2]: Entering directory '/build/reproducible-path/morse-2.6/morse.d'
cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/morse-2.6=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2  -c -o morse.o morse.c
cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/morse-2.6=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2  -c -o beepX11.o beepX11.c
cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/morse-2.6=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2  -c -o alarm.o alarm.c
beepX11.c: In function ‘Beep’:
beepX11.c:37:5: warning: old-style function definition [-Wold-style-definition]
   37 | int Beep(time, volume, pitch)
      |     ^~~~
alarm.c: In function ‘AlarmSet’:
alarm.c:24:28: error: assignment to ‘__sighandler_t’ {aka ‘void (*)(int)’} from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
   24 |         handler.sa_handler = AlarmHandler;
      |                            ^
alarm.c:18:13: note: ‘AlarmHandler’ declared here
   18 | static void AlarmHandler();
      |             ^~~~~~~~~~~~
In file included from alarm.c:8:
/usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here
   72 | typedef void (*__sighandler_t) (int);
      |                ^~~~~~~~~~~~~~
alarm.c:28:9: error: too many arguments to function ‘ualarm’; expected 0, have 2
   28 |         ualarm(1000 * time, 0);
      |         ^~~~~~ ~~~~~~~~~~~
alarm.c:17:13: note: declared here
   17 | static void ualarm();
      |             ^~~~~~
alarm.c: At top level:
alarm.c:56:13: error: conflicting types for ‘ualarm’; have ‘void(unsigned int)’
   56 | static void ualarm(unsigned us) {
      |             ^~~~~~
alarm.c:17:13: note: previous declaration of ‘ualarm’ with type ‘void(void)’
   17 | static void ualarm();
      |             ^~~~~~
alarm.c:17:13: warning: ‘ualarm’ used but never defined
make[2]: *** [<builtin>: alarm.o] Error 1
make[2]: *** Waiting for unfinished jobs....
morse.c: In function ‘main’:
morse.c:615:28: error: assignment to ‘__sighandler_t’ {aka ‘void (*)(int)’} from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
  615 |         handler.sa_handler = die;
      |                            ^
morse.c:234:13: note: ‘die’ declared here
  234 | static void die(), suspend();
      |             ^~~
In file included from morse.c:32:
/usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here
   72 | typedef void (*__sighandler_t) (int);
      |                ^~~~~~~~~~~~~~
morse.c:621:28: error: assignment to ‘__sighandler_t’ {aka ‘void (*)(int)’} from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
  621 |         handler.sa_handler = suspend;
      |                            ^
morse.c:234:20: note: ‘suspend’ declared here
  234 | static void die(), suspend();
      |                    ^~~~~~~
/usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here
   72 | typedef void (*__sighandler_t) (int);
      |                ^~~~~~~~~~~~~~
morse.c: At top level:
morse.c:1870:13: error: conflicting types for ‘suspend’; have ‘void(int)’
 1870 | static void suspend(int sig) {
      |             ^~~~~~~
morse.c:234:20: note: previous declaration of ‘suspend’ with type ‘void(void)’
  234 | static void die(), suspend();
      |                    ^~~~~~~
morse.c:234:20: warning: ‘suspend’ used but never defined
make[2]: *** [<builtin>: morse.o] Error 1
make[2]: Leaving directory '/build/reproducible-path/morse-2.6/morse.d'
dh_auto_build: error: cd morse.d && make -j8 "INSTALL=install --strip-program=true" DEVICE=X11 "CFLAGS=-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/morse-2.6=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection" returned exit code 2
make[1]: *** [debian/rules:8: override_dh_auto_build] Error 25
make[1]: Leaving directory '/build/reproducible-path/morse-2.6'
make: *** [debian/rules:40: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


Reply to: