Bug#531584: cppunit: Patch for Renesas SuperH (SH4)
Package: cppunit
Severity: wishlist
Tags: patch
X-Debbugs-CC: debian-superh@lists.debian.org
Hi,
I am porting of Renesas SH in Debian.
The current cppunit package doen't support SH and can not build.
----
<snip>
TestCallerTest::testPointerConstructor : OK
TestAssertTest.cpp:204:Assertion
Test name: TestAssertTest::testAssertDoubleNonFinite
assertion failed
- Expression: CPPUNIT_NS::floatingPointIsUnordered( nan )
Failures !!!
Run: 222 Failure total: 1 Failures: 1 Errors: 0
FAIL: cppunittestmain
<snip>
----
But SuperH can evade this problem by attaching -mieee option.
I made a patch to revise to be able to build.
Would you apply it?
Best regards,
Nobuhiro
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.29-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
--
Nobuhiro Iwamatsu
GPG ID: 3170EBE9
--- a/debian/rules 2009-06-02 14:09:19.000000000 +0000
+++ b/debian/rules 2009-06-02 14:08:54.000000000 +0000
@@ -15,6 +15,8 @@
CXXFLAGS += -O0
else ifeq (alpha,$(DEB_HOST_ARCH))
CXXFLAGS += -O0
+ else ifeq (sh,$(DEB_HOST_ARCH))
+ CXXFLAGS += -O2 -mieee
else
CXXFLAGS += -O2
endif
Reply to: