Fedora This forum is for the discussion of the Fedora Project. |
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.
|
 |
03-30-2006, 11:40 AM
|
#1
|
LQ Newbie
Registered: Mar 2006
Location: Texas
Distribution: Fedora Core x
Posts: 14
Rep:
|
Kernel compile problems
This is starting to drive me nuts. I have a newly installed FC4 laptop. I have the kernel upgraded to 2.6.15 via yum. I also have the kernel devel packages installed. I copied the config file from /boot and into /usr/src/..../.config and ran make xconfig to make the one change I needed.
My problem is that when I attempt to compile my kernel here is what I get:
[root@machineA 2.6.15-1.1833_FC4-i686]# make bzImage
CHK include/linux/version.h
SPLIT include/linux/autoconf.h -> include/config/*
HOSTCC scripts/genksyms/genksyms.o
HOSTCC scripts/genksyms/lex.o
scripts/genksyms/lex.c:546:5: warning: "YY_STACK_USED" is not defined
scripts/genksyms/lex.c:1424:5: warning: "YY_ALWAYS_INTERACTIVE" is not defined
scripts/genksyms/lex.c:1427:5: warning: "YY_NEVER_INTERACTIVE" is not defined
scripts/genksyms/lex.c:1718:5: warning: "YY_MAIN" is not defined
HOSTCC scripts/genksyms/parse.o
/usr/lib/bison.simple:164:5: warning: "YYMAXDEPTH" is not defined
HOSTLD scripts/genksyms/genksyms
CC scripts/mod/empty.o
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
make[1]: *** No rule to make target `init/main.o', needed by `init/built-in.o'. Stop.
make: *** [init] Error 2
Any idea what I'm supposed to do about that? I had the same problem with FC3 on this laptop and another older laptop... So I don't think it is anything specific to this machine. I'm using the one that is "supposed" to go with my kernel.
I'm not new to linux and I have built a number of kernels, so I'm sure it is something either new to the 2.6 kernels or stupid that I'm missing.
Any help is appreciated.
Thanks.
|
|
|
03-30-2006, 01:06 PM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep: 
|
I haven't seen that particular error, but if you've copied over your old .config file you should run make oldconfig before you run make xconfig to make sure that any new settings in the file are generated.
|
|
|
03-30-2006, 03:37 PM
|
#3
|
LQ Newbie
Registered: Mar 2006
Location: Texas
Distribution: Fedora Core x
Posts: 14
Original Poster
Rep:
|
I'm currently running 2.6.15 and trying to compile a new 2.6.15 kernel. I didn't think I had to run the make oldconfig. Please correct me if I'm wrong.
|
|
|
03-30-2006, 04:47 PM
|
#4
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep: 
|
If we were talking about kernel sources downloaded from kernel.org I'd say you were right about not needing to run make oldconfig when you're just changing settings and not actually upgrading the kernel.
I don't know what Fedora does to a standard source tree - is there a readme file that comes with the Fedora sources?
|
|
|
03-30-2006, 08:34 PM
|
#5
|
LQ Newbie
Registered: Mar 2006
Location: Texas
Distribution: Fedora Core x
Posts: 14
Original Poster
Rep:
|
There could very well be one, but I don't see it. And I unfortunately don't know the answer to your other question about what (if anything) they did to the source tree.
I'm more or less throwing this out there to see what people know and to get suggestions on what could be causing this.
I guess I should try the kernel sources from kernel.org as a starting place.
I also noticed that my server is showing the same symptoms. It never used to do this, but I have not tried to compile the kernel since the days of FC2... a year or so ago. I don't even remember if that was successful or if I'm just making that up all together.
|
|
|
03-30-2006, 10:03 PM
|
#6
|
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
|
Hmmmm.....
As a suggestion, start again (make mrproper) this time do not copy the config file from /boot go directly to make xconfig (it should "pull" the working config file for you) and make your change(s).
Ever since the 2.6.1 vanilla kernel came out I quit using make bzIamage, I'm now used to doing 'make -j2'. This takes the place of both 'make bzImage' and 'make modules', as a suggestion (also) try it.
|
|
|
03-31-2006, 06:38 AM
|
#7
|
LQ Newbie
Registered: Mar 2006
Location: Texas
Distribution: Fedora Core x
Posts: 14
Original Poster
Rep:
|
Here is what I get with a make mrproper command (it doesn't seem right to me):
[root@machineA 2.6.15-1.1831_FC4smp-i686]# make mrproper
scripts/Makefile.clean:17: /usr/src/kernels/2.6.15-1.1831_FC4-smp-i686/drivers/infiniband/ulp/srp/Makefile: No such file or directory
make[3]: *** No rule to make target `/usr/src/kernels/2.6.15-1.1831_FC4-smp-i686/drivers/infiniband/ulp/srp/Makefile'. Stop.
make[2]: *** [drivers/infiniband/ulp/srp] Error 2
make[1]: *** [drivers/infiniband] Error 2
make: *** [_clean_drivers] Error 2
The only thing I can think of is that I'm missing some essential package. I'll try out the kernel.org package today to see if that is any different.
I'm so supprised with how much I get this problem that no one else has seen this. I didn't even find anything in a google search.
|
|
|
03-31-2006, 06:41 AM
|
#8
|
LQ Newbie
Registered: Mar 2006
Location: Texas
Distribution: Fedora Core x
Posts: 14
Original Poster
Rep:
|
Off topic: How do I change the "newbie" label under my name? I can only assume that is newbie to this site as opposed to newbie to Linux.
|
|
|
03-31-2006, 07:56 AM
|
#9
|
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
|
Keep posting!!! Try and help others wherever possible, yes the newbie is a reflection on how much you have participated on this site.
Check which gcc packages are installed, you might be missing one or more needed;
rpm -qa --queryformat="%{n}-%{v}-%{r}.%{arch}.rpm\n" '*gcc*' | sort
|
|
|
03-31-2006, 10:45 AM
|
#10
|
LQ Newbie
Registered: Mar 2006
Location: Texas
Distribution: Fedora Core x
Posts: 14
Original Poster
Rep:
|
Maybe I just don't know what I'm doing or what I have installed... I downloaded the kernel from kernel.org and that started to compile just fine. I did a du -hs on the 2 kernel directories and fedora's directory was 73M where kernel.org's version was 441M. Maybe all I have are headers. The package does say kernel-devel...
I guess I'll cut my losses and do the kernel.org version, keep my noobie status, and find a manual to RTFM... I did find something talking about building from /usr/src/redhat/BUILD instead of the /usr/src/kernels/... directories.
Regardless, I guess I found enough of my answer to stop bothering the people who know what they are doing.
Thanks for all your help.

|
|
|
03-31-2006, 01:20 PM
|
#11
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep: 
|
It's been a while since I compiled a kernel under Fedora, but it may be that you need the src.rpm from http://download.fedora.redhat.com/pu...33_FC4.src.rpm.
|
|
|
04-12-2006, 02:21 PM
|
#12
|
Member
Registered: Jan 2006
Posts: 70
Rep:
|
I had the same problem with CentOS 4.3. It turns out that gilead was right, at least in my case. I found my answer at this forum:
http://www.centos.org/modules/newbb/...#forumpost1318
I found a tarball of the source I wanted and went on to greater errors. If you're still having trouble, it may well be that your kernel-devel doesn't provide everything necessary to build the kernel...
|
|
|
All times are GMT -5. The time now is 06:15 AM.
|
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
|
|