Package: fio Version: 1.33.1-1 Severity: important User: debian-...@superh.org Tags: patch Usertags: sh4 X-Debbugs-CC: debian-sup...@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 fio FTBFS on sh4. Because fio supports SuperH, but information is not enough in header file (arch/arch.h). ----- # Add here commands to compile the package. /usr/bin/make make[1]: Entering directory `/build/buildd-fio_1.33.1-1-sh4-NFt0ru/fio-1.33.1' CC gettime.o In file included from fio.h:22, from gettime.c:8: arch/arch.h:37:2: error: #error "Unsupported arch" make[1]: *** [gettime.o] Error 1 ----- I created patch which revised this problem. Could you check and apply this patch? Best regards, Nobuhiro -- Nobuhiro Iwamatsu iwamatsu at {nigauri.org / debian.org} GPG ID: 40AD1FA6
diff -urN fio-1.33.1/arch/arch-sh.h fio-1.33.1.sh4/arch/arch-sh.h --- fio-1.33.1/arch/arch-sh.h 2009-12-21 10:48:12.000000000 +0900 +++ fio-1.33.1.sh4/arch/arch-sh.h 2009-12-21 10:35:56.000000000 +0900 @@ -25,5 +25,3 @@ #define write_barrier() __asm__ __volatile__ (" " : : : "memory") #endif - -#endif diff -urN fio-1.33.1/arch/arch.h fio-1.33.1.sh4/arch/arch.h --- fio-1.33.1/arch/arch.h 2009-09-10 17:30:19.000000000 +0900 +++ fio-1.33.1.sh4/arch/arch.h 2009-12-21 10:35:25.000000000 +0900 @@ -33,6 +33,8 @@ #include "arch-arm.h" #elif defined(__mips__) || defined(__mips64__) #include "arch-mips.h" +#elif defined(__sh__) +#include "arch-sh.h" #else #error "Unsupported arch" #endif