Bug#881453: primesieve FTBFS on i386: test failures
Adrian Bunk
bunk at debian.org
Sun Nov 12 00:22:06 UTC 2017
Source: primesieve
Version: 6.2+ds-1
Severity: serious
Tags: patch
https://buildd.debian.org/status/fetch.php?pkg=primesieve&arch=i386&ver=6.2%2Bds-1&stamp=1510442732&raw=0
...
dh_auto_test -a -O--builddirectory=_build
cd _build && make -j4 test ARGS\+=-j4
make[1]: Entering directory '/<<BUILDDIR>>/primesieve-6.2+ds/_build'
Running tests...
/usr/bin/ctest --force-new-ctest-process -j4
Test project /<<BUILDDIR>>/primesieve-6.2+ds/_build
Start 1: atomic
Start 2: count_primes1
Start 3: count_primes2
Start 4: count_primes3
1/24 Test #1: atomic ........................... Passed 0.28 sec
2/24 Test #2: count_primes1 .................... Passed 0.30 sec
Start 5: count_quadruplets
Start 6: count_quintuplets
3/24 Test #5: count_quadruplets ................ Passed 0.90 sec
4/24 Test #6: count_quintuplets ................ Passed 1.08 sec
Start 7: count_sextuplets
Start 8: count_triplets
5/24 Test #8: count_triplets ................... Passed 0.89 sec
6/24 Test #7: count_sextuplets ................. Passed 1.11 sec
Start 9: count_twins
Start 10: cpu_info
7/24 Test #10: cpu_info ......................... Passed 0.31 sec
Start 11: floorPow2
8/24 Test #11: floorPow2 ........................***Failed 0.21 sec
floorPow2(1) = 1 OK
floorPow2(2) = 2 OK
floorPow2(3) = 2 OK
floorPow2(4) = 4 OK
floorPow2(5) = 4 OK
floorPow2(6) = 4 OK
floorPow2(7) = 4 OK
floorPow2(8) = 8 ERROR
Start 12: generate_n_primes1
9/24 Test #9: count_twins ...................... Passed 0.94 sec
Start 13: generate_primes1
10/24 Test #13: generate_primes1 ................. Passed 0.30 sec
Start 14: ilog2
11/24 Test #14: ilog2 ............................***Failed 0.30 sec
ilog2(1) = 0 OK
ilog2(2) = 1 OK
ilog2(3) = 1 OK
ilog2(4) = 2 OK
ilog2(5) = 2 OK
ilog2(6) = 2 OK
ilog2(7) = 2 OK
ilog2(8) = 3 ERROR
Start 15: isqrt
12/24 Test #15: isqrt ............................ Passed 0.89 sec
Start 16: next_prime1
13/24 Test #16: next_prime1 ...................... Passed 3.21 sec
Start 17: nth_prime1
14/24 Test #17: nth_prime1 ....................... Passed 3.52 sec
Start 18: nth_prime2
15/24 Test #12: generate_n_primes1 ............... Passed 15.50 sec
Start 19: nth_prime3
16/24 Test #3: count_primes2 .................... Passed 22.85 sec
Start 20: prev_prime1
17/24 Test #18: nth_prime2 ....................... Passed 16.06 sec
Start 21: generate_n_primes2
18/24 Test #21: generate_n_primes2 ............... Passed 0.61 sec
Start 22: generate_primes2
19/24 Test #4: count_primes3 .................... Passed 29.38 sec
Start 23: next_prime2
20/24 Test #19: nth_prime3 ....................... Passed 23.31 sec
Start 24: prev_prime2
21/24 Test #20: prev_prime1 ...................... Passed 22.00 sec
22/24 Test #24: prev_prime2 ...................... Passed 3.24 sec
23/24 Test #22: generate_primes2 ................. Passed 19.13 sec
24/24 Test #23: next_prime2 ...................... Passed 21.86 sec
92% tests passed, 2 tests failed out of 24
Total Test time (real) = 51.51 sec
The following tests FAILED:
11 - floorPow2 (Failed)
14 - ilog2 (Failed)
Errors while running CTest
Makefile:121: recipe for target 'test' failed
make[1]: *** [test] Error 8
This can be fixed with:
--- debian/rules.old 2017-11-12 00:16:05.000000000 +0000
+++ debian/rules 2017-11-12 00:17:52.000000000 +0000
@@ -17,6 +17,11 @@
CXXFLAGS := $(subst -O2,-O3,$(CXXFLAGS))
endif
+ifeq ($(DEB_HOST_ARCH),i386)
+ CFLAGS += -ffloat-store
+ CXXFLAGS += -ffloat-store
+endif
+
default:
@uscan --no-conf --dehs --report || true
More information about the debian-science-maintainers
mailing list