Bug#1097916: speech-tools: ftbfs with GCC-15

Matthias Klose doko at debian.org
Mon Feb 17 17:54:32 GMT 2025


Package: src:speech-tools
Version: 1:2.5.0-13
Severity: important
Tags: sid forky
User: debian-gcc at 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/speech-tools_2.5.0-13_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

[...]
  227 | extern char     *tgetstr();
      |                  ^~~~~~~
editline.c:383:24: error: too many arguments to function ‘tgetstr’; expected 0, have 2
  383 |     clrpage = (ECHAR *)tgetstr("cl", &bp);
      |                        ^~~~~~~ ~~~~
editline.c:227:18: note: declared here
  227 | extern char     *tgetstr();
      |                  ^~~~~~~
editline.c:384:25: error: too many arguments to function ‘tgetstr’; expected 0, have 2
  384 |     nextline = (ECHAR *)tgetstr("nl", &bp);
      |                         ^~~~~~~ ~~~~
editline.c:227:18: note: declared here
  227 | extern char     *tgetstr();
      |                  ^~~~~~~
editline.c:393:24: error: too many arguments to function ‘tgetstr’; expected 0, have 2
  393 |         bol = (ECHAR *)tgetstr("cr", &bp);
      |                        ^~~~~~~ ~~~~
editline.c:227:18: note: declared here
  227 | extern char     *tgetstr();
      |                  ^~~~~~~
editline.c:402:27: error: too many arguments to function ‘tgetstr’; expected 0, have 2
  402 |     move_right = (ECHAR *)tgetstr("nd", &bp);
      |                           ^~~~~~~ ~~~~
editline.c:227:18: note: declared here
  227 | extern char     *tgetstr();
      |                  ^~~~~~~
editline.c:405:16: error: too many arguments to function ‘tgetnum’; expected 0, have 1
  405 |     TTYwidth = tgetnum("co");
      |                ^~~~~~~ ~~~~
editline.c:229:17: note: declared here
  229 | extern int      tgetnum();
      |                 ^~~~~~~
editline.c:406:15: error: too many arguments to function ‘tgetnum’; expected 0, have 1
  406 |     TTYrows = tgetnum("li");
      |               ^~~~~~~ ~~~~
editline.c:229:17: note: declared here
  229 | extern int      tgetnum();
      |                 ^~~~~~~
editline.c: In function ‘search_hist’:
editline.c:834:15: error: assignment to ‘int (*)(void)’ from incompatible pointer type ‘int (*)(const char *, const char *, size_t)’ {aka ‘int (*)(const char *, const char *, long unsigned int)’} [-Wincompatible-pointer-types]
  834 |         match = strncmp;
      |               ^
In file included from editline.h:70:
/usr/include/string.h:159:12: note: ‘strncmp’ declared here
  159 | extern int strncmp (const char *__s1, const char *__s2, size_t __n)
      |            ^~~~~~~
editline.c:838:15: error: assignment to ‘int (*)(void)’ from incompatible pointer type ‘int (*)(char *, char *, int)’ [-Wincompatible-pointer-types]
  838 |         match = substrcmp;
      |               ^
editline.c:800:12: note: ‘substrcmp’ declared here
  800 | STATIC int substrcmp(char *text, char *pat, int len)
      |            ^~~~~~~~~
editline.c:844:14: error: too many arguments to function ‘match’; expected 0, have 3
  844 |         if ((*match)((char *)H.Lines[H.Pos], pat, len) == 0)
      |             ~^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
editline.c: In function ‘add_history’:
editline.c:1384:1: warning: old-style function definition [-Wold-style-definition]
 1384 | add_history(p)
      | ^~~~~~~~~~~
editline.c: In function ‘TTYflush’:
editline.c:240:19: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  240 |             (void)write(1, Screen, ScreenCount);
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [../config/rules/c.mak:63: editline.o] Error 1
make[2]: *** [config/rules/targets.mak:57: siod] Error 2
make[2]: Leaving directory '/build/reproducible-path/speech-tools-2.5.0'
make[1]: *** [debian/rules:27: override_dh_auto_build-arch] Error 2
make[1]: Leaving directory '/build/reproducible-path/speech-tools-2.5.0'
make: *** [debian/rules:74: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-a11y-devel mailing list