Debian Bug report logs - #1015396
ensmallen: ftbfs with LTO (link time optimization) enabled

version graph

Package: src:ensmallen; Maintainer for src:ensmallen is Debian Science Maintainers <[email protected]>;

Reported by: Matthias Klose <[email protected]>

Date: Tue, 19 Jul 2022 16:55:59 UTC

Severity: minor

Tags: bookworm, sid, trixie

Found in version ensmallen/2.19.0-1

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to Debian Science Maintainers <[email protected]>:
Bug#1015396; Package src:ensmallen. (Tue, 19 Jul 2022 16:56:01 GMT) (full text, mbox, link).


Acknowledgement sent to Matthias Klose <[email protected]>:
New Bug report received and forwarded. Copy sent to Debian Science Maintainers <[email protected]>. (Tue, 19 Jul 2022 16:56:01 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Matthias Klose <[email protected]>
To: [email protected]
Subject: ensmallen: ftbfs with LTO (link time optimization) enabled
Date: Tue, 19 Jul 2022 16:51:49 +0000
Package: src:ensmallen
Version: 2.19.0-1
Severity: minor
Tags: sid bookworm
User: [email protected]
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



Added tag(s) trixie. Request was from Sebastian Ramacher <[email protected]> to [email protected]. (Sun, 11 Jun 2023 15:47:44 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 16:31:40 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.