#1096875 jove: ftbfs with GCC-15

Package:
src:jove
Source:
src:jove
Submitter:
Matthias Klose
Date:
2025-09-04 22:08:39 UTC
Severity:
normal
Tags:
#1096875#5
Date:
2025-02-17 17:21:09 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/jove_4.17.5.3-1_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

[...]
  465 | bufname(b)
      | ^~~~~~~
buf.c: In function ‘buf_clear’:
buf.c:486:1: warning: old-style function definition [-Wold-style-definition]
  486 | buf_clear(b)
      | ^~~~~~~~~
buf.c: In function ‘buf_exists’:
buf.c:516:1: warning: old-style function definition [-Wold-style-definition]
  516 | buf_exists(name)
      | ^~~~~~~~~~
commands.c: In function ‘FindCmd’:
commands.c:120:1: warning: old-style function definition [-Wold-style-definition]
  120 | FindCmd(proc)
      | ^~~~~~~
buf.c: In function ‘do_stat’:
commands.c: In function ‘ExecCmd’:
commands.c:132:1: warning: old-style function definition [-Wold-style-definition]
  132 | ExecCmd(cp)
      | ^~~~~~~
buf.c:551:1: warning: old-style function definition [-Wold-style-definition]
  551 | do_stat(name, target, flags)
      | ^~~~~~~
buf.c: In function ‘setbname’:
buf.c:651:1: warning: old-style function definition [-Wold-style-definition]
  651 | setbname(b, name)
      | ^~~~~~~~
buf.c: In function ‘setfname’:
buf.c:670:1: warning: old-style function definition [-Wold-style-definition]
  670 | setfname(b, name)
      | ^~~~~~~~
buf.c: In function ‘do_find’:
buf.c:709:1: warning: old-style function definition [-Wold-style-definition]
  709 | do_find(w, fname, force, do_macros)
      | ^~~~~~~
buf.c: In function ‘SetABuf’:
buf.c:770:1: warning: old-style function definition [-Wold-style-definition]
  770 | SetABuf(b)
      | ^~~~~~~
buf.c: In function ‘valid_bp’:
buf.c:780:1: warning: old-style function definition [-Wold-style-definition]
  780 | valid_bp(bp)
      | ^~~~~~~~
buf.c: In function ‘SetBuf’:
buf.c:792:1: warning: old-style function definition [-Wold-style-definition]
  792 | SetBuf(newbuf)
      | ^~~~~~
buf.c: In function ‘do_select’:
buf.c:814:1: warning: old-style function definition [-Wold-style-definition]
  814 | do_select(w, name)
      | ^~~~~~~~~
buf.c: In function ‘lastline’:
buf.c:837:1: warning: old-style function definition [-Wold-style-definition]
  837 | lastline(lp)
      | ^~~~~~~~
buf.c: In function ‘next_line’:
buf.c:848:1: warning: old-style function definition [-Wold-style-definition]
  848 | next_line(line, num)
      | ^~~~~~~~~
buf.c: In function ‘prev_line’:
buf.c:862:1: warning: old-style function definition [-Wold-style-definition]
  862 | prev_line(line, num)
      | ^~~~~~~~~
make[2]: *** [<builtin>: commands.o] Error 1
make[2]: *** [<builtin>: buf.o] Error 1
make[2]: Leaving directory '/build/reproducible-path/jove-4.17.5.3'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" SYSDEFS=-DLinux "OPTFLAGS=-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/jove-4.17.5.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection" "LDLIBS=-lncurses -ltinfo  -lutil" "LDFLAGS=-Wl,-z,relro -Wl,-z,now" JOVEHOME=/usr JMANDIR=/usr/share/man/man1 LOCALCC=x86_64-linux-gnu-gcc CC=x86_64-linux-gnu-gcc all returned exit code 2
make[1]: *** [debian/rules:20: override_dh_auto_build] Error 25
make[1]: Leaving directory '/build/reproducible-path/jove-4.17.5.3'
make: *** [debian/rules:17: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2