Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-06-2004, 05:17 PM
|
#1
|
LQ Newbie
Registered: Jan 2004
Location: Connecticut
Distribution: Fedora Core 1
Posts: 6
Rep:
|
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
|
|
|
02-06-2004, 05:20 PM
|
#2
|
Senior Member
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286
Rep:
|
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.
|
|
|
02-06-2004, 08:04 PM
|
#3
|
LQ Newbie
Registered: Jan 2004
Location: Connecticut
Distribution: Fedora Core 1
Posts: 6
Original Poster
Rep:
|
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
|
|
|
02-06-2004, 08:09 PM
|
#4
|
Senior Member
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286
Rep:
|
right, u need to get gcc.3.xx
i believe thats a 2.6 requirement?
|
|
|
02-06-2004, 08:09 PM
|
#5
|
Senior Member
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286
Rep:
|
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.
|
|
|
02-07-2004, 04:05 PM
|
#6
|
Member
Registered: Nov 2003
Distribution: slackware 15
Posts: 546
Rep:
|
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 01:24 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|