On Mon, Jul 29, 2002 at 04:56:29PM +0100, Nick Lindsell wrote: > OK, fine - I was just trying to point out that there are two compilers on > a rh7.2 box (which many folks are unaware of). > > But how about trying to use kgcc? It might be the fix and every time I've > come across this parse error issue it has been down to the 2.96 compiler.
I'm running Redhat 7.1, and kgcc is egcs-2.91.66. Do you think that it would compile the kernel OK, or is it too outdated? I'm not sure from the kernel docs whether it would work or not. Here's what <kernel source>/Documentation/Changes says about GCC: ------------- The gcc version requirements may vary depending on the type of CPU in your computer. The next paragraph applies to users of x86 CPUs, but not necessarily to users of other CPUs. Users of other CPUs should obtain information about their gcc version requirements from another source. The recommended compiler for the kernel is gcc 2.95.3 or .4, and it should be used when you need absolute stability. You may use gcc 3.0.x instead if you wish, although it may cause problems. Later versions of gcc have not received much testing for Linux kernel compilation, and there are almost certainly bugs (mainly, but not exclusively, in the kernel) that will need to be fixed in order to use these compilers. In any case, using pgcc instead of egcs or plain gcc is just asking for trouble. Note that gcc 2.7.2.3 is no longer a supported kernel compiler. The kernel no longer works around bugs in gcc 2.7.2.3 and, in fact, will refuse to be compiled with it. egcs-1.1.2 has register allocation problems in very obscure cases. We have ensured the kernel does not trip these in any known situation. The 2.5 tree is likely to drop egcs-1.1.2 workarounds. The Red Hat gcc 2.96 compiler subtree can also be used to build this tree. You should ensure you use gcc-2.96-74 or later. gcc-2.96-54 will not build the kernel correctly. In addition, please pay attention to compiler optimization. Anything greater than -O2 may not be wise. Similarly, if you choose to use gcc-2.95.x or derivatives, be sure not to use -fstrict-aliasing (which, depending on your version of gcc 2.95.x, may necessitate using -fno-strict-aliasing). ------------------- Thanks again, Ben -- Ben Logan: ben at wblogan dot net OpenPGP Key KeyID: A1ADD1F0 Many receive advice, few profit by it. -- Publilius Syrus _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list