[Debian-med-packaging] Bug#1015484: libedlib: ftbfs with LTO (link time optimization) enabled
Matthias Klose
doko at debian.org
Tue Jul 19 17:54:48 BST 2022
Package: src:libedlib
Version: 1.2.7-3
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/libedlib_1.2.7-3_unstable_dpkglto.log
The last lines of the build log are at the end of this report.
[...]
writing top-level names to edlib.egg-info/top_level.txt
reading manifest file 'edlib.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'edlib.egg-info/SOURCES.txt'
Copying edlib.egg-info to /<<PKGBUILDDIR>>/debian/python3-edlib/usr/lib/python3.10/dist-packages/edlib-1.3.8.post2.egg-info
Skipping SOURCES.txt
running install_scripts
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules override_dh_install
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_install
file-rename 's/_static\.a/.a/' `find debian -name libedlib_static.a`
d-shlibmove --commit \
--multiarch \
--devunversioned \
--exclude-la \
--movedev debian/tmp/usr/include/* usr/include \
--movedev debian/tmp/usr/lib/*/cmake usr/lib/x86_64-linux-gnu \
--movedev debian/tmp/usr/lib/*/pkgconfig usr/lib/x86_64-linux-gnu \
debian/tmp/usr/lib/*/*.so
Library package automatic movement utility
set -e
install -d -m 755 debian/libedlib-dev/usr/lib/x86_64-linux-gnu
install -d -m 755 debian/libedlib1/usr/lib/x86_64-linux-gnu
mv debian/tmp/usr/lib/x86_64-linux-gnu/libedlib.a debian/libedlib-dev/usr/lib/x86_64-linux-gnu
mv debian/tmp/usr/lib/x86_64-linux-gnu/libedlib.so debian/libedlib-dev/usr/lib/x86_64-linux-gnu
mv /<<PKGBUILDDIR>>/debian/tmp/usr/lib/x86_64-linux-gnu/libedlib.so.1 debian/libedlib1/usr/lib/x86_64-linux-gnu
mv /<<PKGBUILDDIR>>/debian/tmp/usr/lib/x86_64-linux-gnu/libedlib.so.1.2.7 debian/libedlib1/usr/lib/x86_64-linux-gnu
PKGDEV=libedlib-dev
PKGSHL=libedlib1
install -d -m 755 debian/libedlib-dev/usr/include
mv debian/tmp/usr/include/edlib.h debian/libedlib-dev/usr/include
install -d -m 755 debian/libedlib-dev/usr/lib/x86_64-linux-gnu
mv debian/tmp/usr/lib/x86_64-linux-gnu/cmake debian/libedlib-dev/usr/lib/x86_64-linux-gnu
install -d -m 755 debian/libedlib-dev/usr/lib/x86_64-linux-gnu
mv debian/tmp/usr/lib/x86_64-linux-gnu/pkgconfig debian/libedlib-dev/usr/lib/x86_64-linux-gnu
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_installdocs
dh_installchangelogs
dh_installexamples
dh_installman
dh_python3
dh_perl
dh_link
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/libedlib1/DEBIAN/symbols doesn't match completely debian/libedlib1.symbols
--- debian/libedlib1.symbols (libedlib1_1.2.7-3_amd64)
+++ dpkg-gensymbolsXZzwjQ 2022-06-10 09:05:00.965676710 +0000
@@ -1,8 +1,8 @@
libedlib.so.1 libedlib1 #MINVER#
* Build-Depends-Package: libedlib-dev
- _ZNSt6vectorIcSaIcEE17_M_realloc_insertIJRKcEEEvN9__gnu_cxx17__normal_iteratorIPcS1_EEDpOT_ at Base 1.2.4
- _ZNSt6vectorIcSaIcEE17_M_realloc_insertIJcEEEvN9__gnu_cxx17__normal_iteratorIPcS1_EEDpOT_ at Base 1.2.4
- _ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_ at Base 1.2.3
+#MISSING: 1.2.7-3# _ZNSt6vectorIcSaIcEE17_M_realloc_insertIJRKcEEEvN9__gnu_cxx17__normal_iteratorIPcS1_EEDpOT_ at Base 1.2.4
+#MISSING: 1.2.7-3# _ZNSt6vectorIcSaIcEE17_M_realloc_insertIJcEEEvN9__gnu_cxx17__normal_iteratorIPcS1_EEDpOT_ at Base 1.2.4
+#MISSING: 1.2.7-3# _ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_ at Base 1.2.3
edlibAlign at Base 1.2.3
edlibAlignmentToCigar at Base 1.2.3
edlibDefaultAlignConfig at Base 1.2.3
dh_makeshlibs: error: failing due to earlier errors
make: *** [debian/rules:17: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
More information about the Debian-med-packaging
mailing list