SlackwareThis Forum is for the discussion of Slackware Linux.
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.
I have a question that I can't for the life of me find the answer to after searching all around the net, and I have no place else to turn.
My problem is this, I decided to give the new 2.6-test5 a go after using the default slack9 kernel since installation. I've built kernels before, and looked at many different sites on how to build the 2.6 series, but I think my problem is unexplainable.
When I get to the "make bzImage" step, the compile(with gcc 3.2.2 that comes with slack9) will invariable die at some .c file. The thing is, if I clean the make process, and redo everything, the process will die at an entirely different .c file. Each time I clean and retry, bam, another error at a different step. I have used the same config file, and using a default one. No luck, same thing.
The only thing I can think of is that my computer has some bad ram or the HD is messed up, but I've had no problems with it before. I've used mandrake, windows xp, gentoo, and slackware, and had nothing of the sort like this happen before.
I've compiled and built many other large programs(not quite as large as a kernel) with no problems at all. I don't get whats happening. Other people have had no problems compiling their kernels with the same setup, so my question is this: what gives?
Any, and I mean any, help would be greatly appreciated. My laptop is somewhat slow with the GUI, so the added speed would be much needed.
What about getting 2.4.22 (current stable) and compiling that, see if you get the same kind of errors. There might be a bug in the current test kernel that you just stumbled on.
The other thing I can suggest is posting some of the compile time errors you are getting to this forum and the kernel developmen forum.
Are you doing the make mrproper prior to doing the configure? I know the first kernel compile I did I inadvertently skipped this step and had some similar problems. Are you following the Kernel Compile HOWTO?
I did follow the howto, and I did do the mrproper step. I've compiled kernels before, but this is just an oddball problem. As we speak, my laptop is furiously compiling 2.4.22 as per Modorfs suggestion. If it succeeds, I'll be sure to let you guys know. If it fails, then I'm clueless. Hopefully it succeeds and I can get working on 2.6.
If I get past the 2.4.22 build ok, then I'll try and post some of my error messages I get.
Try to patch to the latest -bk,
...and it might be a good idea to use "make" [...as suggested when your config is saved] instead of "make bzImage" and "make modules".
the -bk that UnTamed referred to is a set of patches. You might also try the -ac line of patches, I've had good luck with the -ac patches. However considering it happens with both 2.4.22 and the 2.6.x kernels if I was you I would try to compile one of the old sources you previously compiled successfully to see if that works. Because if it doesn't it's probably not the new kernels.
I had faced this similar problem before. Build the kernel half way and encounter a gcc error.
However, (after some trial and error), I notice the problem seems to be related to hardware rather than software. Is your CPU overclocked? Or is your CPU overheated? You can try copy the same .config file and build it at antther system. After built, copy the bzImage to the target machine (remember to include the modules as well).
This is a work around that I can think of at the moment.
Built 2.6-test* kernel is easy, just make sure you have downloaded the new kernel module-init-toolsl from:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.