LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Compile 2.2.26 Kernel with GCC 2.95.3: Errors (http://www.linuxquestions.org/questions/programming-9/compile-2-2-26-kernel-with-gcc-2-95-3-errors-688414/)

bapigoo9 12-04-2008 09:16 PM

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.

xhypno 12-05-2008 10:24 PM

Quote:

Originally Posted by bapigoo9 (Post 3364955)
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.

bapigoo9 12-07-2008 02:15 AM

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?

xhypno 12-07-2008 10:14 AM

Quote:

Originally Posted by bapigoo9 (Post 3366890)
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?

bapigoo9 12-17-2008 11:47 PM

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.


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