[Debian-med-packaging] Bug#892459: simpleitk FTBFS on i386:

Adrian Bunk bunk at debian.org
Fri Mar 9 08:59:56 UTC 2018


Source: simpleitk
Version: 1.0.1-1
Severity: important
Tags: patch

https://buildd.debian.org/status/fetch.php?pkg=simpleitk&arch=i386&ver=1.0.1-1&stamp=1520381876&raw=0

...
ImageCompare: image Root Mean Square (RMS) difference was 0.513965 which exceeds the tolerance of 0.5
...
99% tests passed, 1 tests failed out of 944

Total Test time (real) = 317.34 sec

The following tests FAILED:
	192 - BasicFilters.DiscreteGaussianImageFilter (Failed)
Errors while running CTest
Makefile:142: recipe for target 'test' failed
make[2]: *** [test] Error 8


If this difference caused by the x87 excess precision is an actual
problem, then the following fixes it (at some performance cost):

--- debian/rules.old	2018-03-08 21:48:48.665663810 +0000
+++ debian/rules	2018-03-09 08:27:40.121298252 +0000
@@ -1,8 +1,14 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/architecture.mk
+
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+ifneq (,$(filter $(DEB_HOST_ARCH), i386))
+export DEB_CXXFLAGS_MAINT_APPEND=-ffloat-store
+endif
+
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
 BUILDDIR=$(CURDIR)/SimpleITK-build



More information about the Debian-med-packaging mailing list