#1015525 libssw: ftbfs with LTO (link time optimization) enabled

#1015525#5
Date:
2022-07-19 16:56:04 UTC
From:
To:
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/libssw_1.1-13_unstable_dpkglto.log
The last lines of the build log are at the end of this report.

[...]
Target:     9707    TGTTGATTGTTTC-CTTT    9723
                    |**|*||| |||| ||||
Query:       958    TTCTAATT-TTTCACTTT    974

make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   create-stamp debian/debhelper-build-stamp
   dh_prep
   debian/rules override_dh_auto_install
make[1]: Entering directory '/<<PKGBUILDDIR>>'
sed 's/@DEB_HOST_MULTIARCH@/x86_64-linux-gnu/g' debian/libssw0.install.in > debian/libssw0.install
sed 's/@DEB_HOST_MULTIARCH@/x86_64-linux-gnu/g' debian/libssw-dev.install.in > debian/libssw-dev.install
sed -e 's/@DEB_HOST_MULTIARCH@/x86_64-linux-gnu/g' \
            -e 's/@DEB_JAVA_PKG_VERSION@/1.1/g' debian/libssw-dev.links.in > debian/libssw-dev.links
sed 's/@DEB_HOST_MULTIARCH@/x86_64-linux-gnu/g' debian/libssw-java.install.in > debian/libssw-java.install
sed -e 's/@DEB_HOST_MULTIARCH@/x86_64-linux-gnu/g' \
            -e 's/@DEB_JAVA_PKG_VERSION@/1.1/g' debian/libssw-java.links.in > debian/libssw-java.links
mv src/ssw.jar src/ssw-1.1.jar
dh_auto_install
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_install
   jh_installjavadoc
   dh_installdocs
   dh_installchangelogs
   debian/rules override_dh_installman
make[1]: Entering directory '/<<PKGBUILDDIR>>'
LD_LIBRARY_PATH=`pwd`/src help2man --version-string=' ' --help-option=' ' \
          -I debian/extra-man-info.txt \
          -N -n 'fast Smith-Waterman aligner' \
          --no-discard-stderr src/ssw-align \
            | fgrep -v ERROR > debian/ssw-align.1
dh_installman
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_perl
   dh_link
   jh_installlibs
   jh_classpath
   jh_manifest
   jh_exec
   jh_depends
   mh_installpoms
   mh_linkjars --skip-clean-poms
   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/libssw0/DEBIAN/symbols doesn't match completely debian/libssw0.symbols
--- debian/libssw0.symbols (libssw0_1.1-13_amd64)
+++ dpkg-gensymbolsVnLhzb	2022-06-10 09:01:36.513958266 +0000
@@ -21,10 +21,10 @@
  _ZNK20StripedSmithWaterman7Aligner13TranslateBaseEPKcRKiPa@Base 1.1
  _ZNK20StripedSmithWaterman7Aligner5AlignEPKcRKNS_6FilterEPNS_9AlignmentE@Base 1.1
  _ZNK20StripedSmithWaterman7Aligner5AlignEPKcS2_RKiRKNS_6FilterEPNS_9AlignmentE@Base 1.1
- (optional)_ZNSt6vectorIjSaIjEE17_M_realloc_insertIJRKjEEEvN9__gnu_cxx17__normal_iteratorIPjS1_EEDpOT_@Base 1.1
- _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEED0Ev@Base 1.1
- _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEED1Ev@Base 1.1
- _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEED2Ev@Base 1.1
+#MISSING: 1.1-13# (optional)_ZNSt6vectorIjSaIjEE17_M_realloc_insertIJRKjEEEvN9__gnu_cxx17__normal_iteratorIPjS1_EEDpOT_@Base 1.1
+#MISSING: 1.1-13# _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEED0Ev@Base 1.1
+#MISSING: 1.1-13# _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEED1Ev@Base 1.1
+#MISSING: 1.1-13# _ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEED2Ev@Base 1.1
  align_destroy@Base 1.1
  init_destroy@Base 1.1
  mark_mismatch@Base 1.1
dh_makeshlibs: error: failing due to earlier errors
make: *** [debian/rules:20: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

#1015525#14
Date:
2024-07-23 18:37:22 UTC
From:
To:
Hello,

Bug #1015525 in libssw reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/med-team/libssw/-/commit/7faa4bb240af4b172e169c0d803b59873573e2c7
------------------------------------------------------------------------
d/libssw0.symbols: mark compiler leaked symbol as optional.

Closes: #1015525, #1075207
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1015525

#1015525#21
Date:
2024-07-23 19:04:18 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
libssw, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1015525@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Étienne Mollier <emollier@debian.org> (supplier of updated libssw package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 23 Jul 2024 20:36:29 +0200
Source: libssw
Architecture: source
Version: 1.1-15
Distribution: unstable
Urgency: medium
Maintainer: Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
Changed-By: Étienne Mollier <emollier@debian.org>
Closes: 1015525 1075207
Changes:
 libssw (1.1-15) unstable; urgency=medium
 .
   * Team upload.
 .
   [ Michael R. Crusoe ]
   * d/rules: append extra flag for ppc64el, don't override.
 .
   [ Étienne Mollier ]
   * d/libssw0.symbols: mark compiler leaked symbol as optional.
     (Closes: #1015525, #1075207)
   * d/rules: forcefully run LTO builds.
   * d/control: declare compliance to standards version 4.7.0.
Checksums-Sha1:
 0ab61aa48e22987cfbf8dc421ce3e1808ef499fe 2509 libssw_1.1-15.dsc
 49eca4dda657abb5c7064945f83cb18c53a95c1f 54308 libssw_1.1-15.debian.tar.xz
Checksums-Sha256:
 74507042776b3fba2d850857400bf789450dada4181e5a0f22c7ac359569b553 2509 libssw_1.1-15.dsc
 b036bff04c285d5339b268bb0a0b4c9cde81f24128968b51dd0a7d0de635f140 54308 libssw_1.1-15.debian.tar.xz
Files:
 2880533155b0e6497f2f13d12ed7c679 2509 science optional libssw_1.1-15.dsc
 44fb8d3c149cd1bb9fa71d9425417155 54308 science optional libssw_1.1-15.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQJIBAEBCgAyFiEEj5GyJ8fW8rGUjII2eTz2fo8NEdoFAmaf+lgUHGVtb2xsaWVy
QGRlYmlhbi5vcmcACgkQeTz2fo8NEdqU4xAAjZty5EfRKghUnfaVlxIShJgryCwe
J/Vsmi8SAGxDuzpIwNTNdyg8kyKY6825TSlOKcItrgH0q/UfelcpeKUd6h+Gdrdo
RShq4qzZRHZsvUD0ZzLN7DHHOx+JM9BHSVrn9018i4JefFT2IX9JyeoMkiqWoYxJ
cc0oHQBYoguQCJRB8hPPaW3Rc6zbl+72asvNF46wfOCXsEBEwsDVk06PITeM+nwV
/IL7roey4ruXEdzbeN8vTmqbXOg2B+Z/eEr6fm8NVPkeEdqWhTFCfYL3lwHNt6Ex
vRGHoEG+eS70PVtwZl2M5F2qdi8lPVIdwzdMMW/QWNeLxm/iUgIoEk7P8+enK/MR
zTjNi8KxtZON2N6ucbhYueMkYXTEigKsARng3MdjpDn9cjBHgsYlIJ67hRgIlwgg
J72woE2xuPqg+l9NbHw8PUCQIB/sK3C3RTzaPZ5V3wJLrZijst2nFZlRFcBCuM9V
frndde88dGHB92H7rce5oXDbRA0jApZ2ZKTZSMBDLQix3xzf977gR30XmD4evNf9
dzE2ROgSPSqOpTWTeNzBLgbfSg6BWmbrs/U5QKWrDL4YNnjmcmXsbsCY6rqhrYOo
ElcbeTuEnnPOYl3IH2SVp9Xye27OR4CcaWMs8jG/Rjz4Arz8lRZ9eTgi6t1GFnjy
QOzeql841k7SKyk=
=irPv
-----END PGP SIGNATURE-----