Bug#595896: atlas: Please support Renesas sh4

Nobuhiro Iwamatsu iwamatsu at nigauri.org
Tue Sep 7 02:32:14 UTC 2010


Source: atlas
Version: 3.8.3-27
Severity: wishlist
Tags: patch
User: debian-sh4 at superh.org
Usertags: sh4
X-Debbugs-CC: debian-superh at 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

atlas FTBFS on SH4.
Because  atlas does not support Renesas sh4.

-----
Clock rate configured as 0Mhz
cmnd=make IRun_arch args="-v 2  -O 1 -s 0 -t" | fgrep 'CPU THROTTLE='
Cannot detect CPU throttling.
/bin/sh: line 1: 16026 Aborted                 ./xconfig -d s
/home/iwamatsu/build-area/atlas/atlas-3.
8.3/build/atlas-base/../../ -d b
/home/iwamatsu/build-area/atlas/atlas-3.8.3/build/atlas-base -D c -DW
ALL -b 32 -Fa alg '-Wa,--noexecstack -fPIC' -Ss f77lib
'-L/usr/lib/gcc/sh4-linux-gnu/4.4.5/ -lgfortran
 -lgcc_s -lpthread' -Ss pmake '/usr/bin/make -j 1' -Ss flapack
/usr/lib/liblapack_pic.a -A 0 -V 1 -t 2
 -v 2 -Si cputhrchk 0
xconfig exited with 134
make: *** [configure-stamp] Error 134
-----

I made patch to support sh4. Could you apply this patch?


Best regards,
 Nobuhiro

-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
-------------- next part --------------
--- a/CONFIG//include/atlconf.h	2010-09-02 10:22:57.000000000 +0900
+++ b/CONFIG//include/atlconf.h	2010-09-02 10:24:30.000000000 +0900
@@ -75,8 +75,13 @@
 #define MachIsARMEL(mach_) \
   ( 0 )
 #endif
-
-
+#ifdef __sh__
+#define MachIsSH(mach_) \
+  ( __sh__ )
+#else
+#define MachIsSH(mach_) \
+  ( 0 )
+#endif
 
 static char *f2c_namestr[5] = {"UNKNOWN","Add_", "Add__", "NoChange", "UpCase"};
 static char *f2c_intstr[5] =
--- a/CONFIG//src/probe_comp.c	2010-09-02 10:24:48.000000000 +0900
+++ b/CONFIG//src/probe_comp.c	2010-09-02 10:25:29.000000000 +0900
@@ -521,6 +521,8 @@
    if (MachIsMIPS(arch))
 	return(sp);
 //      return((ptrbits == 64) ? "-mabi=64" : "-mabi=n32");
+   if (MachIsSH(arch))
+     return(sp);
    if (!CompIsGcc(comp))
    {
 /*
--- a/CONFIG//src/SpewMakeInc.c	2010-09-02 10:37:54.000000000 +0900
+++ b/CONFIG//src/SpewMakeInc.c	2010-09-02 10:38:14.000000000 +0900
@@ -351,6 +351,8 @@
    if (MachIsMIPS(arch))
 	return(sp);
 //      return((ptrbits == 64) ? "-mabi=64" : "-mabi=n32");
+   if (MachIsSH(arch))
+     return(sp);
    if (!CompIsGcc(comp))
    {
 /*
-------------- next part --------------
A non-text attachment was scrubbed...
Name: atlas_3.8.3-25+sh4_sh4.build.gz
Type: application/x-gzip
Size: 423568 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20100907/c4ad3921/attachment-0001.bin>


More information about the debian-science-maintainers mailing list