[Pkg-sugar-devel] Bug#1015673: sugar-toolkit-gtk3: ftbfs with LTO (link time optimization) enabled
Matthias Klose
doko at debian.org
Tue Jul 19 18:01:12 BST 2022
Package: src:sugar-toolkit-gtk3
Version: 0.119-1
Severity: minor
Tags: sid bookworm
User: debian-gcc at lists.debian.org
Usertags: ftbfs-lto
This package currently fails to build (at least on the amd64
architecture) with link time optimizations enabled. For a background
for LTO please see
https://wiki.debian.org/ToolChain/LTO
The goal is to enable this optimization by default in an upcoming
Debian release in dpkg-buildflags for 64bit architectures. The goal
is to get this package to build with link time optimizations, or to
explicitly disable link time optimizations for this package build.
To reproduce the build failure, enable the lto optimization in
testing/unstable by adding "optimize=+lto" to DEB_BUILD_MAINT_OPTIONS
in the debian/rules file, or if this macro is unset, just set it:
export DEB_BUILD_MAINT_OPTIONS = optimize=+lto
Please try to fix the build with lto enabled, fixing the packaging or
forwarding the issue upstream. If the issue cannot be fixed,
explicitly disallow building the package with lto by adding to your
rules file:
export DEB_BUILD_MAINT_OPTIONS = optimize=-lto
or adding that string to your existing setting of DEB_BUILD_MAINT_OPTIONS.
The full build log can be found at:
http://qa-logs.debian.net/2022/06/09/dpkglto/sugar-toolkit-gtk3_0.119-1_unstable_dpkglto.log
The last lines of the build log are at the end of this report.
[...]
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:22,
from /usr/include/glib-2.0/gio/gioenums.h:28,
from /usr/include/glib-2.0/gio/giotypes.h:28,
from /usr/include/glib-2.0/gio/gio.h:26,
from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28,
from /usr/include/gtk-3.0/gdk/gdk.h:32,
from /usr/include/gtk-3.0/gdk/gdkx.h:28,
from ../../../src/sugar3/sugar-gesture-grabber.c:22:
/usr/include/glib-2.0/gobject/gtype.h:1346:10: note: declared here
1346 | void g_type_class_add_private (gpointer g_class,
| ^~~~~~~~~~~~~~~~~~~~~~~~
../../../src/sugar3/sugar-gesture-grabber.c: In function ‘filter_function’:
../../../src/sugar3/sugar-gesture-grabber.c:273:9: warning: ‘gdk_display_get_device_manager’ is deprecated: Use 'gdk_display_get_default_seat' instead [-Wdeprecated-declarations]
273 | device_manager = gdk_display_get_device_manager (display);
| ^~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gdk/gdkscreen.h:32,
from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31,
from /usr/include/gtk-3.0/gdk/gdk.h:32,
from /usr/include/gtk-3.0/gdk/gdkx.h:28,
from ../../../src/sugar3/sugar-gesture-grabber.c:22:
/usr/include/gtk-3.0/gdk/gdkdisplay.h:171:20: note: declared here
171 | GdkDeviceManager * gdk_display_get_device_manager (GdkDisplay *display);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../src/sugar3/sugar-gesture-grabber.c:311:17: warning: ‘gdk_error_trap_push’ is deprecated: Use 'gdk_x11_display_error_trap_push' instead [-Wdeprecated-declarations]
311 | gdk_error_trap_push ();
| ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gdk/gdk.h:50,
from /usr/include/gtk-3.0/gdk/gdkx.h:28,
from ../../../src/sugar3/sugar-gesture-grabber.c:22:
/usr/include/gtk-3.0/gdk/gdkmain.h:70:32: note: declared here
70 | void gdk_error_trap_push (void);
| ^~~~~~~~~~~~~~~~~~~
../../../src/sugar3/sugar-gesture-grabber.c:316:17: warning: ‘gdk_error_trap_pop_ignored’ is deprecated: Use 'gdk_x11_display_error_trap_pop_ignored' instead [-Wdeprecated-declarations]
316 | gdk_error_trap_pop_ignored ();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gdk/gdk.h:50,
from /usr/include/gtk-3.0/gdk/gdkx.h:28,
from ../../../src/sugar3/sugar-gesture-grabber.c:22:
/usr/include/gtk-3.0/gdk/gdkmain.h:75:32: note: declared here
75 | void gdk_error_trap_pop_ignored (void);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
../../../src/sugar3/sugar-gesture-grabber.c: In function ‘sugar_gesture_grabber_init’:
../../../src/sugar3/sugar-gesture-grabber.c:353:62: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
353 | SugarGestureGrabberPriv);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/bin/bash ../../libtool --tag=CC --mode=link gcc -DHAVE_ALSA -pthread -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/atk-1.0 -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/cairo -I/usr/include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-O1 -Wl,--as-needed -o libsugarext.la -rpath /usr/lib/x86_64-linux-gnu libsugarext_la-sugar-marshal.lo libsugarext_la-acme-volume-alsa.lo libsugarext_la-acme-volume.lo libsugarext_la-eggaccelerators.lo libsugarext_la-eggdesktopfile.lo libsugarext_la-eggsmclient.lo libsugarext_la-eggsmclient-xsmp.lo libsugarext_la-gsm-app.lo libsugarext_la-gsm-client.lo libsugarext_la-gsm-client-xsmp.lo libsugarext_la-gsm-session.lo libsugarext_la-gsm-xsmp.lo libsugarext_la-sugar-clipboard.lo libsugarext_la-sugar-fatattr.lo libsugarext_la-sugar-grid.lo libsugarext_la-sugar-cursor-tracker.lo libsugarext_la-sugar-gesture-grabber.lo libsugarext_la-sugar-key-grabber.lo libsugarext_la-sugar-wm.lo -lgtk-3 -latk-1.0 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -lcairo-gobject -lSM -lICE -lasound -lrsvg-2 -lm -lgio-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lcairo -lXfixes -lXi -lX11
libtool: link: gcc -shared -fPIC -DPIC .libs/libsugarext_la-sugar-marshal.o .libs/libsugarext_la-acme-volume-alsa.o .libs/libsugarext_la-acme-volume.o .libs/libsugarext_la-eggaccelerators.o .libs/libsugarext_la-eggdesktopfile.o .libs/libsugarext_la-eggsmclient.o .libs/libsugarext_la-eggsmclient-xsmp.o .libs/libsugarext_la-gsm-app.o .libs/libsugarext_la-gsm-client.o .libs/libsugarext_la-gsm-client-xsmp.o .libs/libsugarext_la-gsm-session.o .libs/libsugarext_la-gsm-xsmp.o .libs/libsugarext_la-sugar-clipboard.o .libs/libsugarext_la-sugar-fatattr.o .libs/libsugarext_la-sugar-grid.o .libs/libsugarext_la-sugar-cursor-tracker.o .libs/libsugarext_la-sugar-gesture-grabber.o .libs/libsugarext_la-sugar-key-grabber.o .libs/libsugarext_la-sugar-wm.o -lgtk-3 -latk-1.0 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -lcairo-gobject -lSM -lICE -lasound -lrsvg-2 -lm -lgio-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lcairo -lXfixes -lXi -lX11 -g -O2 -flto=auto -fstack-protector-strong -flto=auto -Wl,-z -Wl,relro -Wl,-O1 -Wl,--as-needed -pthread -Wl,-soname -Wl,libsugarext.so.0 -o .libs/libsugarext.so.0.0.0
g-ir-scanner: link: /bin/bash ../../libtool --mode=link --tag=CC gcc -o /<<PKGBUILDDIR>>/build/src/sugar3/tmp-introspect9v6gba40/SugarExt-1.0 -export-dynamic -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security /<<PKGBUILDDIR>>/build/src/sugar3/tmp-introspect9v6gba40/SugarExt-1.0.o -L. libsugarext.la ../../src/sugar3/event-controller/libsugar-eventcontroller.la -Wl,--export-dynamic -lgmodule-2.0 -pthread -lgtk-3 -latk-1.0 -lgio-2.0 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -lgdk_pixbuf-2.0 -lcairo-gobject -lcairo -lgobject-2.0 -lglib-2.0 -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-O1 -Wl,--as-needed
libtool: error: cannot find the library 'libsugarext.la' or unhandled argument 'libsugarext.la'
linking of temporary binary failed: Command '['/bin/bash', '../../libtool', '--mode=link', '--tag=CC', 'gcc', '-o', '/<<PKGBUILDDIR>>/build/src/sugar3/tmp-introspect9v6gba40/SugarExt-1.0', '-export-dynamic', '-Wdate-time', '-D_FORTIFY_SOURCE=2', '-g', '-O2', '-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-flto=auto', '-ffat-lto-objects', '-fstack-protector-strong', '-Wformat', '-Werror=format-security', '/<<PKGBUILDDIR>>/build/src/sugar3/tmp-introspect9v6gba40/SugarExt-1.0.o', '-L.', 'libsugarext.la', '../../src/sugar3/event-controller/libsugar-eventcontroller.la', '-Wl,--export-dynamic', '-lgmodule-2.0', '-pthread', '-lgtk-3', '-latk-1.0', '-lgio-2.0', '-lgdk-3', '-lpangocairo-1.0', '-lpango-1.0', '-lharfbuzz', '-lgdk_pixbuf-2.0', '-lcairo-gobject', '-lcairo', '-lgobject-2.0', '-lglib-2.0', '-flto=auto', '-ffat-lto-objects', '-Wl,-z,relro', '-Wl,-O1', '-Wl,--as-needed']' returned non-zero exit status 1.
make[5]: *** [/usr/share/gobject-introspection-1.0/Makefile.introspection:156: SugarExt-1.0.gir] Error 1
make[5]: *** Waiting for unfinished jobs....
libtool: link: (cd ".libs" && rm -f "libsugarext.so.0" && ln -s "libsugarext.so.0.0.0" "libsugarext.so.0")
libtool: link: (cd ".libs" && rm -f "libsugarext.so" && ln -s "libsugarext.so.0.0.0" "libsugarext.so")
libtool: link: ( cd ".libs" && rm -f "libsugarext.la" && ln -s "../libsugarext.la" "libsugarext.la" )
make[5]: Leaving directory '/<<PKGBUILDDIR>>/build/src/sugar3'
make[4]: *** [Makefile:988: all-recursive] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/build/src/sugar3'
make[3]: *** [Makefile:587: all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/build/src/sugar3'
make[2]: *** [Makefile:407: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/build/src'
make[1]: *** [Makefile:449: all-recursive] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>/build'
dh_auto_build: error: cd build && make -j8 returned exit code 2
make: *** [debian/rules:13: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
More information about the pkg-sugar-devel
mailing list