Bug#1015548: mpsolve: ftbfs with LTO (link time optimization) enabled

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


Package: src:mpsolve
Version: 3.2.1-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/mpsolve_3.2.1-6_unstable_dpkglto.log
The last lines of the build log are at the end of this report.

[...]
make[3]: Entering directory '/<<PKGBUILDDIR>>/mime'
make[3]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/<<PKGBUILDDIR>>/debian/tmp/usr/share/mime/packages'
 /usr/bin/install -c -m 644 mpsolve.xml '/<<PKGBUILDDIR>>/debian/tmp/usr/share/mime/packages'
if [ -f /<<PKGBUILDDIR>>/debian/tmp/usr/share/mime/packages/freedesktop.org.xml ] ; then \
  if which update-mime-database>/dev/null 2>&1; then \
    update-mime-database /<<PKGBUILDDIR>>/debian/tmp/usr/share/mime; \
  fi \
fi
 /bin/mkdir -p '/<<PKGBUILDDIR>>/debian/tmp/usr/share/mime-info'
 /usr/bin/install -c -m 644 mpsolve.mime '/<<PKGBUILDDIR>>/debian/tmp/usr/share/mime-info'
make[3]: Leaving directory '/<<PKGBUILDDIR>>/mime'
make[2]: Leaving directory '/<<PKGBUILDDIR>>/mime'
make[2]: Entering directory '/<<PKGBUILDDIR>>'
make[3]: Entering directory '/<<PKGBUILDDIR>>'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_install
   dh_installdocs
   dh_installchangelogs
   dh_installexamples
   dh_installman
   dh_python3
   dh_lintian
   dh_icons
   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/libmps3/DEBIAN/symbols doesn't match completely debian/libmps3.symbols
--- debian/libmps3.symbols (libmps3_3.2.1-6_amd64)
+++ dpkg-gensymbols0TyNeo	2022-06-10 08:56:40.689574792 +0000
@@ -235,7 +235,7 @@
  (c++)"mps::NRootsPolynomial::newton(mps_context*, mps_approximation*, __cdpe_struct*)@Base" 3.1.8
  (c++)"mps::NRootsPolynomial::newton(mps_context*, mps_approximation*, __cplx_struct*)@Base" 3.1.8
  (c++)"mps::NRootsPolynomial::newton(mps_context*, mps_approximation*, __mpc_struct*, long)@Base" 3.1.8
- (c++)"mps::NRootsPolynomial::~NRootsPolynomial()@Base" 3.1.8
+#MISSING: 3.2.1-6# (c++)"mps::NRootsPolynomial::~NRootsPolynomial()@Base" 3.1.8
  (c++)"mps::Polynomial::Polynomial(mps_context*, char const*)@Base" 3.1.8
  (c++)"mps::Polynomial::deval_wrapper(mps_context*, mps_polynomial*, __cdpe_struct*, __cdpe_struct*, __rdpe_struct*)@Base" 3.1.8
  (c++)"mps::Polynomial::dnewton_wrapper(mps_context*, mps_polynomial*, mps_approximation*, __cdpe_struct*)@Base" 3.1.8
@@ -646,12 +646,12 @@
  rdpe_swap at Base 3.1.8
  rdpe_vinit at Base 3.1.8
  rdpe_zero at Base 3.1.8
- (c++)"std::ctype<char>::do_widen(char) const at Base" 3.1.8
+#MISSING: 3.2.1-6# (c++)"std::ctype<char>::do_widen(char) const at Base" 3.1.8
  (arch-bits=32|c++)"std::vector<mps::formal::Monomial, std::allocator<mps::formal::Monomial> >::_M_default_append(unsigned int)@Base" 3.1.8
- (arch-bits=64|c++)"std::vector<mps::formal::Monomial, std::allocator<mps::formal::Monomial> >::_M_default_append(unsigned long)@Base" 3.1.8
+#MISSING: 3.2.1-6# (arch-bits=64|c++)"std::vector<mps::formal::Monomial, std::allocator<mps::formal::Monomial> >::_M_default_append(unsigned long)@Base" 3.1.8
  (arch-bits=32|c++)"std::vector<mps::formal::Monomial, std::allocator<mps::formal::Monomial> >::_M_fill_insert(__gnu_cxx::__normal_iterator<mps::formal::Monomial*, std::vector<mps::formal::Monomial, std::allocator<mps::formal::Monomial> > >, unsigned int, mps::formal::Monomial const&)@Base" 3.1.8
- (arch-bits=64|c++)"std::vector<mps::formal::Monomial, std::allocator<mps::formal::Monomial> >::_M_fill_insert(__gnu_cxx::__normal_iterator<mps::formal::Monomial*, std::vector<mps::formal::Monomial, std::allocator<mps::formal::Monomial> > >, unsigned long, mps::formal::Monomial const&)@Base" 3.1.8
- (c++)"std::vector<mps::formal::Monomial, std::allocator<mps::formal::Monomial> >::~vector()@Base" 3.1.8
+#MISSING: 3.2.1-6# (arch-bits=64|c++)"std::vector<mps::formal::Monomial, std::allocator<mps::formal::Monomial> >::_M_fill_insert(__gnu_cxx::__normal_iterator<mps::formal::Monomial*, std::vector<mps::formal::Monomial, std::allocator<mps::formal::Monomial> > >, unsigned long, mps::formal::Monomial const&)@Base" 3.1.8
+#MISSING: 3.2.1-6# (c++)"std::vector<mps::formal::Monomial, std::allocator<mps::formal::Monomial> >::~vector()@Base" 3.1.8
  (c++)"typeinfo for mps::AbstractInputStream at Base" 3.1.8
  (c++)"typeinfo for mps::FileInputStream at Base" 3.1.8
  (c++)"typeinfo for mps::MemoryFileStream at Base" 3.1.8
dh_makeshlibs: error: failing due to earlier errors
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the debian-science-maintainers mailing list