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

Bug#531378: guile-1.8: Please support Renesas SuperH architecture



Package: guile-1.8
Version: 1.8.6+1-1
Severity: wishlist
Tags: patch
X-Debbugs-CC: debian-superh@lists.debian.org

Hi,

I am porting of Renesas SH in Debian.
The current guile package doen't support SH and can not build.
Because SuperH is to become the error by test of test-conversion.

----
make[5]: Entering directory
`/home/iwamatsu/build-area/guile-1.8-1.8.6+1/test-suite/standalone'
PASS: test-system-cmds
PASS: test-require-extension
PASS: test-bad-identifiers
PASS: test-num2integral
PASS: test-round
PASS: test-gh
PASS: test-asmobs
PASS: test-list
PASS: test-unwind
fail: scm_from_double (1) == +nan.0
FAIL: test-conversion
PASS: test-use-srfi
PASS: test-scm-c-read
==================================
1 of 12 tests failed
Please report to bug-guile@gnu.org
==================================
----

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

Versions of packages guile-1.8 depends on:
ii  guile-1.8-libs            1.8.6+1-1      Main Guile libraries
ii  libc6                     2.9-6          GNU C Library: Shared libraries
ii  libgmp3c2                 2:4.2.4+dfsg-8 Multiprecision arithmetic library
ii  libltdl7                  2.2.6a-4       A system independent dlopen wrappe

guile-1.8 recommends no packages.

Versions of packages guile-1.8 suggests:
pn  guile-1.8-doc                 <none>     (no description available)

-- no debconf information


-- 
Nobuhiro Iwamatsu
--- a/debian/rules	2009-05-28 07:08:45.000000000 +0000
+++ b/debian/rules	2009-05-28 07:08:35.000000000 +0000
@@ -68,6 +68,10 @@
 ifeq (alpha,$(shell dpkg-architecture -qDEB_HOST_ARCH))
   # The -O2 option breaks make check on alpha right now.
   deb_cflags := -Os -g
+else ifeq (sh4,$(shell dpkg-architecture -qDEB_HOST_ARCH))
+  # Renesas SH(sh4) need -mieee option.
+  # If this option is not effective, test-conversion test failed.
+  deb_cflags := -O2 -g -mieee
 else
   deb_cflags := -O2 -g
 endif

Reply to: