#1096351 awf-gtk: ftbfs with GCC-15

#1096351#5
Date:
2025-02-17 17:04:29 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/awf-gtk_2.8.0-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

[...]
 1845 |                         gtk_css_provider_load_from_data (provider, "notebook tab button { padding:0; }", -1);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-4.0/gtk/gtk.h:99:
/usr/include/gtk-4.0/gtk/gtkcssprovider.h:49:18: note: declared here
   49 | void             gtk_css_provider_load_from_data (GtkCssProvider  *css_provider,
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
awf.c: In function ‘dialog_open’:
awf.c:2733:17: warning: ‘gtk_file_chooser_dialog_new’ is deprecated [-Wdeprecated-declarations]
 2733 |                 GtkWidget *dialog = gtk_file_chooser_dialog_new (
      |                 ^~~~~~~~~
In file included from /usr/include/gtk-4.0/gtk/gtk.h:131:
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooserdialog.h:39:12: note: declared here
   39 | GtkWidget *gtk_file_chooser_dialog_new              (const char           *title,
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
awf.c: In function ‘dialog_save’:
awf.c:2786:17: warning: ‘gtk_file_chooser_dialog_new’ is deprecated [-Wdeprecated-declarations]
 2786 |                 GtkWidget *dialog = gtk_file_chooser_dialog_new (
      |                 ^~~~~~~~~
/usr/include/gtk-4.0/gtk/deprecated/gtkfilechooserdialog.h:39:12: note: declared here
   39 | GtkWidget *gtk_file_chooser_dialog_new              (const char           *title,
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
awf.c: In function ‘dialog_message’:
awf.c:2818:9: warning: ‘gtk_message_dialog_new’ is deprecated [-Wdeprecated-declarations]
 2818 |         GtkWidget *dialog = gtk_message_dialog_new (
      |         ^~~~~~~~~
In file included from /usr/include/gtk-4.0/gtk/gtk.h:192:
/usr/include/gtk-4.0/gtk/deprecated/gtkmessagedialog.h:81:12: note: declared here
   81 | GtkWidget* gtk_message_dialog_new      (GtkWindow      *parent,
      |            ^~~~~~~~~~~~~~~~~~~~~~
awf.c:2825:9: warning: ‘gtk_message_dialog_format_secondary_text’ is deprecated [-Wdeprecated-declarations]
 2825 |         gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), _app("A widget factory is a theme preview application for GTK. It displays the various widget types provided by GTK in a single window allowing to see the visual effect of the applied theme."));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-4.0/gtk/deprecated/gtkmessagedialog.h:101:12: note: declared here
  101 | void       gtk_message_dialog_format_secondary_text (GtkMessageDialog *message_dialog,
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
awf.c: In function ‘dialog_calendar’:
awf.c:2904:9: warning: ‘gtk_dialog_new_with_buttons’ is deprecated [-Wdeprecated-declarations]
 2904 |         dialog = gtk_dialog_new_with_buttons (
      |         ^~~~~~
In file included from /usr/include/gtk-4.0/gtk/deprecated/gtkappchooserdialog.h:31,
                 from /usr/include/gtk-4.0/gtk/gtk.h:43:
/usr/include/gtk-4.0/gtk/deprecated/gtkdialog.h:133:12: note: declared here
  133 | GtkWidget* gtk_dialog_new_with_buttons (const char      *title,
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
awf.c:2980:9: warning: ‘gtk_dialog_get_content_area’ is deprecated [-Wdeprecated-declarations]
 2980 |         area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
      |         ^~~~
/usr/include/gtk-4.0/gtk/deprecated/gtkdialog.h:172:13: note: declared here
  172 | GtkWidget * gtk_dialog_get_content_area (GtkDialog *dialog);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
awf.c: In function ‘dialog_scales’:
awf.c:3032:9: warning: ‘gtk_dialog_new_with_buttons’ is deprecated [-Wdeprecated-declarations]
 3032 |         dialog = gtk_dialog_new_with_buttons (
      |         ^~~~~~
/usr/include/gtk-4.0/gtk/deprecated/gtkdialog.h:133:12: note: declared here
  133 | GtkWidget* gtk_dialog_new_with_buttons (const char      *title,
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
awf.c:3148:9: warning: ‘gtk_dialog_get_content_area’ is deprecated [-Wdeprecated-declarations]
 3148 |         area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
      |         ^~~~
/usr/include/gtk-4.0/gtk/deprecated/gtkdialog.h:172:13: note: declared here
  172 | GtkWidget * gtk_dialog_get_content_area (GtkDialog *dialog);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:436: awf_gtk4-awf.o] Error 1
make[2]: Leaving directory '/build/reproducible-path/awf-gtk-2.8.0/src'
make[1]: *** [Makefile:350: all-recursive] Error 1
make[1]: Leaving directory '/build/reproducible-path/awf-gtk-2.8.0'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

#1096351#10
Date:
2025-04-04 21:31:07 UTC
From:
To:
Fixed in v2.8.1 and v2.9.0.
#1096351#15
Date:
2025-05-06 09:57:41 UTC
From:
To: