Bug#1015527: libsvm: ftbfs with LTO (link time optimization) enabled

Matthias Klose doko at debian.org
Tue Jul 19 17:56:06 BST 2022


Package: src:libsvm
Version: 3.24+ds-6
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/libsvm_3.24+ds-6_unstable_dpkglto.log
The last lines of the build log are at the end of this report.

[...]
- (c++)"ONE_CLASS_Q::~ONE_CLASS_Q()@Base" 3.21+ds
- (c++)"SVC_Q::get_Q(int, int) const at Base" 3.21+ds
- (c++)"SVC_Q::get_QD() const at Base" 3.21+ds
- (c++)"SVC_Q::swap_index(int, int) const at Base" 3.21+ds
- (c++)"SVC_Q::~SVC_Q()@Base" 3.21+ds
- (c++|optional)"SVR_Q::SVR_Q(svm_problem const&, svm_parameter const&)@Base" 3.21+ds
- (c++)"SVR_Q::get_Q(int, int) const at Base" 3.21+ds
- (c++)"SVR_Q::get_QD() const at Base" 3.21+ds
- (c++)"SVR_Q::swap_index(int, int) const at Base" 3.21+ds
- (c++)"SVR_Q::~SVR_Q()@Base" 3.21+ds
+#MISSING: 3.24+ds-6# (c++)"ONE_CLASS_Q::get_Q(int, int) const at Base" 3.21+ds
+#MISSING: 3.24+ds-6# (c++)"ONE_CLASS_Q::get_QD() const at Base" 3.21+ds
+#MISSING: 3.24+ds-6# (c++)"ONE_CLASS_Q::swap_index(int, int) const at Base" 3.21+ds
+#MISSING: 3.24+ds-6# (c++)"ONE_CLASS_Q::~ONE_CLASS_Q()@Base" 3.21+ds
+#MISSING: 3.24+ds-6# (c++)"SVC_Q::get_Q(int, int) const at Base" 3.21+ds
+#MISSING: 3.24+ds-6# (c++)"SVC_Q::get_QD() const at Base" 3.21+ds
+#MISSING: 3.24+ds-6# (c++)"SVC_Q::swap_index(int, int) const at Base" 3.21+ds
+#MISSING: 3.24+ds-6# (c++)"SVC_Q::~SVC_Q()@Base" 3.21+ds
+#MISSING: 3.24+ds-6# (c++|optional)"SVR_Q::SVR_Q(svm_problem const&, svm_parameter const&)@Base" 3.21+ds
+#MISSING: 3.24+ds-6# (c++)"SVR_Q::get_Q(int, int) const at Base" 3.21+ds
+#MISSING: 3.24+ds-6# (c++)"SVR_Q::get_QD() const at Base" 3.21+ds
+#MISSING: 3.24+ds-6# (c++)"SVR_Q::swap_index(int, int) const at Base" 3.21+ds
+#MISSING: 3.24+ds-6# (c++)"SVR_Q::~SVR_Q()@Base" 3.21+ds
  (c++)"Solver::Solve(int, QMatrix const&, double const*, signed char const*, double*, double, double, double, Solver::SolutionInfo*, int)@Base" 3.21+ds
  (c++)"Solver::be_shrunk(int, double, double)@Base" 3.21+ds
  (c++)"Solver::calculate_rho()@Base" 3.21+ds
@@ -36,12 +36,12 @@
  (c++)"Solver::reconstruct_gradient()@Base" 3.21+ds
  (c++)"Solver::select_working_set(int&, int&)@Base" 3.21+ds
  (c++)"Solver::swap_index(int, int)@Base" 3.21+ds
- (c++)"Solver::~Solver()@Base" 3.21+ds
+#MISSING: 3.24+ds-6# (c++)"Solver::~Solver()@Base" 3.21+ds
  (c++)"Solver_NU::be_shrunk(int, double, double, double, double)@Base" 3.21+ds
  (c++)"Solver_NU::calculate_rho()@Base" 3.21+ds
  (c++)"Solver_NU::do_shrinking()@Base" 3.21+ds
  (c++)"Solver_NU::select_working_set(int&, int&)@Base" 3.21+ds
- (c++)"Solver_NU::~Solver_NU()@Base" 3.21+ds
+#MISSING: 3.24+ds-6# (c++)"Solver_NU::~Solver_NU()@Base" 3.21+ds
  libsvm_version at Base 3.21+ds
  (c++)"read_model_header(_IO_FILE*, svm_model*)@Base" 3.21+ds
  svm_check_parameter at Base 3.21+ds
@@ -64,10 +64,10 @@
  svm_set_print_string_function at Base 3.21+ds
  svm_train at Base 3.21+ds
  (c++)"typeinfo for Kernel at Base" 3.21+ds
- (c++)"typeinfo for ONE_CLASS_Q at Base" 3.21+ds
+#MISSING: 3.24+ds-6# (c++)"typeinfo for ONE_CLASS_Q at Base" 3.21+ds
  (c++)"typeinfo for QMatrix at Base" 3.21+ds
- (c++)"typeinfo for SVC_Q at Base" 3.21+ds
- (c++)"typeinfo for SVR_Q at Base" 3.21+ds
+#MISSING: 3.24+ds-6# (c++)"typeinfo for SVC_Q at Base" 3.21+ds
+#MISSING: 3.24+ds-6# (c++)"typeinfo for SVR_Q at Base" 3.21+ds
  (c++)"typeinfo for Solver at Base" 3.21+ds
  (c++)"typeinfo for Solver_NU at Base" 3.21+ds
  (c++)"typeinfo name for Kernel at Base" 3.21+ds
@@ -78,8 +78,8 @@
  (c++)"typeinfo name for Solver at Base" 3.21+ds
  (c++)"typeinfo name for Solver_NU at Base" 3.21+ds
  (c++)"vtable for Kernel at Base" 3.21+ds
- (c++)"vtable for ONE_CLASS_Q at Base" 3.21+ds
- (c++)"vtable for SVC_Q at Base" 3.21+ds
- (c++)"vtable for SVR_Q at Base" 3.21+ds
+#MISSING: 3.24+ds-6# (c++)"vtable for ONE_CLASS_Q at Base" 3.21+ds
+#MISSING: 3.24+ds-6# (c++)"vtable for SVC_Q at Base" 3.21+ds
+#MISSING: 3.24+ds-6# (c++)"vtable for SVR_Q at Base" 3.21+ds
  (c++)"vtable for Solver at Base" 3.21+ds
  (c++)"vtable for Solver_NU at Base" 3.21+ds
dh_makeshlibs: error: failing due to earlier errors
make: *** [debian/rules:39: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the debian-science-maintainers mailing list