Bug#1015396: ensmallen: ftbfs with LTO (link time optimization) enabled
Matthias Klose
doko at debian.org
Tue Jul 19 17:51:49 BST 2022
Package: src:ensmallen
Version: 2.19.0-1
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/ensmallen_2.19.0-1_unstable_dpkglto.log
The last lines of the build log are at the end of this report.
[...]
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 1
Start 1: ensmallen_tests
1: Test command: /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/ensmallen_tests
1: Test timeout computed to be: 10000000
1: ensmallen version: 2.19.0 (Eight Ball Deluxe)
1: armadillo version: 10.8.2 (Realm Raider)
1:
1: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1: ensmallen_tests is a Catch v2.13.9 host application.
1: Run with -? for options
1:
1: -------------------------------------------------------------------------------
1: CNEHimmelblauFunctionTest
1: -------------------------------------------------------------------------------
1: ./tests/cne_test.cpp:94
1: ...............................................................................
1:
1: ./tests/cne_test.cpp:103: FAILED:
1: REQUIRE( coordinates(1) == Approx(2.0).margin(0.1) )
1: with expansion:
1: 1.8957075233 == Approx( 2.0 )
1:
1: ===============================================================================
1: test cases: 313 | 312 passed | 1 failed
1: assertions: 12572 | 12571 passed | 1 failed
1:
1/1 Test #1: ensmallen_tests ..................***Failed 204.11 sec
ensmallen version: 2.19.0 (Eight Ball Deluxe)
armadillo version: 10.8.2 (Realm Raider)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ensmallen_tests is a Catch v2.13.9 host application.
Run with -? for options
-------------------------------------------------------------------------------
CNEHimmelblauFunctionTest
-------------------------------------------------------------------------------
./tests/cne_test.cpp:94
...............................................................................
./tests/cne_test.cpp:103: FAILED:
REQUIRE( coordinates(1) == Approx(2.0).margin(0.1) )
with expansion:
1.8957075233 == Approx( 2.0 )
===============================================================================
test cases: 313 | 312 passed | 1 failed
assertions: 12572 | 12571 passed | 1 failed
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 204.11 sec
The following tests FAILED:
1 - ensmallen_tests (Failed)
Errors while running CTest
make[2]: *** [Makefile:74: test] Error 8
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_test: error: cd obj-x86_64-linux-gnu && make -j8 test ARGS\+=--verbose ARGS\+=-j8 returned exit code 2
failure
make[1]: *** [debian/rules:25: override_dh_auto_test] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
More information about the debian-science-maintainers
mailing list