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

Bug#622713: jackd2: Please support Renesas sh4

Source: jackd2
Version: 1.9.7~dfsg-1
Severity: wishlist
Tags: patch
User: debian-sh4@superh.org
Usertags: sh4
X-Debbugs-CC: debian-superh@lists.debian.org, takaki@debian.org


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

clam FTBFS on SH4.

This is a package depending on jack2(libjack-jackd2-dev) as Build-depends.

Checking that libasound sample program runs... yes
Checking for jack pkg-config file... yes
Checking that jack sample program compiles...yes
Checking that jack sample program links...yes
jack_client_new: deprecated
FATAL: cannot locate cpu MHz in /proc/cpuinfo

Checking that jack sample program runs... no
jack compile/link/run test failed!
Check the config.log file for details
Either install jack or disable jack support by issuing
$scons with_jack=no
make[1]: *** [override_dh_auto_clean] Error 1
make[1]: Leaving directory `/build/buildd-clam_1.4.0-2-sh4-MFqHte/clam-1.4.0'
make: *** [clean] Error 2

/proc/cpuifno is output as follows in sh4.
$ cat /proc/cpuinfo
machine         : SH7785LCR
processor       : 0
cpu family      : sh4a
cpu type        : SH7785
cut             : 7.x
cpu flags       : fpu perfctr llsc
cache type      : split (harvard)
icache size     : 32KiB (4-way)
dcache size     : 32KiB (4-way)
bogomips        : 599.99


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

Best regards,
diff --git a/linux/JackLinuxTime.c b/linux/JackLinuxTime.c
index 93f7f03..c80eb17 100644
--- a/linux/JackLinuxTime.c
+++ b/linux/JackLinuxTime.c
@@ -166,6 +166,8 @@ static jack_time_t jack_get_mhz (void)
 		ret = sscanf(buf, "Clocking:       %" SCNu64, &mhz);
 #elif defined( __s390__  )
 		ret = sscanf(buf, "bogomips per cpu: %" SCNu64, &mhz);
+#elif defined( __sh__  )
+		ret = sscanf(buf, "bogomips        : %" SCNu64, &mhz);
 #else /* MIPS, ARM, alpha */
 		ret = sscanf(buf, "BogoMIPS        : %" SCNu64, &mhz);

Reply to: