Bug#1015377: crossguid: ftbfs with LTO (link time optimization) enabled
Package: src:crossguid
Version: 0.0+git200150803-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/crossguid_0.0+git200150803-5_unstable_dpkglto.log
The last lines of the build log are at the end of this report.
[...]
Command: dpkg-buildpackage --sanitize-env -us -uc -b -rfakeroot
dpkg-buildpackage: info: source package crossguid
dpkg-buildpackage: info: source version 0.0+git200150803-5
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Balint Reczey <balint@balintreczey.hu>
dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
fakeroot debian/rules clean
dh clean
debian/rules override_dh_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_clean libcrossguid.* *.o
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules build
dh build
dh_update_autotools_config
dh_autoreconf
debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
x86_64-linux-gnu-g++ -shared -fPIC -Wall -std=c++11 -Wl,-soname,libcrossguid.so.0 -DGUID_LIBUUID \
-I/usr/include/uuid guid.cpp -o libcrossguid.so.0.0.1 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -luuid \
-flto=auto -ffat-lto-objects -Wl,-z,relro
ar x /usr/lib/x86_64-linux-gnu/libuuid.a
ar cr libcrossguid.a *.o
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
create-stamp debian/debhelper-build-stamp
fakeroot debian/rules binary
dh binary
dh_testroot
dh_prep
debian/rules override_dh_auto_install
make[1]: Entering directory '/<<PKGBUILDDIR>>'
mkdir -p debian/tmp/usr/include
mkdir -p debian/tmp/usr/lib/x86_64-linux-gnu
cp guid.h debian/tmp/usr/include/
cp libcrossguid.* debian/tmp/usr/lib/x86_64-linux-gnu/
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_install
dh_installdocs
dh_installchangelogs
dh_perl
debian/rules override_dh_link
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_link -plibcrossguid-dev usr/lib/x86_64-linux-gnu/libcrossguid.so.0.0.1 usr/lib/x86_64-linux-gnu/libcrossguid.so
dh_link -plibcrossguid0 usr/lib/x86_64-linux-gnu/libcrossguid.so.0.0.1 usr/lib/x86_64-linux-gnu/libcrossguid.so.0
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_strip_nondeterminism
dh_compress
dh_fixperms
dh_missing
dh_dwz -a
dh_strip -a
dh_makeshlibs -a
dpkg-gensymbols: error: some symbols or patterns disappeared in the symbols file: see diff output below
dpkg-gensymbols: warning: debian/libcrossguid0/DEBIAN/symbols doesn't match completely debian/libcrossguid0.symbols
--- debian/libcrossguid0.symbols (libcrossguid0_0.0+git200150803-5_amd64)
+++ dpkg-gensymbolsTEmDOc 2022-06-10 09:08:38.377891114 +0000
@@ -15,6 +15,6 @@
_ZN4GuidaSERKS_@Base 0.0+git200150803
_ZNK4GuideqERKS_@Base 0.0+git200150803
_ZNK4GuidneERKS_@Base 0.0+git200150803
- _ZNKSt5ctypeIcE8do_widenEc@Base 0.0+git200150803
- (optional)_ZNSt6vectorIhSaIhEEaSERKS1_@Base 0.0+git200150803
+#MISSING: 0.0+git200150803-5# _ZNKSt5ctypeIcE8do_widenEc@Base 0.0+git200150803
+#MISSING: 0.0+git200150803-5# (optional)_ZNSt6vectorIhSaIhEEaSERKS1_@Base 0.0+git200150803
_ZlsRSoRK4Guid@Base 0.0+git200150803
dh_makeshlibs: error: failing due to earlier errors
make: *** [debian/rules:11: binary] Error 25
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2
Reply to: