LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-12-2014, 10:40 PM   #1
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,924

Rep: Reputation: 4542Reputation: 4542Reputation: 4542Reputation: 4542Reputation: 4542Reputation: 4542Reputation: 4542Reputation: 4542Reputation: 4542Reputation: 4542Reputation: 4542
How to fix GCC 4.7 Kernel Compile Errors?


Greetings
I spent over an hour on google and searching this forum, so hopefully if I'm duplicating at least I showed due diligence.

It is my understanding that certain kernels have failed to compile with gcc 4.7, with the most common error being

Code:
/usr/src/linux/arch/x86/include/asm/ptrace.h
note: previous declaration of syscall_trace_leave was here
note: this is a 2.6.31.6 kernel

and now I'm getting it on one of my older boxes. Can anyone tell me the proper fix? or put me on the right path?

Last edited by enorbet; 01-12-2014 at 10:41 PM. Reason: spelling
 
Old 01-13-2014, 12:50 AM   #2
dhabyx
LQ Newbie
 
Registered: Aug 2012
Distribution: Slackware
Posts: 17

Rep: Reputation: Disabled
Reading about this problem, I found this link http://lkml.org/lkml/2012/8/9/281 and the patch is in it.

You can copy and apply the patch to kernel source.
 
1 members found this post helpful.
Old 01-13-2014, 02:09 AM   #3
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,924

Original Poster
Rep: Reputation: 4542Reputation: 4542Reputation: 4542Reputation: 4542Reputation: 4542Reputation: 4542Reputation: 4542Reputation: 4542Reputation: 4542Reputation: 4542Reputation: 4542
Thank you very much. I did see several posts from that website regarding this error but I never spotted the final patch. That should do nicely

Edit: Superb. That patch worked a treat. Thanks again

Last edited by enorbet; 01-13-2014 at 02:49 AM.
 
  


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
gcc compile errors pepsimachine15 Programming 1 04-16-2009 10:36 PM
Compile 2.2.26 Kernel with GCC 2.95.3: Errors bapigoo9 Programming 4 12-17-2008 10:47 PM
kernel compile errors with gcc 3.4.2 MarleyGPN Linux - Software 0 09-29-2004 07:03 PM
gcc-3.3.1 compile errors RTT Linux From Scratch 1 02-28-2004 06:53 PM
gcc errors: What are they and how to fix sleepwalker1.0 Programming 8 01-06-2003 01:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:10 AM.

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