Subject: mhwaveedit: ftbfs with GCC-15

From: Matthias Klose <[email-masked]>
Date: Mon, 17 Feb 2025 17:37:38 +0000

Package: src:mhwaveedit
Version: 1.4.24-1
Severity: important
Tags: sid forky
User: [email-masked]
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/mhwaveedit_1.4.24-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

[...]
      | ^~~
/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
  580 | struct _GTimeVal
      |        ^~~~~~~~~
main.h:116:1: warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
  116 | int timeval_subtract(GTimeVal *result, GTimeVal *x, GTimeVal *y);
      | ^~~
/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
  580 | struct _GTimeVal
      |        ^~~~~~~~~
main.h:117:1: warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
  117 | float timeval_divide(GTimeVal *x, GTimeVal *y);
      | ^~~~~
/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
  580 | struct _GTimeVal
      |        ^~~~~~~~~
main.h:117:1: warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
  117 | float timeval_divide(GTimeVal *x, GTimeVal *y);
      | ^~~~~
/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
  580 | struct _GTimeVal
      |        ^~~~~~~~~
main.h:118:1: warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
  118 | void timeval_divide_float(GTimeVal *result, GTimeVal *x, gfloat y);
      | ^~~~
/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
  580 | struct _GTimeVal
      |        ^~~~~~~~~
main.h:118:1: warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
  118 | void timeval_divide_float(GTimeVal *result, GTimeVal *x, gfloat y);
      | ^~~~
/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
  580 | struct _GTimeVal
      |        ^~~~~~~~~
player.c:75:1: warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
   75 | static gint notify_wd_cb(gpointer timesource, GTimeVal *current_time,
      | ^~~~~~
/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
  580 | struct _GTimeVal
      |        ^~~~~~~~~
player.c: In function ‘player_work’:
player.c:148:6: warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
  148 |      GTimeVal tv;
      |      ^~~~~~~~
/usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
  580 | struct _GTimeVal
      |        ^~~~~~~~~
player.c:183:11: warning: ‘g_get_current_time’ is deprecated: Use 'g_get_real_time' instead [-Wdeprecated-declarations]
  183 |           g_get_current_time(&tv);
      |           ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/giochannel.h:35,
                 from /usr/include/glib-2.0/glib.h:56:
/usr/include/glib-2.0/glib/gmain.h:825:8: note: declared here
  825 | void   g_get_current_time                 (GTimeVal       *result);
      |        ^~~~~~~~~~~~~~~~~~
player.c: In function ‘player_play_main’:
player.c:247:6: warning: ‘GVoidFunc’ is deprecated [-Wdeprecated-declarations]
  247 |      i = output_select_format(&(chk->format),(recursed<2),(GVoidFunc)player_work);
      |      ^
player.c:282:21: warning: ‘GVoidFunc’ is deprecated [-Wdeprecated-declarations]
  282 |                     i = output_select_format(&fmt,FALSE,(GVoidFunc)player_work);
      |                     ^
make[3]: Leaving directory '/build/reproducible-path/mhwaveedit-1.4.24/src'
make[2]: *** [Makefile:497: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/mhwaveedit-1.4.24'
make[1]: *** [Makefile:395: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/mhwaveedit-1.4.24'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2