#1015410 fuzzylite: ftbfs with LTO (link time optimization) enabled

#1015410#5
Date:
2022-07-19 16:52:18 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/fuzzylite_6.0+dfsg-3_unstable_dpkglto.log
The last lines of the build log are at the end of this report.

[...]
fuzzylite 6.0	tsukamoto/tsukamoto	1	4	1	3	1	1023	Ramps,Sigmoids,ZSShapes,Concaves	0.995	1e-06	0	0	0	0.000000e+00	0.000000e+00	nanoseconds	1323644	1323644.000	0.000	1323644

 (83):Checking for errors in: mamdani/AllTerms

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fuzzylite-tests is a Catch v1.8.1 host application.
Run with -? for options
-------------------------------------------------------------------------------
Benchmarks from FLD files
-------------------------------------------------------------------------------
./fuzzylite/test/BenchmarkTest.cpp:32
...............................................................................

./fuzzylite/test/BenchmarkTest.cpp:84: FAILED:
  CHECK( errors.at(i) == 0 )
with expansion:
  1023 (0x3ff) == 0

 (83):Checking for errors in: mamdani/SimpleDimmer
./fuzzylite/test/BenchmarkTest.cpp:84: FAILED:
  CHECK( errors.at(i) == 0 )
with expansion:
  512 (0x200) == 0

 (83):Checking for errors in: mamdani/octave/investment_portfolio
 (83):Checking for errors in: mamdani/octave/mamdani_tip_calculator
./fuzzylite/test/BenchmarkTest.cpp:84: FAILED:
  CHECK( errors.at(i) == 0 )
with expansion:
  1400 (0x578) == 0

 (83):Checking for errors in: takagi-sugeno/approximation
 (83):Checking for errors in: takagi-sugeno/SimpleDimmer
 (83):Checking for errors in: takagi-sugeno/octave/cubic_approximator
 (83):Checking for errors in: takagi-sugeno/octave/heart_disease_risk
 (83):Checking for errors in: takagi-sugeno/octave/linear_tip_calculator
 (83):Checking for errors in: takagi-sugeno/octave/sugeno_tip_calculator
./fuzzylite/test/BenchmarkTest.cpp:84: FAILED:
  CHECK( errors.at(i) == 0 )
with expansion:
  1716 (0x6b4) == 0

 (83):Checking for errors in: tsukamoto/tsukamoto
 (90):1
 (92):3600
 (95):1000
 (97):1
 (114):library	name	inputs	outputs	ruleBlocks	rules	runs	evaluations	outputVariable	range	tolerance	errors	nfErrors	accErrors	rmse	nrmse	units	sum(t)	mean(t)	sd(t)	t1	t2	t3	t4	t5	t6	t7	t8	t9	t10
 (117):library	name	inputs	outputs	ruleBlocks	rules	runs	evaluations	units	sum(t)	mean(t)	sd(t)	t1	t2	t3	t4	t5	t6	t7	t8	t9	t10
===============================================================================
test cases:  36 |  35 passed | 1 failed
assertions: 450 | 446 passed | 4 failed



0% tests passed, 1 tests failed out of 1

Total Test time (real) =   1.61 sec

The following tests FAILED:
	  1 - RunTests (Failed)
Errors while running CTest
make[2]: *** [Makefile:74: test] Error 8
make[2]: Leaving directory '/<<PKGBUILDDIR>>/fuzzylite/obj-x86_64-linux-gnu'
dh_auto_test: error: cd fuzzylite/obj-x86_64-linux-gnu && make -j8 test ARGS\+=--verbose ARGS\+=-j8 returned exit code 2
make[1]: *** [debian/rules:20: override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:14: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

#1015410#8
Date:
2022-07-19 17:26:52 UTC
From:
To:
Hi,

Quoting Matthias Klose (2022-07-19 18:52:18)

I don't understand. Why did you test with 6.0+dfsg-3? There is 6.0+dfsg-4 in
unstable as well as in testing which should work with LTO. Can you test the
correct version?

Thanks!

cheers, josch