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

Bug#588986: psmisc: FTBFS: peekfd.c:69:2: error: #error only little endian supported



Source: psmisc
Version: 22.12-1
Severity: important
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

psmisc FTBFS on SH4.
When peekfd is checked, configure checks structure (struct pt_regs) of asm/ptrace.h. 
However, because sh4 has variable (regs) of the same name as mips, it is treated as mips. 

http://buildd.debian-ports.org/fetch.php?pkg=psmisc&arch=sh4&ver=22.12-1&stamp=1279023993&file=log&as=raw
-----
gcc -Wall -DLOCALEDIR=\"/usr/share/locale\"     -DMIPS -g -O2   -o pstree pstree.o -lncurses  
gcc -DHAVE_CONFIG_H -I. -I..    -Wall -DLOCALEDIR=\"/usr/share/locale\"     -DMIPS -g -O2 -c prtstat.c
gcc -Wall -DLOCALEDIR=\"/usr/share/locale\"     -DMIPS -g -O2   -o prtstat prtstat.o  
gcc -DHAVE_CONFIG_H -I. -I..    -Wall -DLOCALEDIR=\"/usr/share/locale\"     -DMIPS -g -O2 -c peekfd.c
peekfd.c:69:2: error: #error only little endian supported
make[4]: *** [peekfd.o] Error 1
-----

I made the patch that added unique variable cp0_status of mips to the check. 
When this patch is applied, this problem can be avoided. 
Could you apply this patch?

Best regards,
 Nobuhiro

-- 
Nobuhiro Iwamatsu 
	GPG ID: 3170EBE9 / 40AD1FA6
diff -u psmisc-22.12/debian/changelog psmisc-22.12/debian/changelog
--- psmisc-22.12/debian/changelog
+++ psmisc-22.12/debian/changelog
@@ -1,3 +1,9 @@
+psmisc (22.12-1.1) unstable; urgency=low
+
+  * Update configure.ac 
+
+ -- Nobuhiro Iwamatsu <iwamatsu@debian.org>  Wed, 14 Jul 2010 12:01:29 +0900
+
 psmisc (22.12-1) unstable; urgency=low
 
   * New upstream release
only in patch2:
unchanged:
--- psmisc-22.12.orig/configure.ac
+++ psmisc-22.12/configure.ac
@@ -70,7 +70,8 @@
 AC_CHECK_MEMBERS([struct pt_regs.orig_gpr3,
 		struct pt_regs.gpr], [],[], [#include <linux/ptrace.h>])
 AC_CHECK_MEMBERS([struct pt_regs.uregs],[],[], [#include <asm/ptrace.h>])
-AC_CHECK_MEMBERS([struct pt_regs.regs],[],[], [#include <asm/ptrace.h>])
+AC_CHECK_MEMBERS([struct pt_regs.regs,
+                struct pt_regs.cp0_status],[],[], [#include <asm/ptrace.h>])
 
 AM_CONDITIONAL(WANT_PEEKFD_I386,
  test $ac_cv_member_struct_user_regs_struct_orig_eax = yes &&
@@ -90,7 +91,8 @@
 AM_CONDITIONAL(WANT_PEEKFD_ARM,
    test $ac_cv_member_struct_pt_regs_uregs = yes)
 AM_CONDITIONAL(WANT_PEEKFD_MIPS,
-   test $ac_cv_member_struct_pt_regs_regs = yes)
+   test $ac_cv_member_struct_pt_regs_regs = yes &&
+   test $ac_cv_member_struct_pt_regs_cp0_status = yes )
 
 dnl Check for language stuff
 AM_GNU_GETTEXT([external])

Reply to: