error compiling kernel 2.6.2 (GCC too old??)
hello hello...first time poster
i've been trying out linux to try to educate myself...so far i have a dual boot on my P3 450 mhz with rh9 and winxp i also have anotherr box that i dug out of the closet and managed to install rh 6.2 on it (Pentium 133 mhz...16 mb ram 1.1 gb HDD) after learning the layout and other things i decided i should try to compile a kernel (using the P133 as a guinea pig) i downloaded the 2.6.2 tar.bz2 and configured the whole thing with make menuconfig saved the config file then tried to compile it (i have the help of a book Linux For Windows Addicts: A 12 Step Program it told me to: $ make dep ; make clean ; make bzimage i think i got thru the first 2, but then when it went to compile i got this output and i'm stumped as to what to do: (exactly as it appeared on my screen): CC init/main.o init/main.c:67: #error Sorry, your GCC is too old. It builds incorrect kernels. make[1]: *** [init/main.o] Error 1 make: *** [init] Error 2 ...and back to the regular prompt any ideas? is it because my distro is too old and i'm using the newest kernel? any ideas you guys can bounce off me would be much appreciated, thanks! -jeremy |
hey.
what does "gcc -v" give you? also the steps you are following are for the 2.4 u dont need make dep/bzimage just make menuconfig, make, make modules_install. |
gcc -v gives me:
-Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs -gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) using make gave me gave the same GCC error using module_install gave me a different error...but i think i need to be root...ill worry about that one after i figure out the GCC thing |
right, u need to get gcc.3.xx
i believe thats a 2.6 requirement? |
and yes, "make modules_install" is the ONLY command which u need to be root for.
the previous two can be done as normal user. |
You also need module_init_tools to be installed before compiling a 2.6 kernel series. Not sure RH9 comes ready for the new kernel series. RH6 doesn't for sure.
Hope this helps Ciao |
All times are GMT -5. The time now is 08:29 AM. |