[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#633818: libvigraimpex: FTBFS:sh4: Failure in ClassifierTest::RF_NanCheck()

Source: libvigraimpex
Version: 1.7.1+dfsg1-1
Severity: wishlist
Tags: patch
User: debian-sh4@superh.org
Usertags: sh4
X-Debbugs-CC: debian-superh@lists.debian.org


I am now trying to run Debian on Renesas SH(sh4) CPU.

libvigraimpex FTBFS on sh4.

Entering test suite ClassifierTestSuite

Failure in ClassifierTest::RF_NanCheck()
Assertion failed: detail::contains_nan(dfeatures) == true [0 != 1]

1 of 13 tests failed in test suite ClassifierTestSuite
Leaving test suite ClassifierTestSuite

make[5]: *** [test/classifier/test_classifier] Error 1
Because ftbfs by NaN check, -mieee option of gcc is necessary to build
libvigraimpex om sh4

I created a patch which revised this problem.
Could you apply this patch?

Note:  libvigraimpex is FTBFS by other problems even if you apply this patch.
Make which, and this patch is necessary.

Best regards,

Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
diff -ruN a/debian/rules b/debian/rules
--- a/debian/rules	2011-07-10 02:02:18.000000000 +0900
+++ b/debian/rules	2011-07-14 10:31:13.000000000 +0900
@@ -10,6 +10,12 @@
 unexport CXXFLAGS
 unexport LDFLAGS
+# sh4 needs -mieee option of gcc and g++
+ifeq ($(DEB_HOST_ARCH),sh4)
+CFLAGS += -mieee
+CXXFLAGS += -mieee
 space = $() $()
 here = $(dir $(firstword $(MAKEFILE_LIST)))/..
 current_version = $(shell cd $(here) && dpkg-parsechangelog | sed -n -r -e "/Version: (.*)/ { s//\1/p; q; }")

Reply to: