Bug#1015521: libsigc++-2.0: ftbfs with LTO (link time optimization) enabled

Matthias Klose doko at debian.org
Tue Jul 19 17:55:57 BST 2022


Package: src:libsigc++-2.0
Version: 2.10.4-2
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/libsigc++-2.0_2.10.4-2_unstable_dpkglto.log
The last lines of the build log are at the end of this report.

[...]
Installing /<<PKGBUILDDIR>>/sigc++/bind_return.h to /<<PKGBUILDDIR>>/debian/tmp/usr/include/sigc++-2.0/sigc++
Installing /<<PKGBUILDDIR>>/sigc++/connection.h to /<<PKGBUILDDIR>>/debian/tmp/usr/include/sigc++-2.0/sigc++
Installing /<<PKGBUILDDIR>>/sigc++/reference_wrapper.h to /<<PKGBUILDDIR>>/debian/tmp/usr/include/sigc++-2.0/sigc++
Installing /<<PKGBUILDDIR>>/sigc++/retype_return.h to /<<PKGBUILDDIR>>/debian/tmp/usr/include/sigc++-2.0/sigc++
Installing /<<PKGBUILDDIR>>/sigc++/signal_base.h to /<<PKGBUILDDIR>>/debian/tmp/usr/include/sigc++-2.0/sigc++
Installing /<<PKGBUILDDIR>>/sigc++/slot.h to /<<PKGBUILDDIR>>/debian/tmp/usr/include/sigc++-2.0/sigc++
Installing /<<PKGBUILDDIR>>/sigc++/trackable.h to /<<PKGBUILDDIR>>/debian/tmp/usr/include/sigc++-2.0/sigc++
Installing /<<PKGBUILDDIR>>/sigc++/type_traits.h to /<<PKGBUILDDIR>>/debian/tmp/usr/include/sigc++-2.0/sigc++
Installing /<<PKGBUILDDIR>>/sigc++/visit_each.h to /<<PKGBUILDDIR>>/debian/tmp/usr/include/sigc++-2.0/sigc++
Installing /<<PKGBUILDDIR>>/sigc++/adaptors/adaptors.h to /<<PKGBUILDDIR>>/debian/tmp/usr/include/sigc++-2.0/sigc++/adaptors
Installing /<<PKGBUILDDIR>>/sigc++/adaptors/bound_argument.h to /<<PKGBUILDDIR>>/debian/tmp/usr/include/sigc++-2.0/sigc++/adaptors
Installing /<<PKGBUILDDIR>>/sigc++/functors/functors.h to /<<PKGBUILDDIR>>/debian/tmp/usr/include/sigc++-2.0/sigc++/functors
Installing /<<PKGBUILDDIR>>/sigc++/functors/slot_base.h to /<<PKGBUILDDIR>>/debian/tmp/usr/include/sigc++-2.0/sigc++/functors
Installing /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/sigc++-2.0.pc to /<<PKGBUILDDIR>>/debian/tmp/usr/lib/x86_64-linux-gnu/pkgconfig
Installing /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/sigc++config.h to /<<PKGBUILDDIR>>/debian/tmp/usr/lib/x86_64-linux-gnu/sigc++-2.0/include
Installing /<<PKGBUILDDIR>>/docs/manual/../index.html to /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/libsigc++-2.0
Installing /<<PKGBUILDDIR>>/docs/manual/../images/libsigc_logo.gif to /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/libsigc++-2.0/images
Installing /<<PKGBUILDDIR>>/docs/manual/../images/top.gif to /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/libsigc++-2.0/images
Installing symlink pointing to libsigc-2.0.so.0.0.0 to /<<PKGBUILDDIR>>/debian/tmp/usr/lib/x86_64-linux-gnu/libsigc-2.0.so.0
Installing symlink pointing to libsigc-2.0.so.0 to /<<PKGBUILDDIR>>/debian/tmp/usr/lib/x86_64-linux-gnu/libsigc-2.0.so
Running custom install script '/usr/bin/python3 /<<PKGBUILDDIR>>/tools/handle-built-files.py install_built_h_files /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/sigc++ include/sigc++-2.0/sigc++ limit_reference.h signal.h adaptors/adaptor_trait.h adaptors/bind.h adaptors/bind_return.h adaptors/compose.h adaptors/deduce_result_type.h adaptors/exception_catch.h adaptors/hide.h adaptors/retype.h adaptors/retype_return.h adaptors/track_obj.h adaptors/lambda/base.h adaptors/lambda/select.h functors/functor_trait.h functors/mem_fun.h functors/ptr_fun.h functors/slot.h'
Running custom install script '/usr/bin/python3 /<<PKGBUILDDIR>>/untracked/build_scripts/doc-reference.py install_doc /<<PKGBUILDDIR>>/untracked/docs /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/docs/reference/libsigc++-2.0.devhelp2 share/devhelp/books/libsigc++-2.0 share/doc/libsigc++-2.0/reference/html -l libstdc++.tag at http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/'
   debian/rules override_dh_install
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_install -Xmd5
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_installdocs -O---buildsystem=meson
   dh_installchangelogs -O---buildsystem=meson
   debian/rules override_dh_installexamples
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_installexamples -plibsigc++-2.0-doc examples/*.cc
dh_installexamples --remaining-packages
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_installsystemduser -O---buildsystem=meson
   dh_lintian -O---buildsystem=meson
   dh_gnome -O---buildsystem=meson
   dh_perl -O---buildsystem=meson
   dh_link -O---buildsystem=meson
   dh_strip_nondeterminism -O---buildsystem=meson
   debian/rules override_dh_compress
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_compress -X.tag
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_fixperms -O---buildsystem=meson
   dh_missing -O---buildsystem=meson
   dh_dwz -a -O---buildsystem=meson
   dh_strip -a -O---buildsystem=meson
   dh_makeshlibs -a -O---buildsystem=meson
dpkg-gensymbols: error: some symbols or patterns disappeared in the symbols file: see diff output below
dpkg-gensymbols: warning: debian/libsigc++-2.0-0v5/DEBIAN/symbols doesn't match completely debian/libsigc++-2.0-0v5.symbols
--- debian/libsigc++-2.0-0v5.symbols (libsigc++-2.0-0v5_2.10.4-2_amd64)
+++ dpkg-gensymbols14TJeY	2022-06-10 09:01:26.714084697 +0000
@@ -40,7 +40,7 @@
  _ZN4sigc2_5E at Base 2.2.0
  _ZN4sigc2_6E at Base 2.2.0
  _ZN4sigc2_7E at Base 2.2.0
- _ZN4sigc8internal11signal_impl16unreference_execEv at Base 2.4.0
+#MISSING: 2.10.4-2# _ZN4sigc8internal11signal_impl16unreference_execEv at Base 2.4.0
  _ZN4sigc8internal11signal_impl5blockEb at Base 2.4.0
  _ZN4sigc8internal11signal_impl5clearEv at Base 2.2.0
  _ZN4sigc8internal11signal_impl5eraseESt14_List_iteratorINS_9slot_baseEE at Base 2.2.0
@@ -101,4 +101,4 @@
  _ZNK4sigc9trackable13callback_listEv at Base 2.2.0
  _ZNK4sigc9trackable27add_destroy_notify_callbackEPvPFS1_S1_E at Base 2.2.0
  _ZNK4sigc9trackable30remove_destroy_notify_callbackEPv at Base 2.2.0
- (optional)_ZNSt7__cxx1110_List_baseIN4sigc9slot_baseESaIS2_EE8_M_clearEv at Base 2.2.0
+#MISSING: 2.10.4-2# (optional)_ZNSt7__cxx1110_List_baseIN4sigc9slot_baseESaIS2_EE8_M_clearEv at Base 2.2.0
dh_makeshlibs: error: failing due to earlier errors
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2



More information about the pkg-gnome-maintainers mailing list