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

Bug#565289: mpich2: Please support Renesas SH(sh4)



Source: mpich2
Version: 1.2.1-2
Severity: wishlist
Tags: patch
User: debian-sh4@superh.org
Usertags: sh4
X-Debbugs-CC: debian-superh@lists.debian.org

Hi,

I am now trying to run Debian on Renesas SH(sh4) CPU.
http://buildd.debian-ports.org/status/architecture.php?suite=unstable&a=sh4

mpich2 FTBFS on SH4.
Because OPA isn't available on sh4.

http://buildd.debian-ports.org/fetch.php?pkg=mpich2&arch=sh4&ver=1.2.1-2&stamp=1260957863&file=log&as=raw

-----
checking for mkstemp... yes
checking for rand... yes
checking for srand... yes
checking for OpenPA atomic primitive availability... no
configure: error:
The nemesis channel was selected yet no native atomic primitives are
available on this platform.  OpenPA can emulate atomic primitives using
locks by specifying --with-atomic-primitives=no but performance will be
very poor.  This override should only be specified for correctness
testing purposes.
configure: error: ./configure failed for channels/nemesis
configure: error: Configure of src/mpid/ch3 failed!
make: *** [config.status] Error 1
-----
Therefore, sh4 needs "--with-atomic-primitives=no" option for confiugre.
I made patch to debian/rules. Could you apply this patch?

Best regards,
 Nobuhiro

-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
--- debian/rules.orig	2010-01-15 00:13:56.000000000 +0900
+++ debian/rules	2010-01-15 00:14:50.000000000 +0900
@@ -17,9 +17,9 @@
 	--includedir=/usr/include/mpich2 \
 	--docdir=/usr/share/doc/mpich2
 
-# On sparc, OPA isn't available, so we need to fallback to
+# On sparc and sh4, OPA isn't available, so we need to fallback to
 # emulation mode. There's a performance penalty, unfortunately.
-ifeq ($(DEB_HOST_GNU_CPU),sparc)
+ifneq (,$(findstring $(DEB_HOST_GNU_CPU),sparc sh4))
 	        DEB_CONFIGURE_EXTRA_FLAGS += --with-atomic-primitives=no
 endif
 

Reply to: