This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: The 4.1.2 gcc can not compile the linux kernel 2.6.11


Parmenides <mobile.parmenides@gmail.com> writes:

>     My Linux box is running the kernel 2.6.34, gcc 4.1.2 and ld 2.17.
> For some purpose, I want to compile the Linux kernel 2.6.11, but fail
> to do that. It is said that the version of gcc is too high to compile
> an older kernel source. I wonder whether or not the gcc is backward
> compitable with its older version. Or, is there any way to adjust the
> current gcc to compile a specific kernel source?

gcc 4.1.2 is fairly old.  Are you sure your version of gcc is too new,
and not too old?

gcc is normally backward compatible for standard programs, but it is not
always backward compatible for programs which use gcc extensions.  Like
the Linux kernel.  You will have to ask the kernel developers which
versions of gcc can compile the kernel version you care about.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]