Bug#877065: alglib FTBFS on i386 with gcc 7

Adrian Bunk bunk at debian.org
Thu Sep 28 10:12:46 UTC 2017


Source: alglib
Version: 3.11.0-1
Severity: serious
Tags: patch

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/i386/alglib.html

...
   dh_auto_test
	cd obj-i686-linux-gnu && make -j18 test ARGS\+=-j18
make[1]: Entering directory '/build/1st/alglib-3.11.0/obj-i686-linux-gnu'
Running tests...
/usr/bin/ctest --force-new-ctest-process -j18
Test project /build/1st/alglib-3.11.0/obj-i686-linux-gnu
    Start 1: test_c
    Start 2: test_i
1/2 Test #2: test_i ...........................   Passed    0.82 sec
2/2 Test #1: test_c ...........................***Failed  176.26 sec
SEED: 1506088789
COMPILER: GCC
HARDWARE: 32-bit
HARDWARE: little-endian
CPU:   unknown
CORES: 1 (serial version)
LIBS:  
CPUID: 
OS: unknown
TESTING MODE: single core
tsort                            OK
nearestneighbor                  OK
hqrnd                            OK
odesolver                        OK
sparse                           OK
reflections                      OK
creflections                     OK
matgen                           OK
ablas                            OK
trfac                            OK
trlinsolve                       OK
safesolve                        OK
rcond                            OK
matinv                           OK
hblas                            OK
sblas                            OK
ortfac                           OK
fbls                             OK
cqmodels                         OK
bdsvd                            OK
blas                             OK
svd                              OK
optserv                          OK
snnls                            OK
sactivesets                      OK
linmin                           OK
minlbfgs                         OK
xblas                            OK
densesolver                      OK
normestimator                    OK
linlsqr                          FAILED
mincg                            OK
minbleic                         OK
minqp                            OK
minnlc                           OK
minbc                            OK
minns                            OK
evd                              OK
basestat                         OK
pca                              OK
bdss                             OK
mlpbase                          OK
lda                              OK
gammafunc                        OK
linreg                           OK
filters                          OK
mcpd                             OK
mlpe                             OK
mlptrain                         OK
clustering                       OK
dforest                          OK
gq                               OK
gkq                              OK
autogk                           OK
fft                              OK
fht                              OK
conv                             OK
corr                             OK
idwint                           OK
ratint                           OK
spline1d                         OK
parametric                       OK
spline3d                         OK
polint                           OK
lsfit                            OK
nsfit                            OK
spline2d                         OK
rbf                              OK
hermite                          OK
laguerre                         OK
legendre                         OK
chebyshev                        OK
wsr                              OK
stest                            OK
studentttests                    OK
mannwhitneyu                     OK
schur                            OK
spdgevd                          OK
inverseupdate                    OK
polynomialsolver                 OK
nleq                             OK
lincg                            OK
alglibbasics                     OK
Done in 176 seconds


50% tests passed, 1 tests failed out of 2

Total Test time (real) = 176.26 sec

The following tests FAILED:
	  1 - test_c (Failed)
Errors while running CTest
Makefile:121: recipe for target 'test' failed
make[1]: *** [test] Error 8


If the exact result is required here, the following fixes it:

--- debian/rules.old	2017-09-28 10:00:01.000000000 +0000
+++ debian/rules	2017-09-28 10:00:34.000000000 +0000
@@ -2,6 +2,13 @@
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+ 
+ifneq (,$(findstring $(DEB_HOST_ARCH), i386))
+    export DEB_CFLAGS_MAINT_APPEND = -ffloat-store
+    export DEB_CXXFLAGS_MAINT_APPEND = -ffloat-store
+endif
+
 %:
 	dh $@
 



More information about the debian-science-maintainers mailing list