Bug#1015662: skstream: ftbfs with LTO (link time optimization) enabled

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


Package: src:skstream
Version: 0.3.9-4
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/skstream_0.3.9-4_unstable_dpkglto.log
The last lines of the build log are at the end of this report.

[...]
@@ -134,7 +134,7 @@
  _ZTI19basic_socket_server at Base 0.3.8
  _ZTI19basic_socket_stream at Base 0.3.8
  _ZTI19dgram_socket_stream at Base 0.3.8
- _ZTI19ip_datagram_address at Base 0.3.9
+#MISSING: 0.3.9-4# _ZTI19ip_datagram_address at Base 0.3.9
  _ZTI20stream_socket_stream at Base 0.3.9
  _ZTI9socketbuf at Base 0.3.8
  _ZTS11tcp_address at Base 0.3.9
@@ -163,7 +163,7 @@
  _ZTT19basic_socket_stream at Base 0.3.8
  _ZTT19dgram_socket_stream at Base 0.3.8
  _ZTT20stream_socket_stream at Base 0.3.9
- _ZTV11tcp_address at Base 0.3.9
+#MISSING: 0.3.9-4# _ZTV11tcp_address at Base 0.3.9
  _ZTV12basic_socket at Base 0.3.8
  _ZTV13basic_address at Base 0.3.9
  _ZTV15dgram_socketbuf at Base 0.3.8
@@ -179,7 +179,7 @@
  _ZTV19basic_socket_server at Base 0.3.8
  _ZTV19basic_socket_stream at Base 0.3.8
  _ZTV19dgram_socket_stream at Base 0.3.8
- _ZTV19ip_datagram_address at Base 0.3.9
+#MISSING: 0.3.9-4# _ZTV19ip_datagram_address at Base 0.3.9
  _ZTV20stream_socket_stream at Base 0.3.9
  _ZTV9socketbuf at Base 0.3.8
  (c++)"basic_address::basic_address(int, int)@Base" 0.3.9
@@ -188,16 +188,16 @@
  (c++)"basic_address::~basic_address()@Base" 0.3.9
  (c++)"basic_socket::basic_socket()@Base" 0.3.8
  (c++)"basic_socket::~basic_socket()@Base" 0.3.8
- (c++|regex|optional=LTO)"construction vtable for std::basic_[io]{1,2}stream<char, std::char_traits<char> >-in-basic_socket_stream at Base" 0.3.8
- (c++|regex|optional=LTO)"construction vtable for std::basic_[io]{1,2}stream<char, std::char_traits<char> >-in-dgram_socket_stream at Base" 0.3.8
- (c++|regex|optional=LTO)"construction vtable for std::basic_[io]{1,2}stream<char, std::char_traits<char> >-in-raw_socket_stream at Base" 0.3.8
- (c++|regex|optional=LTO)"construction vtable for std::basic_[io]{1,2}stream<char, std::char_traits<char> >-in-tcp_socket_stream at Base" 0.3.8
- (c++|regex|optional=LTO)"construction vtable for std::basic_[io]{1,2}stream<char, std::char_traits<char> >-in-udp_socket_stream at Base" 0.3.8
- (c++|regex|optional=LTO)"construction vtable for std::basic_[io]{1,2}stream<char, std::char_traits<char> >-in-unix_socket_stream at Base" 0.3.8
+#MISSING: 0.3.9-4# (c++|regex|optional=LTO)"construction vtable for std::basic_[io]{1,2}stream<char, std::char_traits<char> >-in-basic_socket_stream at Base" 0.3.8
+#MISSING: 0.3.9-4# (c++|regex|optional=LTO)"construction vtable for std::basic_[io]{1,2}stream<char, std::char_traits<char> >-in-dgram_socket_stream at Base" 0.3.8
+#MISSING: 0.3.9-4# (c++|regex|optional=LTO)"construction vtable for std::basic_[io]{1,2}stream<char, std::char_traits<char> >-in-raw_socket_stream at Base" 0.3.8
+#MISSING: 0.3.9-4# (c++|regex|optional=LTO)"construction vtable for std::basic_[io]{1,2}stream<char, std::char_traits<char> >-in-tcp_socket_stream at Base" 0.3.8
+#MISSING: 0.3.9-4# (c++|regex|optional=LTO)"construction vtable for std::basic_[io]{1,2}stream<char, std::char_traits<char> >-in-udp_socket_stream at Base" 0.3.8
+#MISSING: 0.3.9-4# (c++|regex|optional=LTO)"construction vtable for std::basic_[io]{1,2}stream<char, std::char_traits<char> >-in-unix_socket_stream at Base" 0.3.8
  (c++)"dgram_socketbuf::setTarget(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, int)@Base" 0.3.9
  (c++)"dgram_socketbuf::~dgram_socketbuf()@Base" 0.3.8
  (c++)"ip_datagram_address::ip_datagram_address()@Base" 0.3.9
- (c++)"ip_datagram_address::~ip_datagram_address()@Base" 0.3.9
+#MISSING: 0.3.9-4# (c++)"ip_datagram_address::~ip_datagram_address()@Base" 0.3.9
  (c++)"ip_socket_server::~ip_socket_server()@Base" 0.3.8
  (c++)"non-virtual thunk to basic_socket_stream::~basic_socket_stream()@Base" 0.3.8
  (c++)"non-virtual thunk to dgram_socket_stream::~dgram_socket_stream()@Base" 0.3.8
@@ -207,13 +207,13 @@
  (c++)"non-virtual thunk to udp_socket_stream::~udp_socket_stream()@Base" 0.3.8
  (c++)"non-virtual thunk to unix_socket_stream::~unix_socket_stream()@Base" 0.3.8
  (c++)"socketbuf::~socketbuf()@Base" 0.3.8
- (c++)"std::ctype<char>::do_widen(char) const at Base" 0.3.9
+#MISSING: 0.3.9-4# (c++)"std::ctype<char>::do_widen(char) const at Base" 0.3.9
  (c++)"stream_socket_stream::stream_socket_stream()@Base" 0.3.9
  (c++)"stream_socket_stream::stream_socket_stream(int)@Base" 0.3.9
  (c++)"stream_socket_stream::~stream_socket_stream()@Base" 0.3.9
  (c++)"stream_socketbuf::~stream_socketbuf()@Base" 0.3.8
  (c++)"tcp_address::tcp_address()@Base" 0.3.9
- (c++)"tcp_address::~tcp_address()@Base" 0.3.9
+#MISSING: 0.3.9-4# (c++)"tcp_address::~tcp_address()@Base" 0.3.9
  (c++)"tcp_socket_stream::getRemoteHost[abi:cxx11](bool) const at Base" 0.3.9
  (c++)"tcp_socket_stream::getRemoteService[abi:cxx11](bool) const at Base" 0.3.9
  (c++)"tcp_socket_stream::open(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, bool)@Base" 0.3.9
dh_makeshlibs: error: failing due to earlier errors
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2



More information about the Pkg-games-devel mailing list