problems compiling 3.2.65
Posted: Wed Dec 24, 2014 8:43 pm
Hi;
I'm having a problem compiling the 3.2.65 kernel after I apply the grsecurity patch. It works prior but not post.
I'm using the 3.2.65 kernel from kernel.org
I'm using the patch
grsecurity-3.0-3.2.65-201412211905.patch
Applying the patch invokes 2 errors
=================================================================================
2 out of 51 hunks FAILED -- saving rejects to file arch/x86/kernel/entry_64.S.rej
can't find file to patch at input line 20674
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/arch/x86/kernel/espfix_64.c b/arch/x86/kernel/espfix_64.c
|index 94d857f..5bce89c 100644
|--- a/arch/x86/kernel/espfix_64.c
|+++ b/arch/x86/kernel/espfix_64.c
--------------------------
File to patch:
==========================================================================
Hunk #1 succeeded at 131 (offset -1 lines).
Hunk #2 succeeded at 141 (offset -1 lines).
can't find file to patch at input line 31993
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/arch/x86/tools/relocs.c b/arch/x86/tools/relocs.c
|index e529730..8d08690 100644
|--- a/arch/x86/tools/relocs.c
|+++ b/arch/x86/tools/relocs.c
--------------------------
File to patch:
======================================================================
Here is the errors I get compiling
# fakeroot make -j8 deb-pkg
make KBUILD_SRC=
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CC arch/x86/kernel/asm-offsets.s
In file included from /root/first.linux-3.2.6/arch/x86/include/asm/suspend_64.h:10:0,
from /root/first.linux-3.2.6/arch/x86/include/asm/suspend.h:4,
from arch/x86/kernel/asm-offsets.c:18:
/root/first.linux-3.2.6/arch/x86/include/asm/i387.h: In function ‘kernel_fpu_begin’:
/root/first.linux-3.2.6/arch/x86/include/asm/i387.h:326:21: error: ‘struct thread_info’ has no member named ‘task’
make[3]: *** [arch/x86/kernel/asm-offsets.s] Error 1
make[2]: *** [prepare0] Error 2
make[1]: *** [deb-pkg] Error 2
make: *** [deb-pkg] Error 2
Thanks for any help
I'm having a problem compiling the 3.2.65 kernel after I apply the grsecurity patch. It works prior but not post.
I'm using the 3.2.65 kernel from kernel.org
I'm using the patch
grsecurity-3.0-3.2.65-201412211905.patch
Applying the patch invokes 2 errors
=================================================================================
2 out of 51 hunks FAILED -- saving rejects to file arch/x86/kernel/entry_64.S.rej
can't find file to patch at input line 20674
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/arch/x86/kernel/espfix_64.c b/arch/x86/kernel/espfix_64.c
|index 94d857f..5bce89c 100644
|--- a/arch/x86/kernel/espfix_64.c
|+++ b/arch/x86/kernel/espfix_64.c
--------------------------
File to patch:
==========================================================================
Hunk #1 succeeded at 131 (offset -1 lines).
Hunk #2 succeeded at 141 (offset -1 lines).
can't find file to patch at input line 31993
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/arch/x86/tools/relocs.c b/arch/x86/tools/relocs.c
|index e529730..8d08690 100644
|--- a/arch/x86/tools/relocs.c
|+++ b/arch/x86/tools/relocs.c
--------------------------
File to patch:
======================================================================
Here is the errors I get compiling
# fakeroot make -j8 deb-pkg
make KBUILD_SRC=
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CC arch/x86/kernel/asm-offsets.s
In file included from /root/first.linux-3.2.6/arch/x86/include/asm/suspend_64.h:10:0,
from /root/first.linux-3.2.6/arch/x86/include/asm/suspend.h:4,
from arch/x86/kernel/asm-offsets.c:18:
/root/first.linux-3.2.6/arch/x86/include/asm/i387.h: In function ‘kernel_fpu_begin’:
/root/first.linux-3.2.6/arch/x86/include/asm/i387.h:326:21: error: ‘struct thread_info’ has no member named ‘task’
make[3]: *** [arch/x86/kernel/asm-offsets.s] Error 1
make[2]: *** [prepare0] Error 2
make[1]: *** [deb-pkg] Error 2
make: *** [deb-pkg] Error 2
Thanks for any help