[PLUG] Kernel 2.2.17 not compiling with gcc
Rick
address-suppressed@ecn.purdue.edu
Sat, 30 Sep 2000 19:54:10 -0500 (EST)
>> After moving from RedHat 6.2 to 7.0, the Kernel 2.2.17 would no longer
>> recompile. Gcc 2.96-54 has errors when trying to compile
>> /usr/src/linux/arch/i386/libs/checksum.S by saying the #define directives at
>> lines 231 and 237 had bad punctuation.
RedHat put a beta-version of the gcc (egcs) compiler into 7.0. The
new version of gcc is not bad; it produces more optimal code than
prior versions of gcc. ...it just has a long history of picking
fights with the kernel source.
RedHat also included a separate compiler intended to use for the
kernel called kgcc. Change the HOST_CC variable in
/usr/src/linux/Makefile to kgcc and the build should work even with
the new compiler installed.
The 2.2.18 pre-patches already have a workaround to use the right compiler.
Rick