Bug#1015657: scscp-imcce: ftbfs with LTO (link time optimization) enabled

Matthias Klose doko at debian.org
Tue Jul 19 18:00:43 BST 2022


Package: src:scscp-imcce
Version: 1.0.3+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/scscp-imcce_1.0.3+ds-6_unstable_dpkglto.log
The last lines of the build log are at the end of this report.

[...]
   dh_installinfo
   dh_perl
   dh_link
   dh_strip_nondeterminism
   debian/rules override_dh_compress-indep
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_compress -X.pdf -Xexamples
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_compress -Nlibscscp-doc
   dh_fixperms
   dh_missing
dh_missing: warning: usr/lib/x86_64-linux-gnu/libscscp.la exists in debian/tmp but is not installed to anywhere 
dh_missing: warning: usr/lib/x86_64-linux-gnu/libscscpxx.la exists in debian/tmp but is not installed to anywhere 
dh_missing: warning: usr/share/doc/libscscp/scscp.html exists in debian/tmp but is not installed to anywhere (related file: "doc/scscp.html")
dh_missing: warning: usr/share/doc/libscscp/scscp.pdf exists in debian/tmp but is not installed to anywhere (related file: "doc/scscp.pdf")
dh_missing: warning: usr/share/info/scscp.info exists in debian/tmp but is not installed to anywhere (related file: "doc/scscp.info")

	While detecting missing files, dh_missing noted some files with a similar name to those
	that were missing.  This warning /might/ be resolved by replacing references to the
	missing files with the similarly named ones that dh_missing found - assuming the content
	is identical.

	As an example, you might want to replace:
	 * doc/scscp.html
	with:
	 * usr/share/doc/libscscp/scscp.html
	in a file in debian/ or as argument to one of the dh_* tools called from debian/rules.
	(Note it is possible the paths are not used verbatim but instead directories 
	containing or globs matching them are used instead)

	Alternatively, add the missing file to debian/not-installed if it cannot and should not
	be used.

	The following debhelper tools have reported what they installed (with files per package)
	 * dh_install: libscscp-doc (0), libscscp1 (4), libscscp1-dev (7)
	 * dh_installdocs: libscscp-doc (5), libscscp1 (3), libscscp1-dev (0)
	 * dh_installexamples: libscscp-doc (11), libscscp1 (0), libscscp1-dev (0)
	 * dh_installinfo: libscscp-doc (1), libscscp1 (0), libscscp1-dev (0)
	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/libscscp1/DEBIAN/symbols doesn't match completely debian/libscscp1.symbols.amd64
--- debian/libscscp1.symbols.amd64 (libscscp1_1.0.3+ds-6_amd64)
+++ dpkg-gensymbolsVrJHSM	2022-06-10 09:00:01.385272832 +0000
@@ -142,8 +142,8 @@
  _ZN5SCSCP10IunfstreamrsERd at LIBSCSCPXX_1.0.0 1.0.0
  _ZN5SCSCP10IunfstreamrsERi at LIBSCSCPXX_1.0.0 1.0.0
  _ZN5SCSCP10OMBasenode7beginOMEv at LIBSCSCPXX_1.0.0 1.0.0
- _ZN5SCSCP10OfmtstreamD0Ev at LIBSCSCPXX_1.0.0 1.0.0
- _ZN5SCSCP10OfmtstreamD1Ev at LIBSCSCPXX_1.0.0 1.0.0
+#MISSING: 1.0.3+ds-6# _ZN5SCSCP10OfmtstreamD0Ev at LIBSCSCPXX_1.0.0 1.0.0
+#MISSING: 1.0.3+ds-6# _ZN5SCSCP10OfmtstreamD1Ev at LIBSCSCPXX_1.0.0 1.0.0
  _ZN5SCSCP10OunfstreamC1EPP18SCSCP_stFileclientP12SCSCP_status at LIBSCSCPXX_1.0.0 1.0.0
  _ZN5SCSCP10OunfstreamC2EPP18SCSCP_stFileclientP12SCSCP_status at LIBSCSCPXX_1.0.0 1.0.0
  _ZN5SCSCP10OunfstreamD1Ev at LIBSCSCPXX_1.0.0 1.0.0
dh_makeshlibs: error: failing due to earlier errors
make: *** [debian/rules:11: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the debian-science-maintainers mailing list