[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1015562: onboard: ftbfs with LTO (link time optimization) enabled



Package: src:onboard
Version: 1.4.1-5
Severity: minor
Tags: sid bookworm
User: debian-gcc@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/onboard_1.4.1-5_unstable_dpkglto.log
The last lines of the build log are at the end of this report.

[...]
      |         ^~
In file included from /usr/include/gtk-3.0/gdk/gdk.h:50,
                 from /usr/include/gtk-3.0/gdk/gdkx.h:28,
                 from Onboard/osk/osk_util.c:26:
/usr/include/gtk-3.0/gdk/gdkmain.h:73:32: note: declared here
   73 | G_GNUC_WARN_UNUSED_RESULT gint gdk_error_trap_pop         (void);
      |                                ^~~~~~~~~~~~~~~~~~
Onboard/osk/osk_util.c: In function ‘get_window_name’:
Onboard/osk/osk_util.c:493:5: warning: ‘gdk_error_trap_push’ is deprecated: Use 'gdk_x11_display_error_trap_push' instead [-Wdeprecated-declarations]
  493 |     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 Onboard/osk/osk_util.c:26:
/usr/include/gtk-3.0/gdk/gdkmain.h:70:32: note: declared here
   70 | void                           gdk_error_trap_push        (void);
      |                                ^~~~~~~~~~~~~~~~~~~
Onboard/osk/osk_util.c:498:5: warning: ‘gdk_error_trap_pop_ignored’ is deprecated: Use 'gdk_x11_display_error_trap_pop_ignored' instead [-Wdeprecated-declarations]
  498 |     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 Onboard/osk/osk_util.c:26:
/usr/include/gtk-3.0/gdk/gdkmain.h:75:32: note: declared here
   75 | void                           gdk_error_trap_pop_ignored (void);
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DMAJOR_VERSION=0 -DMINOR_VERSION=4 -DMICRO_VERSION=0 -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/dconf -I/usr/include/freetype2 -I/usr/include/fribidi -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/include/gtk-3.0 -I/usr/include/harfbuzz -I/usr/include/hunspell -I/usr/include/libmount -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/x86_64-linux-gnu -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/python3.10 -c Onboard/osk/osk_virtkey.c -o build/temp.linux-x86_64-3.10/Onboard/osk/osk_
 virtkey.o -Wsign-compare -Wdeclaration-after-statement -Werror=declaration-after-statement
In file included from /usr/include/string.h:519,
                 from /usr/include/glib-2.0/glib/galloca.h:33,
                 from /usr/include/glib-2.0/glib.h:30,
                 from /usr/include/gtk-3.0/gdk/gdkconfig.h:13,
                 from /usr/include/gtk-3.0/gdk/gdk.h:30,
                 from Onboard/osk/osk_virtkey.c:23:
In function ‘strncpy’,
    inlined from ‘virtkey_get_label_from_keysym’ at Onboard/osk/osk_virtkey.c:1095:21:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:95:10: warning: ‘__strncpy_chk’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
   95 |   return __builtin___strncpy_chk (__dest, __src, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   96 |                                   __glibc_objsize (__dest));
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h:9,
                 from /usr/include/glib-2.0/glib/gtypes.h:32,
                 from /usr/include/glib-2.0/glib/galloca.h:32,
                 from /usr/include/glib-2.0/glib.h:30,
                 from /usr/include/gtk-3.0/gdk/gdkconfig.h:13,
                 from /usr/include/gtk-3.0/gdk/gdk.h:30,
                 from Onboard/osk/osk_virtkey.c:23:
Onboard/osk/osk_virtkey.c: In function ‘virtkey_get_label_from_keysym’:
Onboard/osk/osk_virtkey.c:1094:36: note: length computed here
 1094 |                     size_t l = MIN(strlen(name), sizeof(buf)-1);
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DMAJOR_VERSION=0 -DMINOR_VERSION=4 -DMICRO_VERSION=0 -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/dconf -I/usr/include/freetype2 -I/usr/include/fribidi -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/include/gtk-3.0 -I/usr/include/harfbuzz -I/usr/include/hunspell -I/usr/include/libmount -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/x86_64-linux-gnu -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/python3.10 -c Onboard/osk/osk_virtkey_wayland.c -o build/temp.linux-x86_64-3.10/Onboard/
 osk/osk_virtkey_wayland.o -Wsign-compare -Wdeclaration-after-statement -Werror=declaration-after-statement
Onboard/osk/osk_virtkey_wayland.c: In function ‘get_gdk_keymap’:
Onboard/osk/osk_virtkey_wayland.c:68:5: warning: ‘gdk_keymap_get_default’ is deprecated: Use 'gdk_keymap_get_for_display' instead [-Wdeprecated-declarations]
   68 |     return gdk_keymap_get_default();
      |     ^~~~~~
In file included from /usr/include/gtk-3.0/gdk/gdk.h:48,
                 from Onboard/osk/osk_virtkey_wayland.c:26:
/usr/include/gtk-3.0/gdk/gdkkeys.h:84:12: note: declared here
   84 | GdkKeymap* gdk_keymap_get_default     (void);
      |            ^~~~~~~~~~~~~~~~~~~~~~
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DMAJOR_VERSION=0 -DMINOR_VERSION=4 -DMICRO_VERSION=0 -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/dconf -I/usr/include/freetype2 -I/usr/include/fribidi -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/include/gtk-3.0 -I/usr/include/harfbuzz -I/usr/include/hunspell -I/usr/include/libmount -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/x86_64-linux-gnu -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/python3.10 -c Onboard/osk/osk_virtkey_x.c -o build/temp.linux-x86_64-3.10/Onboard/osk/os
 k_virtkey_x.o -Wsign-compare -Wdeclaration-after-statement -Werror=declaration-after-statement
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -flto=auto -ffat-lto-objects -specs=/usr/share/dpkg/no-pie-link.specs -Wl,-z,relro -Wl,-z,now -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.10/Onboard/osk/osk_audio.o build/temp.linux-x86_64-3.10/Onboard/osk/osk_click_mapper.o build/temp.linux-x86_64-3.10/Onboard/osk/osk_dconf.o build/temp.linux-x86_64-3.10/Onboard/osk/osk_devices.o build/temp.linux-x86_64-3.10/Onboard/osk/osk_hunspell.o build/temp.linux-x86_64-3.10/Onboard/osk/osk_module.o build/temp.linux-x86_64-3.10/Onboard/osk/osk_struts.o build/temp.linux-x86_64-3.10/Onboard/osk/osk_udev.o build/temp.linux-x86_64-3.10/Onboard/osk/osk_uinput.o build/temp.linux-x86_64-3.10/Onboard/osk/osk_util.o build/temp.linux-x86_64-3.10/Onboard/osk/osk_virtkey.o build/temp.li
 nux-x86_64-3.10/Onboard/osk/osk_virtkey_wayland.o build/temp.linux-x86_64-3.10/Onboard/osk/osk_virtkey_x.o -lX11 -lXi -lXtst -lcairo -lcairo-gobject -lcanberra -ldconf -lgdk-3 -lgdk_pixbuf-2.0 -lgio-2.0 -lglib-2.0 -lgobject-2.0 -lharfbuzz -lhunspell-1.7 -lpango-1.0 -lpangocairo-1.0 -ludev -lxkbfile -o /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_onboard/build/Onboard/osk.cpython-310-x86_64-linux-gnu.so -D_REENTRANT -pthread
/usr/bin/ld: /tmp/cc2G90yp.ltrans0.ltrans.o: relocation R_X86_64_32S against undefined symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
E: pybuild pybuild:369: build: plugin distutils failed with: exit code=1: /usr/bin/python3 setup.py build 
dh_auto_build: error: pybuild --build -i python{version} -p "3.9 3.10" returned exit code 13
make: *** [debian/rules:9: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


Reply to: