Bug#394055: linux-kernel-headers: build fix on m32r
Package: linux-kernel-headers
Version: 2.6.18-3
Severity: wishlist
Tags: patch
Hello,
I cannot build linux-kernel-headers_2.6.18-3 package for m32r.
---
cc -Wall -Werror -W -I /build/buildd/linux-kernel-headers-2.6.18/testsuite/../debian/linux-kernel-headers/usr/include -I /build/buildd/linux-kernel-headers-2.6.18/testsuite/../include -o wait.o -c wait.c
In file included from /usr/lib/gcc/m32r-linux-gnu/4.1.2/../../../../m32r-linux-gnu/include/bits/sigcontext.h:28,
from /usr/lib/gcc/m32r-linux-gnu/4.1.2/../../../../m32r-linux-gnu/include/signal.h:333,
from /usr/lib/gcc/m32r-linux-gnu/4.1.2/../../../../m32r-linux-gnu/include/sys/wait.h:30,
from wait.c:1:
/build/buildd/linux-kernel-headers-2.6.18/testsuite/../debian/linux-kernel-headers/usr/include/asm/sigcontext.h:37:2: error: #error unknown isa configuration
make[1]: *** [wait.o] Error 1
make[1]: Leaving directory `/build/buildd/linux-kernel-headers-2.6.18/testsuite'
make: *** [lkh-test] Error 2
---
It seems that this compile error happens due to a lack of
linux/config.h inclusion at the top of asm-m32r/sigcontext.h.
Could you please consider to apply the following patch?
Thank you.
---
debian/patches/m32r-sigcontext.patch | 12 ++++++++++++
debian/patches/series | 1 +
2 files changed, 13 insertions(+)
diff -ruNp linux-kernel-headers-2.6.18.org/debian/patches/m32r-sigcontext.patch linux-kernel-headers-2.6.18/debian/patches/m32r-sigcontext.patch
--- linux-kernel-headers-2.6.18.org/debian/patches/m32r-sigcontext.patch 1970-01-01 09:00:00.000000000 +0900
+++ linux-kernel-headers-2.6.18/debian/patches/m32r-sigcontext.patch 2006-10-19 15:26:55.000000000 +0900
@@ -0,0 +1,12 @@
+--- include/asm-m32r/sigcontext.h.old 2006-10-19 05:37:14.000000000 +0000
++++ include/asm-m32r/sigcontext.h 2006-10-19 05:37:18.000000000 +0000
+@@ -1,8 +1,7 @@
+ #ifndef _ASM_M32R_SIGCONTEXT_H
+ #define _ASM_M32R_SIGCONTEXT_H
+
+-/* $Id$ */
+-
++#include <linux/config.h>
+
+ struct sigcontext {
+ /* CPU registers */
diff -ruNp linux-kernel-headers-2.6.18.org/debian/patches/series linux-kernel-headers-2.6.18/debian/patches/series
--- linux-kernel-headers-2.6.18.org/debian/patches/series 2006-10-19 15:26:10.000000000 +0900
+++ linux-kernel-headers-2.6.18/debian/patches/series 2006-10-19 15:26:55.000000000 +0900
@@ -36,3 +36,4 @@ asm-generic-bitops-fls64.patch
asm-generic-div64.patch
linux-ext2_fs.patch
linux-ixjuser.patch
+m32r-sigcontext.patch -p0
--
Hirokazu Takata <takata@linux-m32r.org>
Linux/M32R Project
Reply to: