Bug#1015696: ucommon: ftbfs with LTO (link time optimization) enabled

Matthias Klose doko at debian.org
Tue Jul 19 18:02:00 BST 2022


Package: src:ucommon
Version: 7.0.1-0.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/ucommon_7.0.1-0.1_unstable_dpkglto.log
The last lines of the build log are at the end of this report.

[...]
  (c++)"vtable for ucommon::SharedProtocol at Base" 7.0.0
- (c++)"vtable for ucommon::SharedRef at Base" 7.0.0
+#MISSING: 7.0.1-0.1# (c++)"vtable for ucommon::SharedRef at Base" 7.0.0
  (c++)"vtable for ucommon::Socket at Base" 7.0.0
  (c++)"vtable for ucommon::SparseObjects at Base" 7.0.0
  (c++)"vtable for ucommon::StreamBuffer at Base" 7.0.0
  (c++)"vtable for ucommon::String::cstring at Base" 7.0.0
  (c++)"vtable for ucommon::String at Base" 7.0.0
- (c++)"vtable for ucommon::StringPager::member at Base" 7.0.0
+#MISSING: 7.0.1-0.1# (c++)"vtable for ucommon::StringPager::member at Base" 7.0.0
  (c++)"vtable for ucommon::StringPager at Base" 7.0.0
- (c++)"vtable for ucommon::TCPServer at Base" 7.0.0
+#MISSING: 7.0.1-0.1# (c++)"vtable for ucommon::TCPServer at Base" 7.0.0
  (c++)"vtable for ucommon::Thread::Local at Base" 7.0.0
  (c++)"vtable for ucommon::Thread at Base" 7.0.0
  (c++)"vtable for ucommon::Time at Base" 7.0.0
@@ -2953,12 +2953,12 @@
  (c++)"vtable for ucommon::TypeRef at Base" 7.0.0
  (c++)"vtable for ucommon::TypeRelease at Base" 7.0.0
  (c++)"vtable for ucommon::UString at Base" 7.0.0
- (c++)"vtable for ucommon::cidr at Base" 7.0.0
+#MISSING: 7.0.1-0.1# (c++)"vtable for ucommon::cidr at Base" 7.0.0
  (c++)"vtable for ucommon::filestream at Base" 7.0.0
  (c++)"vtable for ucommon::imemstream at Base" 7.0.0
  (c++)"vtable for ucommon::isotime at Base" 7.0.0
- (c++)"vtable for ucommon::keydata at Base" 7.0.0
- (c++)"vtable for ucommon::keyfile at Base" 7.0.0
+#MISSING: 7.0.1-0.1# (c++)"vtable for ucommon::keydata at Base" 7.0.0
+#MISSING: 7.0.1-0.1# (c++)"vtable for ucommon::keyfile at Base" 7.0.0
  (c++)"vtable for ucommon::memalloc at Base" 7.0.0
  (c++)"vtable for ucommon::mempager at Base" 7.0.0
  (c++)"vtable for ucommon::memstring at Base" 7.0.0
@@ -2971,12 +2971,12 @@
  (c++)"vtable for ucommon::shell::groupopt at Base" 7.0.0
  (c++)"vtable for ucommon::shell::numericopt at Base" 7.0.0
  (c++)"vtable for ucommon::shell::stringopt at Base" 7.0.0
- (c++)"vtable for ucommon::shell at Base" 7.0.0
+#MISSING: 7.0.1-0.1# (c++)"vtable for ucommon::shell at Base" 7.0.0
  (c++)"vtable for ucommon::tcpstream at Base" 7.0.0
- (c++)"vtable for ucommon::typeref<char const*, ucommon::auto_release>::value at Base" 7.0.0
- (c++)"vtable for ucommon::typeref<char const*, ucommon::auto_release>@Base" 7.0.0
- (c++)"vtable for ucommon::typeref<unsigned char const*, ucommon::auto_release>::value at Base" 7.0.0
- (c++)"vtable for ucommon::typeref<unsigned char const*, ucommon::auto_release>@Base" 7.0.0
+#MISSING: 7.0.1-0.1# (c++)"vtable for ucommon::typeref<char const*, ucommon::auto_release>::value at Base" 7.0.0
+#MISSING: 7.0.1-0.1# (c++)"vtable for ucommon::typeref<char const*, ucommon::auto_release>@Base" 7.0.0
+#MISSING: 7.0.1-0.1# (c++)"vtable for ucommon::typeref<unsigned char const*, ucommon::auto_release>::value at Base" 7.0.0
+#MISSING: 7.0.1-0.1# (c++)"vtable for ucommon::typeref<unsigned char const*, ucommon::auto_release>@Base" 7.0.0
 libusecure.so.8 libucommon8 #MINVER#
  (c++)"VTT for ucommon::sstream at Base" 7.0.0
  (c++)"non-virtual thunk to ucommon::sstream::~sstream()@Base" 7.0.0
@@ -3120,12 +3120,12 @@
  (c++)"ucommon::sstream::sstream(ucommon::secure*)@Base" 7.0.0
  (c++)"ucommon::sstream::sync()@Base" 7.0.0
  (c++)"ucommon::sstream::~sstream()@Base" 7.0.0
- (c++|optional=templinst)"ucommon::typeref<char const*, ucommon::auto_release>::~typeref()@Base" 7.0.0
- (c++|optional=templinst)"ucommon::typeref<unsigned char const*, ucommon::auto_release>::~typeref()@Base" 7.0.0
+#MISSING: 7.0.1-0.1# (c++|optional=templinst)"ucommon::typeref<char const*, ucommon::auto_release>::~typeref()@Base" 7.0.0
+#MISSING: 7.0.1-0.1# (c++|optional=templinst)"ucommon::typeref<unsigned char const*, ucommon::auto_release>::~typeref()@Base" 7.0.0
  (c++)"virtual thunk to ucommon::sstream::~sstream()@Base" 7.0.0
  (c++)"vtable for ucommon::AutoClear at Base" 7.0.0
  (c++)"vtable for ucommon::Cipher at Base" 7.0.0
  (c++)"vtable for ucommon::secure at Base" 7.0.0
  (c++)"vtable for ucommon::sstream at Base" 7.0.0
- (c++)"vtable for ucommon::typeref<char const*, ucommon::auto_release>@Base" 7.0.0
- (c++)"vtable for ucommon::typeref<unsigned char const*, ucommon::auto_release>@Base" 7.0.0
+#MISSING: 7.0.1-0.1# (c++)"vtable for ucommon::typeref<char const*, ucommon::auto_release>@Base" 7.0.0
+#MISSING: 7.0.1-0.1# (c++)"vtable for ucommon::typeref<unsigned char const*, ucommon::auto_release>@Base" 7.0.0
dh_makeshlibs: error: failing due to earlier errors
make: *** [debian/rules:14: binary] Error 25
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2



More information about the Pkg-voip-maintainers mailing list