Bug#1075048: gtetrinet: ftbfs with GCC-14

Matthias Klose doko at debian.org
Wed Jul 3 13:29:31 BST 2024


Package: src:gtetrinet
Version: 0.7.11+git20200916.46e7ade-2
Severity: important
Tags: sid trixie
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-14

[This bug is 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-14/g++-14, but succeeds to build with gcc-13/g++-13. The
severity of this report will be raised before the trixie release.

The full build log can be found at:
http://qa-logs.debian.net/2024/07/01/gtetrinet_0.7.11+git20200916.46e7ade-2_unstable_gccexp.log
The last lines of the build log are at the end of this report.

To build with GCC 14, either set CC=gcc-14 CXX=g++-14 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

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-14/porting_to.html

[...]
  127 | void       gtk_table_attach           (GtkTable        *table,
      |            ^~~~~~~~~~~~~~~~
dialogs.c:922:5: warning: ‘gtk_table_attach’ is deprecated: Use 'GtkGrid' instead [-Wdeprecated-declarations]
  922 |     gtk_table_attach (GTK_TABLE(table), frame, 1, 2, 1, 2,
      |     ^~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/deprecated/gtktable.h:127:12: note: declared here
  127 | void       gtk_table_attach           (GtkTable        *table,
      |            ^~~~~~~~~~~~~~~~
dialogs.c:941:5: warning: ‘gtk_table_new’ is deprecated: Use 'GtkGrid' instead [-Wdeprecated-declarations]
  941 |     table = gtk_table_new (3, 1, FALSE);
      |     ^~~~~
/usr/include/gtk-3.0/gtk/deprecated/gtktable.h:119:12: note: declared here
  119 | GtkWidget* gtk_table_new              (guint            rows,
      |            ^~~~~~~~~~~~~
dialogs.c:943:5: warning: ‘gtk_table_set_row_spacings’ is deprecated: Use 'GtkGrid' instead [-Wdeprecated-declarations]
  943 |     gtk_table_set_row_spacings (GTK_TABLE(table), GTET_PAD_SMALL);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/deprecated/gtktable.h:159:12: note: declared here
  159 | void       gtk_table_set_row_spacings (GtkTable        *table,
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~
dialogs.c:944:5: warning: ‘gtk_table_set_col_spacings’ is deprecated: Use 'GtkGrid' instead [-Wdeprecated-declarations]
  944 |     gtk_table_set_col_spacings (GTK_TABLE(table), GTET_PAD_SMALL);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/deprecated/gtktable.h:164:12: note: declared here
  164 | void       gtk_table_set_col_spacings (GtkTable        *table,
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~
dialogs.c:945:5: warning: ‘gtk_table_attach’ is deprecated: Use 'GtkGrid' instead [-Wdeprecated-declarations]
  945 |     gtk_table_attach (GTK_TABLE(table), frame, 0, 1, 0, 1,
      |     ^~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/deprecated/gtktable.h:127:12: note: declared here
  127 | void       gtk_table_attach           (GtkTable        *table,
      |            ^~~~~~~~~~~~~~~~
dialogs.c:947:5: warning: ‘gtk_table_attach’ is deprecated: Use 'GtkGrid' instead [-Wdeprecated-declarations]
  947 |     gtk_table_attach (GTK_TABLE(table), divider, 0, 1, 1, 2,
      |     ^~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/deprecated/gtktable.h:127:12: note: declared here
  127 | void       gtk_table_attach           (GtkTable        *table,
      |            ^~~~~~~~~~~~~~~~
dialogs.c:967:62: error: passing argument 1 of ‘gtk_dialog_get_content_area’ from incompatible pointer type [-Wincompatible-pointer-types]
  967 |     gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area(prefdialog)), notebook, FALSE, FALSE, 0);
      |                                                              ^~~~~~~~~~
      |                                                              |
      |                                                              GtkWidget * {aka struct _GtkWidget *}
/usr/include/glib-2.0/gobject/gtype.h:2656:57: note: in definition of macro ‘_G_TYPE_CIC’
 2656 | #  define _G_TYPE_CIC(ip, gt, ct)       ((ct*) (void *) ip)
      |                                                         ^~
/usr/include/gtk-3.0/gtk/gtkbox.h:40:34: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_CAST’
   40 | #define GTK_BOX(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_BOX, GtkBox))
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
dialogs.c:967:25: note: in expansion of macro ‘GTK_BOX’
  967 |     gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area(prefdialog)), notebook, FALSE, FALSE, 0);
      |                         ^~~~~~~
/usr/include/gtk-3.0/gtk/gtkdialog.h:205:53: note: expected ‘GtkDialog *’ {aka ‘struct _GtkDialog *’} but argument is of type ‘GtkWidget *’ {aka ‘struct _GtkWidget *’}
  205 | GtkWidget * gtk_dialog_get_content_area (GtkDialog *dialog);
      |                                          ~~~~~~~~~~~^~~~~~
gcc -DHAVE_CONFIG_H -I. -I..  -DGTETRINET_DATA=\"/usr/share/gtetrinet\" -DGTETPIXMAPSDIR=\""/usr/share/pixmaps/gtetrinet"\" -DLOCALEDIR=\"/usr/share/locale\" -DPIXMAPSDIR=\""/usr/share/pixmaps"\" -DGSETTINGSSCHEMADIR=\"/usr/share/glib-2.0/schemas\" -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -pthread  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o tetris.o tetris.c
make[5]: *** [Makefile:506: dialogs.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[4]: *** [Makefile:522: all-recursive] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[3]: *** [Makefile:395: all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:522: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:421: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:4: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the Pkg-games-devel mailing list