Bug#1096707: gimp: ftbfs with GCC-15

Matthias Klose doko at debian.org
Mon Feb 17 17:15:47 GMT 2025


Package: src:gimp
Version: 3.0.0~RC3-1
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/gimp_3.0.0~RC3-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

[...]
  525 |       gboolean bool;
      |                ^~~~
../libgimpconfig/gimpconfig-serialize.c:525:7: warning: useless type name in empty declaration
  525 |       gboolean bool;
      |       ^~~~~~~~
../libgimpconfig/gimpconfig-serialize.c:527:12: error: expected identifier or ‘(’ before ‘=’ token
  527 |       bool = g_value_get_boolean (value);
      |            ^
In file included from /usr/include/glib-2.0/glib/giochannel.h:36,
                 from /usr/include/glib-2.0/glib.h:56,
                 from /usr/include/glib-2.0/gobject/gbinding.h:30,
                 from /usr/include/glib-2.0/glib-object.h:24,
                 from /usr/include/gegl-0.4/gegl.h:22,
                 from ../libgimpconfig/gimpconfig-serialize.c:25:
../libgimpconfig/gimpconfig-serialize.c:528:29: error: expected expression before ‘bool’
  528 |       g_string_append (str, bool ? "yes" : "no");
      |                             ^~~~
/usr/include/glib-2.0/glib/gstring.h:269:26: note: in definition of macro ‘g_string_append’
  269 |   (__builtin_constant_p (val) ?                     \
      |                          ^~~
../libgimpconfig/gimpconfig-serialize.c:528:34: error: expected ‘)’ before ‘?’ token
  528 |       g_string_append (str, bool ? "yes" : "no");
      |                                  ^
/usr/include/glib-2.0/glib/gstring.h:271:35: note: in definition of macro ‘g_string_append’
  271 |       const char * const __val = (val);             \
      |                                   ^~~
/usr/include/glib-2.0/glib/gstring.h:271:34: note: to match this ‘(’
  271 |       const char * const __val = (val);             \
      |                                  ^
../libgimpconfig/gimpconfig-serialize.c:528:7: note: in expansion of macro ‘g_string_append’
  528 |       g_string_append (str, bool ? "yes" : "no");
      |       ^~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gstring.h:271:39: error: expected expression before ‘;’ token
  271 |       const char * const __val = (val);             \
      |                                       ^
../libgimpconfig/gimpconfig-serialize.c:528:7: note: in expansion of macro ‘g_string_append’
  528 |       g_string_append (str, bool ? "yes" : "no");
      |       ^~~~~~~~~~~~~~~
../libgimpconfig/gimpconfig-serialize.c:528:29: error: expected expression before ‘bool’
  528 |       g_string_append (str, bool ? "yes" : "no");
      |                             ^~~~
/usr/include/glib-2.0/glib/gstring.h:251:37: note: in definition of macro ‘g_string_append_len’
  251 |   g_string_append_len_inline (gstr, val, len)
      |                                     ^~~
../libgimpconfig/gimpconfig-serialize.c:528:7: note: in expansion of macro ‘g_string_append’
  528 |       g_string_append (str, bool ? "yes" : "no");
      |       ^~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gstring.h:251:3: error: too few arguments to function ‘g_string_append_len_inline’; expected 3, have 2
  251 |   g_string_append_len_inline (gstr, val, len)
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gstring.h:278:5: note: in expansion of macro ‘g_string_append_len’
  278 |     g_string_append_len (gstr, val, (gssize) -1))
      |     ^~~~~~~~~~~~~~~~~~~
../libgimpconfig/gimpconfig-serialize.c:528:7: note: in expansion of macro ‘g_string_append’
  528 |       g_string_append (str, bool ? "yes" : "no");
      |       ^~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gstring.h:218:1: note: declared here
  218 | g_string_append_len_inline (GString    *gstring,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
[48/2603] /usr/bin/meson --internal symbolextractor '/build/reproducible-path/gimp-3.0.0~RC3/obj-x86_64-linux-gnu' libgimpmath/libgimpmath-3.0.so.0.0.0 libgimpmath/libgimpmath-3.0.so.0.0.0 libgimpmath/libgimpmath-3.0.so.0.0.0.p/libgimpmath-3.0.so.0.0.0.symbols 
[49/2603] /usr/bin/meson --internal symbolextractor '/build/reproducible-path/gimp-3.0.0~RC3/obj-x86_64-linux-gnu' libgimpcolor/libgimpcolor-3.0.so.0.0.0 libgimpcolor/libgimpcolor-3.0.so.0.0.0 libgimpcolor/libgimpcolor-3.0.so.0.0.0.p/libgimpcolor-3.0.so.0.0.0.symbols 
[50/2603] cc -Ilibgimpconfig/libgimpconfig-3.0.so.0.0.0.p -Ilibgimpconfig -I../libgimpconfig -I. -I.. -I/usr/include/cairo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -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/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wabsolute-value -Wdeclaration-after-statement -Wenum-conversion -Wno-strict-prototypes -Wold-style-definition -Wunused-function -Wunused-value -Werror=implicit-function-declaration -fdiagnostics-show-option -fno-common -Wformat -Wformat-security -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wpointer-arith -Wreturn-type -Wtype-limits -DHAVE_CONFIG_H -g -O2 -Werror=implicit-function-declaration '-ffile-prefix-map=/build/reproducible-path/gimp-3.0.0~RC3=.' -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread '-DG_LOG_DOMAIN="LibGimpConfig"' -DGIMP_CONFIG_COMPILATION -MD -MQ libgimpconfig/libgimpconfig-3.0.so.0.0.0.p/gimpconfig-deserialize.c.o -MF libgimpconfig/libgimpconfig-3.0.so.0.0.0.p/gimpconfig-deserialize.c.o.d -o libgimpconfig/libgimpconfig-3.0.so.0.0.0.p/gimpconfig-deserialize.c.o -c ../libgimpconfig/gimpconfig-deserialize.c
[51/2603] cc -Ilibgimpconfig/libgimpconfig-3.0.so.0.0.0.p -Ilibgimpconfig -I../libgimpconfig -I. -I.. -I/usr/include/cairo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -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/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wabsolute-value -Wdeclaration-after-statement -Wenum-conversion -Wno-strict-prototypes -Wold-style-definition -Wunused-function -Wunused-value -Werror=implicit-function-declaration -fdiagnostics-show-option -fno-common -Wformat -Wformat-security -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wpointer-arith -Wreturn-type -Wtype-limits -DHAVE_CONFIG_H -g -O2 -Werror=implicit-function-declaration '-ffile-prefix-map=/build/reproducible-path/gimp-3.0.0~RC3=.' -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread '-DG_LOG_DOMAIN="LibGimpConfig"' -DGIMP_CONFIG_COMPILATION -MD -MQ libgimpconfig/libgimpconfig-3.0.so.0.0.0.p/gimpcolorconfig.c.o -MF libgimpconfig/libgimpconfig-3.0.so.0.0.0.p/gimpcolorconfig.c.o.d -o libgimpconfig/libgimpconfig-3.0.so.0.0.0.p/gimpcolorconfig.c.o -c ../libgimpconfig/gimpcolorconfig.c
[52/2603] cc -Ilibgimpconfig/libgimpconfig-3.0.so.0.0.0.p -Ilibgimpconfig -I../libgimpconfig -I. -I.. -I/usr/include/cairo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -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/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wabsolute-value -Wdeclaration-after-statement -Wenum-conversion -Wno-strict-prototypes -Wold-style-definition -Wunused-function -Wunused-value -Werror=implicit-function-declaration -fdiagnostics-show-option -fno-common -Wformat -Wformat-security -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wpointer-arith -Wreturn-type -Wtype-limits -DHAVE_CONFIG_H -g -O2 -Werror=implicit-function-declaration '-ffile-prefix-map=/build/reproducible-path/gimp-3.0.0~RC3=.' -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread '-DG_LOG_DOMAIN="LibGimpConfig"' -DGIMP_CONFIG_COMPILATION -MD -MQ libgimpconfig/libgimpconfig-3.0.so.0.0.0.p/gimpconfig-iface.c.o -MF libgimpconfig/libgimpconfig-3.0.so.0.0.0.p/gimpconfig-iface.c.o.d -o libgimpconfig/libgimpconfig-3.0.so.0.0.0.p/gimpconfig-iface.c.o -c ../libgimpconfig/gimpconfig-iface.c
[53/2603] cc -Ilibgimpconfig/libgimpconfig-3.0.so.0.0.0.p -Ilibgimpconfig -I../libgimpconfig -I. -I.. -I/usr/include/cairo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -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/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wabsolute-value -Wdeclaration-after-statement -Wenum-conversion -Wno-strict-prototypes -Wold-style-definition -Wunused-function -Wunused-value -Werror=implicit-function-declaration -fdiagnostics-show-option -fno-common -Wformat -Wformat-security -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wpointer-arith -Wreturn-type -Wtype-limits -DHAVE_CONFIG_H -g -O2 -Werror=implicit-function-declaration '-ffile-prefix-map=/build/reproducible-path/gimp-3.0.0~RC3=.' -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread '-DG_LOG_DOMAIN="LibGimpConfig"' -DGIMP_CONFIG_COMPILATION -MD -MQ libgimpconfig/libgimpconfig-3.0.so.0.0.0.p/gimpconfig-utils.c.o -MF libgimpconfig/libgimpconfig-3.0.so.0.0.0.p/gimpconfig-utils.c.o.d -o libgimpconfig/libgimpconfig-3.0.so.0.0.0.p/gimpconfig-utils.c.o -c ../libgimpconfig/gimpconfig-utils.c
[54/2603] cc -Ilibgimpconfig/libgimpconfig-3.0.so.0.0.0.p -Ilibgimpconfig -I../libgimpconfig -I. -I.. -I/usr/include/cairo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -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/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wabsolute-value -Wdeclaration-after-statement -Wenum-conversion -Wno-strict-prototypes -Wold-style-definition -Wunused-function -Wunused-value -Werror=implicit-function-declaration -fdiagnostics-show-option -fno-common -Wformat -Wformat-security -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wpointer-arith -Wreturn-type -Wtype-limits -DHAVE_CONFIG_H -g -O2 -Werror=implicit-function-declaration '-ffile-prefix-map=/build/reproducible-path/gimp-3.0.0~RC3=.' -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread '-DG_LOG_DOMAIN="LibGimpConfig"' -DGIMP_CONFIG_COMPILATION -MD -MQ libgimpconfig/libgimpconfig-3.0.so.0.0.0.p/gimpconfigwriter.c.o -MF libgimpconfig/libgimpconfig-3.0.so.0.0.0.p/gimpconfigwriter.c.o.d -o libgimpconfig/libgimpconfig-3.0.so.0.0.0.p/gimpconfigwriter.c.o -c ../libgimpconfig/gimpconfigwriter.c
ninja: build stopped: subcommand failed.
dh_auto_build: error: cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 ninja -j8 -v returned exit code 1
make: *** [debian/rules:40: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the pkg-gnome-maintainers mailing list