LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 03-26-2016, 09:57 PM   #1
Gremerun
LQ Newbie
 
Registered: Mar 2016
Posts: 1

Rep: Reputation: Disabled
Errors when compiling kernel with grsecurity


I am trying to compile a kernel with the grsecurity patch. When I run the actual patch command (patch -p1 < ../grsecurity-3.1-4.4.6-201603221748.patch) I get an output that looks like this, this is only a small bit of it:

Code:
13 out of 13 hunks ignored -- saving rejects to file arch/x86/kernel/process.c.rej
patching file arch/x86/kernel/process_32.c
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
7 out of 7 hunks ignored -- saving rejects to file arch/x86/kernel/process_32.c.rej
patching file arch/x86/kernel/process_64.c
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
5 out of 5 hunks ignored -- saving rejects to file arch/x86/kernel/process_64.c.rej
patching file arch/x86/kernel/ptrace.c
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
9 out of 9 hunks ignored -- saving rejects to file arch/x86/kernel/ptrace.c.rej
patching file arch/x86/kernel/pvclock.c
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file arch/x86/kernel/pvclock.c.rej
patching file arch/x86/kernel/reboot.c
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
I mostly clicked the default on that because of the amount there was, when I compiled with (fakeroot make deb-pkg) I got these errors:

Code:
cc1: some warnings being treated as errors
Kbuild:80: recipe for target 'arch/x86/kernel/asm-offsets.s' failed
make[3]: *** [arch/x86/kernel/asm-offsets.s] Error 1
Makefile:1001: recipe for target 'prepare0' failed
make[2]: *** [prepare0] Error 2
scripts/package/Makefile:91: recipe for target 'deb-pkg' failed
make[1]: *** [deb-pkg] Error 2
Makefile:1253: recipe for target 'deb-pkg' failed
make: *** [deb-pkg] Error 2

I feel like the problem is applying the patch, I'm not sure what the output means but I think it is saying that the patch has already been applied. But how can this be? I downloaded it from kernel.org and applied it straight away.

Thank you for any help.
 
Old 03-28-2016, 06:56 AM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 3,137

Rep: Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855
The filea you are trying to patch have had the patch applied, probably upstream or due to a previous patch, check you actually need to apply this patch on this version of the siftware
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling kernel module errors with kernel 2.6.32-279 jleaming Programming 11 03-25-2013 05:45 PM
Compiling error with grsecurity Fill Linux - Kernel 3 08-09-2011 07:30 AM
errors while compiling kernel Drone4four Slackware 19 07-09-2006 03:18 AM
Errors Compiling Kernel 2.6 on Slackware 10.2 - Old kernel headers required? Dave S. Slackware 8 03-04-2006 12:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration