[Debian-on-mobile-maintainers] Bug#984076: kgx: ftbfs with GCC-11

Matthias Klose doko at debian.org
Wed Mar 3 16:13:49 GMT 2021


Package: src:kgx
Version: 0.2.1-2
Severity: normal
Tags: sid bookworm
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-11

[This bug is not targeted to the upcoming bullseye 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-11/g++-11, but succeeds to build with gcc-10/g++-10. The
severity of this report will be raised before the bookworm release,
so nothing has to be done for the bullseye release.

The full build log can be found at:
http://people.debian.org/~doko/logs/20210228/filtered/gcc11/kgx_0.2.1-2_unstable_gcc11.log
The last lines of the build log are at the end of this report.

To build with GCC 11, either set CC=gcc-11 CXX=g++-11 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-11/porting_to.html

GCC 11 defaults to the GNU++17 standard.  If your package installs
header files in /usr/include, please don't work around C++17 issues
by choosing a lower C++ standard for the package build, but fix these
issues to build with the C++17 standard.

[...]
   21 |   if (g_once_init_enter (&gtype_id)) {
      |       ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[10/31] cc -Isrc/libkgx.so.p -Isrc -I../src -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gtk-3.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 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libhandy-0.0 -I/usr/include/vte-2.91 -I/usr/include/libgtop-2.0 -I/<<PKGBUILDDIR>>/_build -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=gnu11 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_24 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_24 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_58 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_58 -Wdeclaration-after-statement -Werror=format-security -Werror=format=2 -Werror=missing-declarations -Wformat-nonliteral -Wformat-security -Winit-self -Wmaybe-uninitialized -Wno-strict-aliasing -Wno-unused-parameter -Wold-style-definition -Wshadow -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wunused-function -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -MD -MQ src/libkgx.so.p/kgx-close-dialog.c.o -MF src/libkgx.so.p/kgx-close-dialog.c.o.d -o src/libkgx.so.p/kgx-close-dialog.c.o -c ../src/kgx-close-dialog.c
FAILED: src/libkgx.so.p/kgx-close-dialog.c.o 
cc -Isrc/libkgx.so.p -Isrc -I../src -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gtk-3.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 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libhandy-0.0 -I/usr/include/vte-2.91 -I/usr/include/libgtop-2.0 -I/<<PKGBUILDDIR>>/_build -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=gnu11 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_24 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_24 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_58 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_58 -Wdeclaration-after-statement -Werror=format-security -Werror=format=2 -Werror=missing-declarations -Wformat-nonliteral -Wformat-security -Winit-self -Wmaybe-uninitialized -Wno-strict-aliasing -Wno-unused-parameter -Wold-style-definition -Wshadow -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wunused-function -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -MD -MQ src/libkgx.so.p/kgx-close-dialog.c.o -MF src/libkgx.so.p/kgx-close-dialog.c.o.d -o src/libkgx.so.p/kgx-close-dialog.c.o -c ../src/kgx-close-dialog.c
In file included from /usr/include/glib-2.0/glib/gthread.h:32,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
                 from /usr/include/glib-2.0/glib.h:32,
                 from /usr/include/glib-2.0/glib/gi18n.h:21,
                 from ../src/kgx-close-dialog.c:30:
../src/kgx-close-dialog.c: In function ‘kgx_close_dialog_get_type’:
/usr/include/glib-2.0/glib/gatomic.h:112:5: error: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier [-Werror=incompatible-pointer-types]
  112 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST);   \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:260:7: note: in expansion of macro ‘g_atomic_pointer_get’
  260 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/gtype.h:2000:7: note: in expansion of macro ‘g_once_init_enter’
 2000 |   if (g_once_init_enter (&g_define_type_id__volatile))  \
      |       ^~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/gtype.h:2032:3: note: in expansion of macro ‘_G_DEFINE_TYPE_EXTENDED_BEGIN_REGISTER’
 2032 |   _G_DEFINE_TYPE_EXTENDED_BEGIN_REGISTER(TypeName, type_name, TYPE_PARENT, flags) \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/gtype.h:1759:61: note: in expansion of macro ‘_G_DEFINE_TYPE_EXTENDED_BEGIN’
 1759 | #define G_DEFINE_TYPE_EXTENDED(TN, t_n, T_P, _f_, _C_)      _G_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, T_P, _f_) {_C_;} _G_DEFINE_TYPE_EXTENDED_END()
      |                                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/gtype.h:1600:61: note: in expansion of macro ‘G_DEFINE_TYPE_EXTENDED’
 1600 | #define G_DEFINE_TYPE(TN, t_n, T_P)                         G_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, 0, {})
      |                                                             ^~~~~~~~~~~~~~~~~~~~~~
../src/kgx-close-dialog.c:36:1: note: in expansion of macro ‘G_DEFINE_TYPE’
   36 | G_DEFINE_TYPE (KgxCloseDialog, kgx_close_dialog, HDY_TYPE_DIALOG)
      | ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
[11/31] cc -Isrc/libkgx.so.p -Isrc -I../src -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gtk-3.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 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libhandy-0.0 -I/usr/include/vte-2.91 -I/usr/include/libgtop-2.0 -I/<<PKGBUILDDIR>>/_build -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=gnu11 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_24 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_24 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_58 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_58 -Wdeclaration-after-statement -Werror=format-security -Werror=format=2 -Werror=missing-declarations -Wformat-nonliteral -Wformat-security -Winit-self -Wmaybe-uninitialized -Wno-strict-aliasing -Wno-unused-parameter -Wold-style-definition -Wshadow -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wunused-function -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -MD -MQ src/libkgx.so.p/kgx-application.c.o -MF src/libkgx.so.p/kgx-application.c.o.d -o src/libkgx.so.p/kgx-application.c.o -c ../src/kgx-application.c
FAILED: src/libkgx.so.p/kgx-application.c.o 
cc -Isrc/libkgx.so.p -Isrc -I../src -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gtk-3.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 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libhandy-0.0 -I/usr/include/vte-2.91 -I/usr/include/libgtop-2.0 -I/<<PKGBUILDDIR>>/_build -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=gnu11 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_24 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_24 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_58 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_58 -Wdeclaration-after-statement -Werror=format-security -Werror=format=2 -Werror=missing-declarations -Wformat-nonliteral -Wformat-security -Winit-self -Wmaybe-uninitialized -Wno-strict-aliasing -Wno-unused-parameter -Wold-style-definition -Wshadow -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wunused-function -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -MD -MQ src/libkgx.so.p/kgx-application.c.o -MF src/libkgx.so.p/kgx-application.c.o.d -o src/libkgx.so.p/kgx-application.c.o -c ../src/kgx-application.c
In file included from /usr/include/glib-2.0/glib/gthread.h:32,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
                 from /usr/include/glib-2.0/glib.h:32,
                 from /usr/include/glib-2.0/glib/gi18n.h:21,
                 from ../src/kgx-application.c:31:
../src/kgx-application.c: In function ‘kgx_application_get_type’:
/usr/include/glib-2.0/glib/gatomic.h:112:5: error: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier [-Werror=incompatible-pointer-types]
  112 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST);   \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:260:7: note: in expansion of macro ‘g_atomic_pointer_get’
  260 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/gtype.h:2000:7: note: in expansion of macro ‘g_once_init_enter’
 2000 |   if (g_once_init_enter (&g_define_type_id__volatile))  \
      |       ^~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/gtype.h:2032:3: note: in expansion of macro ‘_G_DEFINE_TYPE_EXTENDED_BEGIN_REGISTER’
 2032 |   _G_DEFINE_TYPE_EXTENDED_BEGIN_REGISTER(TypeName, type_name, TYPE_PARENT, flags) \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/gtype.h:1759:61: note: in expansion of macro ‘_G_DEFINE_TYPE_EXTENDED_BEGIN’
 1759 | #define G_DEFINE_TYPE_EXTENDED(TN, t_n, T_P, _f_, _C_)      _G_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, T_P, _f_) {_C_;} _G_DEFINE_TYPE_EXTENDED_END()
      |                                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/gtype.h:1600:61: note: in expansion of macro ‘G_DEFINE_TYPE_EXTENDED’
 1600 | #define G_DEFINE_TYPE(TN, t_n, T_P)                         G_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, 0, {})
      |                                                             ^~~~~~~~~~~~~~~~~~~~~~
../src/kgx-application.c:45:1: note: in expansion of macro ‘G_DEFINE_TYPE’
   45 | G_DEFINE_TYPE (KgxApplication, kgx_application, GTK_TYPE_APPLICATION)
      | ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
[12/31] cc -Isrc/libkgx.so.p -Isrc -I../src -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gtk-3.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 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libhandy-0.0 -I/usr/include/vte-2.91 -I/usr/include/libgtop-2.0 -I/<<PKGBUILDDIR>>/_build -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=gnu11 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_24 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_24 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_58 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_58 -Wdeclaration-after-statement -Werror=format-security -Werror=format=2 -Werror=missing-declarations -Wformat-nonliteral -Wformat-security -Winit-self -Wmaybe-uninitialized -Wno-strict-aliasing -Wno-unused-parameter -Wold-style-definition -Wshadow -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wunused-function -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -MD -MQ src/libkgx.so.p/fp-vte-util.c.o -MF src/libkgx.so.p/fp-vte-util.c.o.d -o src/libkgx.so.p/fp-vte-util.c.o -c ../src/fp-vte-util.c
ninja: build stopped: subcommand failed.
dh_auto_build: error: cd _build && LC_ALL=C.UTF-8 ninja -j4 -v returned exit code 1
make: *** [debian/rules:18: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Debian-on-mobile-maintainers mailing list