Bug#1075050: gtk+2.0: ftbfs with GCC-14

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


Package: src:gtk+2.0
Version: 2.24.33-4
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/gtk+2.0_2.24.33-4_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

[...]
  184 |   g_type_class_add_private (object_class, sizeof (GtkCellRendererTogglePrivate));
      |   ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:26,
                 from /usr/include/glib-2.0/gobject/gbinding.h:31,
                 from /usr/include/glib-2.0/glib-object.h:24,
                 from /usr/include/glib-2.0/gio/gioenums.h:30,
                 from /usr/include/glib-2.0/gio/giotypes.h:30,
                 from /usr/include/glib-2.0/gio/gio.h:28,
                 from ../../../../gdk/gdkapplaunchcontext.h:30,
                 from ../../../../gdk/gdk.h:32,
                 from ../../../../gtk/gtkwidget.h:34,
                 from ../../../../gtk/gtkcelleditable.h:27,
                 from ../../../../gtk/gtkcellrenderer.h:27,
                 from ../../../../gtk/gtkcellrenderertoggle.h:27,
                 from ../../../../gtk/gtkcellrenderertoggle.c:22:
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
 1497 | void     g_type_class_add_private       (gpointer                    g_class,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~
../../../../gtk/gtkcellrenderertoggle.c: In function ‘gtk_cell_renderer_toggle_get_property’:
../../../../gtk/gtkcellrenderertoggle.c:196:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
  196 |   priv = GTK_CELL_RENDERER_TOGGLE_GET_PRIVATE (object);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                      
../../../../gtk/gtkcellrenderertoggle.c: In function ‘gtk_cell_renderer_toggle_set_property’:
../../../../gtk/gtkcellrenderertoggle.c:231:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
  231 |   priv = GTK_CELL_RENDERER_TOGGLE_GET_PRIVATE (object);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                      
../../../../gtk/gtkcellrenderertoggle.c: In function ‘gtk_cell_renderer_toggle_get_size’:
../../../../gtk/gtkcellrenderertoggle.c:288:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
  288 |   priv = GTK_CELL_RENDERER_TOGGLE_GET_PRIVATE (cell);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                        
../../../../gtk/gtkcellrenderertoggle.c: In function ‘gtk_cell_renderer_toggle_render’:
../../../../gtk/gtkcellrenderertoggle.c:336:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
  336 |   priv = GTK_CELL_RENDERER_TOGGLE_GET_PRIVATE (cell);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                        
../../../../gtk/gtkcellview.c: In function ‘gtk_cell_view_class_init’:
../../../../gtk/gtkcellview.c:193:3: warning: ‘g_type_class_add_private’ is deprecated [-Wdeprecated-declarations]
  193 |   g_type_class_add_private (gobject_class, sizeof (GtkCellViewPrivate));
      |   ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:26,
                 from /usr/include/glib-2.0/gobject/gbinding.h:31,
                 from /usr/include/glib-2.0/glib-object.h:24,
                 from /usr/include/glib-2.0/gio/gioenums.h:30,
                 from /usr/include/glib-2.0/gio/giotypes.h:30,
                 from /usr/include/glib-2.0/gio/gio.h:28,
                 from ../../../../gdk/gdkapplaunchcontext.h:30,
                 from ../../../../gdk/gdk.h:32,
                 from ../../../../gtk/gtkwidget.h:34,
                 from ../../../../gtk/gtkcellview.h:27,
                 from ../../../../gtk/gtkcellview.c:22:
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
 1497 | void     g_type_class_add_private       (gpointer                    g_class,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~
../../../../gtk/gtkcellview.c: In function ‘gtk_cell_view_init’:
../../../../gtk/gtkcellview.c:293:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
  293 |   cellview->priv = GTK_CELL_VIEW_GET_PRIVATE (cellview);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                     
make[6]: Leaving directory '/<<PKGBUILDDIR>>/debian/build/shared/gtk'
make[5]: *** [Makefile:5548: all-recursive] Error 1
make[5]: Leaving directory '/<<PKGBUILDDIR>>/debian/build/shared/gtk'
make[4]: *** [Makefile:2796: all] Error 2
make[4]: Leaving directory '/<<PKGBUILDDIR>>/debian/build/shared/gtk'
make[3]: *** [Makefile:737: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build/shared'
make[2]: *** [Makefile:629: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/debian/build/shared'
dh_auto_build: error: cd debian/build/shared && make -j8 returned exit code 2
make[1]: *** [debian/rules:156: debian/stampdir/build-stamp-shared] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:135: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the pkg-gnome-maintainers mailing list