On Thu, Sep 19, 2002 at 09:06:13AM -0700, Seth Arnold wrote: > On Thu, Sep 19, 2002 at 05:55:27PM +0530, Saji Kumar VR wrote: > > Is there anything to be taken care compiling 2.5 kernel in redhat 7.1 > > running 2.4.2 kernel? > > Saji, you need to make sure your compiler is up to date. I understand > that RedHat's 2.96 compiler can safely be used to compile kernels if you > install version 2.96-86 or higher. That's it. In some RedHats (it might not be an issue for this version - I don't use RedHat, so I just know it's an issue with _some_ RedHats) the default compiler si gcc 3.x and many 3.x versions include optimizations, that break kernel now and then. And by the way, there is no official 2.96 gcc release! Current stable 2.x series gcc is 2.95.3. Make sure you compile the kernel with version that is mentioned in Documentation/Changes (2.95.3 as of 2.4.19, 2.95.4 works, but as far as GCC home page is concerned, even that release does not exist). The simplest way out anyway - you should compile kernel using exactly the version mentioned in Documentation/Changes and if it does not work, then report it as a kernel bug on lkml. > (I think Jan's recommendation of kgcc is for older RedHat systems. Jan's > note that 2.5.x kernels might not compile, might oops on boot, or might > trash your filesystems, is all right on. Backups are good. :) > > Cheers > > -- > http://immunix.org/ ------------------------------------------------------------------------------- Jan 'Bulb' Hudec <bulb@ucw.cz> -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/