Trying to recompile kernel but config's not working.
Linux - NewbieThis 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.
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.
Trying to recompile kernel but config's not working.
Well, I'm trying to recompile the kernel so that I can get rivafb support so that I couls have a bootsplash. However, when I try to run make xconfig, it didn't work. same for make menuconfig. Here's what I got:
Code:
user@hostname:/usr/src/kernel-source-2.6.8$ make xconfig
HOSTCC scripts/kconfig/mconf.o
scripts/kconfig/mconf.c:91: error: static declaration of 'current_menu' followsnon-static declaration
scripts/kconfig/lkc.h:63: error: previous declaration of 'current_menu' was here
make[1]: *** [scripts/kconfig/mconf.o] Error 1
make: *** [xconfig] Error 2
user@hostname:/usr/src/kernel-source-2.6.8$ make menuconfig
HOSTCC scripts/kconfig/mconf.o
scripts/kconfig/mconf.c:91: error: static declaration of 'current_menu' followsnon-static declaration
scripts/kconfig/lkc.h:63: error: previous declaration of 'current_menu' was here
make[1]: *** [scripts/kconfig/mconf.o] Error 1
make: *** [menuconfig] Error 2
I'm using Debian testing and as you can see, a 2.6.8 kernel.
Thanks, though now I see that it's quite an obvious solution. Maybe I should of looked at the error before posting.
EDIT: Well, Ok, now I'm getting this when I actually try to compile the kernel:
Code:
make[1]: Entering directory `/usr/src/kernel-source-2.6.8'
SPLIT include/linux/autoconf.h -> include/config/*
CC arch/i386/kernel/asm-offsets.s
In file included from include/asm/thread_info.h:16,
from include/linux/thread_info.h:21,
from include/linux/spinlock.h:12,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from arch/i386/kernel/asm-offsets.c:7:
include/asm/processor.h:87: error: array type has incomplete element type
make[2]: *** [arch/i386/kernel/asm-offsets.s] Error 1
make[1]: *** [arch/i386/kernel/asm-offsets.s] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.6.8'
make: *** [stamp-kernel-configure] Error 2
I checked processor.h, and the area with the offending line is this:
I would download another source package and try again. I've never been one for fixing other peoples coding errors. Do report this, though - and let them figure out if it is a valid bug - instead of just something on your machine (gcc version - etc) - unless you are pretty adventurous...
Ok, I think I will start over. Maybe I messed up somewhere and because of it caused this to happen. I might try using that guide to recompiling that's a sticky in the Debian forum here.
Of course, I first have to fix my messed up lilo. conf
BTW, a # is not a comment for C source code as it would be for Perl or bash, which is part of the reason why that didn't work. Instead you would enclose the line as follows /* line */.
What version of gcc are you using? If you're using gcc 4 try installing an older version, as gcc 4 does some things differently and has a few issues since it's quite a bit stricter about enforcing some language rules than gcc 3 was.
Yep, the problem was that gcc was too new of a version, so I found a way to fix it so it uses the old one. So yes, my kernel was compiled. However, I still don't have a bootsplash. I checked and vesafb did load. Is it because I made the options in lilo.conf wrong? Here's my lilo.conf now:
i'm having the same problem you were having, and when i last tried to downgrade my gcc i managed to delete gnome and left quite a few packages in my system unusable.
ah, i'm mostly an aptitude guy...i'll have to give synaptec another try. what i did though was to go to debian.org and download the lower version .deb package and install it with dpkg.
i don't remember what i did before...
it seems to me though that etch seems to be a bit more unstable than sid right now. there are a lot of packages (like alsa-utils for example) that the current version in testing is not compatable with other major testing software (like alsa-utils and gnome)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.