Bug#1015392: dune-common: ftbfs with LTO (link time optimization) enabled

Matthias Klose doko at debian.org
Tue Jul 19 17:51:39 BST 2022


Package: src:dune-common
Version: 2.8.0-4
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/dune-common_2.8.0-4_unstable_dpkglto.log
The last lines of the build log are at the end of this report.

[...]
108/113 Test #108: utilitytest ............................   Passed    0.00 sec
        Start 109: eigenvaluestest
109/113 Test #109: eigenvaluestest ........................   Passed    0.50 sec
        Start 110: versiontest
110/113 Test #110: versiontest ............................   Passed    0.00 sec
        Start 111: mathtest
111/113 Test #111: mathtest ...............................   Passed    0.00 sec
        Start 112: vcexpectedimpltest
112/113 Test #112: vcexpectedimpltest .....................***Skipped   0.00 sec
        Start 113: alignedallocatortest
113/113 Test #113: alignedallocatortest ...................   Passed    0.00 sec

95% tests passed, 6 tests failed out of 113

Label Time Summary:
quick    =  25.11 sec*proc (105 tests)

Total Test time (real) =  21.44 sec

The following tests did not run:
	 18 - vcarraytest (Skipped)
	 19 - vcvectortest (Skipped)
	 69 - metistest (Skipped)
	 80 - parametertreelocaletest (Skipped)
	 88 - scotchtest (Skipped)
	112 - vcexpectedimpltest (Skipped)

The following tests FAILED:
	 97 - testdebugallocator (NUMERICAL)
	 98 - testdebugallocator_fail1 (NUMERICAL)
	 99 - testdebugallocator_fail2 (NUMERICAL)
	100 - testdebugallocator_fail3 (NUMERICAL)
	101 - testdebugallocator_fail4 (NUMERICAL)
	102 - testdebugallocator_fail5 (NUMERICAL)
Errors while running CTest
======================================================================
Name:      testdebugallocator
FullName:  ./dune/common/test/testdebugallocator
Status:    FAILED

======================================================================
Name:      testdebugallocator_fail1
FullName:  ./dune/common/test/testdebugallocator_fail1
Status:    FAILED

======================================================================
Name:      testdebugallocator_fail2
FullName:  ./dune/common/test/testdebugallocator_fail2
Status:    FAILED

======================================================================
Name:      testdebugallocator_fail3
FullName:  ./dune/common/test/testdebugallocator_fail3
Status:    FAILED

======================================================================
Name:      testdebugallocator_fail4
FullName:  ./dune/common/test/testdebugallocator_fail4
Status:    FAILED

======================================================================
Name:      testdebugallocator_fail5
FullName:  ./dune/common/test/testdebugallocator_fail5
Status:    FAILED

JUnit report for CTest results written to /<<PKGBUILDDIR>>/build/junit/cmake.xml
make[1]: *** [debian/dune-debian.mk:39: override_dh_auto_test] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:18: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the debian-science-maintainers mailing list