LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 12-04-2008, 09:16 PM   #1
bapigoo9
Member
 
Registered: Aug 2008
Posts: 107

Rep: Reputation: 16
Compile 2.2.26 Kernel with GCC 2.95.3: Errors


This is a post question about Compiling the Linux Kernel from Source.

What tool set can you use with a recent Linux distro to build the 2.2.XX kernels from source? I tried with the 2.2.26 kernel, with the default i386 arch settgins, using GCC 2.95.3 and got some errors. I had thought that this version of GCC was compatible to build the 2.2.XX kernels?

GCC 2.95.3
March 16, 2001 Release Date

In terms of the other required tools, I have all of them but later versions. The Errors were compile errors, and I do not think that it can be a bug in the source because it is from the released source tree from the Kernel Org. Any thoughts on what build environment works for these kernels for recent distros? I could load an old distro, but would prefer not to do that.
 
Old 12-05-2008, 10:24 PM   #2
xhypno
Member
 
Registered: Sep 2004
Posts: 62

Rep: Reputation: 16
Quote:
Originally Posted by bapigoo9 View Post
This is a post question about Compiling the Linux Kernel from Source.

What tool set can you use with a recent Linux distro to build the 2.2.XX kernels from source? I tried with the 2.2.26 kernel, with the default i386 arch settgins, using GCC 2.95.3 and got some errors. I had thought that this version of GCC was compatible to build the 2.2.XX kernels?

GCC 2.95.3
March 16, 2001 Release Date

In terms of the other required tools, I have all of them but later versions. The Errors were compile errors, and I do not think that it can be a bug in the source because it is from the released source tree from the Kernel Org. Any thoughts on what build environment works for these kernels for recent distros? I could load an old distro, but would prefer not to do that.
Try an older kernel source, after 2.2.18 they switched the tool chain set the kernel is built for. Why are you trying to build such and old kernel to start with.

2.2 is in a legacy state and gcc 2.95 is already archived and out of legacy state.
 
Old 12-07-2008, 02:15 AM   #3
bapigoo9
Member
 
Registered: Aug 2008
Posts: 107

Original Poster
Rep: Reputation: 16
Quote:
2.2.18 they switched the tool chain set the kernel is built for
What tool chain set and compiler will build the 2.2.26 kernel? Will the GCC 2.95.3 build it correctly?
 
Old 12-07-2008, 10:14 AM   #4
xhypno
Member
 
Registered: Sep 2004
Posts: 62

Rep: Reputation: 16
Quote:
Originally Posted by bapigoo9 View Post
What tool chain set and compiler will build the 2.2.26 kernel? Will the GCC 2.95.3 build it correctly?
libc 4 and gcc 3+ But why build such an old kernel?
 
Old 12-17-2008, 11:47 PM   #5
bapigoo9
Member
 
Registered: Aug 2008
Posts: 107

Original Poster
Rep: Reputation: 16
Quote:
gcc 3+
Thanks. Are you sure? Note that gcc 2.95.3 was used to build many of the kernels and newer gcc versions can break the kernel. Have you built the 2.2.26 or 2.2.XX kernels with that tool chain, so you are sure that it will work? I can try it when I have a chance to.
 
  


Reply

Tags
build, kernel


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
Nvu by gcc 4.0 .. compile errors! TokyoYank Linux - Software 0 11-01-2005 03:15 AM
kernel compile errors with gcc 3.4.2 MarleyGPN Linux - Software 0 09-29-2004 08:03 PM
gcc-3.3.1 compile errors RTT Linux From Scratch 1 02-28-2004 07:53 PM
gcc compile errors ? qwijibow Linux - Newbie 2 07-21-2003 08:20 AM
make and gcc compile errors sedandawk Linux - General 1 12-18-2002 03:56 AM


All times are GMT -5. The time now is 08:59 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration