Bug#1015506: libofa: ftbfs with LTO (link time optimization) enabled
Package: src:libofa
Version: 0.9.3-21
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/libofa_0.9.3-21_unstable_dpkglto.log
The last lines of the build log are at the end of this report.
[...]
make[3]: Nothing to be done for 'install-exec-am'.
/bin/mkdir -p '/<<PKGBUILDDIR>>/debian/tmp/usr/lib/x86_64-linux-gnu/pkgconfig'
/usr/bin/install -c -m 644 libofa.pc '/<<PKGBUILDDIR>>/debian/tmp/usr/lib/x86_64-linux-gnu/pkgconfig'
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_install
dh_installdocs
dh_installchangelogs
dh_installexamples
dh_perl
dh_link
dh_strip_nondeterminism
dh_compress
dh_fixperms
dh_missing
dh_missing: warning: usr/lib/x86_64-linux-gnu/libofa.la exists in debian/tmp but is not installed to anywhere
The following debhelper tools have reported what they installed (with files per package)
* dh_install: libofa0 (2), libofa0-dev (4)
* dh_installdocs: libofa0 (1), libofa0-dev (1)
* dh_installexamples: libofa0 (0), libofa0-dev (5)
If the missing files are installed by another tool, please file a bug against it.
When filing the report, if the tool is not part of debhelper itself, please reference the
"Logging helpers and dh_missing" section from the "PROGRAMMING" guide for debhelper (10.6.3+).
(in the debhelper package: /usr/share/doc/debhelper/PROGRAMMING.gz)
Be sure to test with dpkg-buildpackage -A/-B as the results may vary when only a subset is built
If the omission is intentional or no other helper can take care of this consider adding the
paths to debian/not-installed.
Remember to be careful with paths containing "x86_64-linux-gnu", where you might need to
use a wildcard or (assuming compat 13+) e.g. ${DEB_HOST_MULTIARCH} in debian/not-installed
to ensure it works on all architectures (see #961104).
dh_dwz
dh_strip
dh_makeshlibs
dpkg-gensymbols: error: some symbols or patterns disappeared in the symbols file: see diff output below
dpkg-gensymbols: warning: debian/libofa0/DEBIAN/symbols doesn't match completely debian/libofa0.symbols
--- debian/libofa0.symbols (libofa0_0.9.3-21_amd64)
+++ dpkg-gensymbolsrgAYaP 2022-06-10 09:08:06.590351785 +0000
@@ -22,9 +22,9 @@
(c++)"FrameTracker_op::GetBestMatch(float, TrackFrame_op*)@Base" 0.9.3
(c++)"FrameTracker_op::TrackPeaks()@Base" 0.9.3
(c++)"FrameTracker_op::~FrameTracker_op()@Base" 0.9.3
- (optional|c++)"JAMA::SVD<float>::SVD(TNT::Array2D<float> const&)@Base" 0.9.3
- (c++)"OnePrintError::OnePrintError(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)@Base" 0.9.3
- (c++)"OnePrintError::~OnePrintError()@Base" 0.9.3
+#MISSING: 0.9.3-21# (optional|c++)"JAMA::SVD<float>::SVD(TNT::Array2D<float> const&)@Base" 0.9.3
+#MISSING: 0.9.3-21# (c++)"OnePrintError::OnePrintError(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)@Base" 0.9.3
+#MISSING: 0.9.3-21# (c++)"OnePrintError::~OnePrintError()@Base" 0.9.3
(c++)"Signal_op::ConvertSampleRate(long)@Base" 0.9.3
(c++)"Signal_op::CutSignal(double, double)@Base" 0.9.3
(c++)"Signal_op::GetCrossCorrelation()@Base" 0.9.3
@@ -38,10 +38,10 @@
(c++)"Signal_op::RemoveSilence(double, double)@Base" 0.9.3
(c++)"Signal_op::Signal_op()@Base" 0.9.3
(c++)"Signal_op::~Signal_op()@Base" 0.9.3
- (optional|c++)"TNT::Array1D<float>::Array1D(int)@Base" 0.9.3
- (optional|c++)"TNT::Array2D<float>::Array2D(int, int)@Base" 0.9.3
- (optional|c++)"TNT::Array2D<float>::initialize_(int, int)@Base" 0.9.3
- (c++)"TNT::Array2D<float>::~Array2D()@Base" 0.9.3
+#MISSING: 0.9.3-21# (optional|c++)"TNT::Array1D<float>::Array1D(int)@Base" 0.9.3
+#MISSING: 0.9.3-21# (optional|c++)"TNT::Array2D<float>::Array2D(int, int)@Base" 0.9.3
+#MISSING: 0.9.3-21# (optional|c++)"TNT::Array2D<float>::initialize_(int, int)@Base" 0.9.3
+#MISSING: 0.9.3-21# (c++)"TNT::Array2D<float>::~Array2D()@Base" 0.9.3
(c++)"TrackData_op::TrackData_op()@Base" 0.9.3
(c++)"TrackData_op::TrackData_op(float, float, float, float)@Base" 0.9.3
(c++)"TrackData_op::getDuration()@Base" 0.9.3
dh_makeshlibs: error: failing due to earlier errors
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Reply to: