Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


problems compiling kernel

Posted on 2000-03-15
Medium Priority
Last Modified: 2011-04-14
I am attempting to recompile the 2.2.14 kernel.  I have successfully compiled this kernel before and am currently using that version.  I am recompiling to change a few configuration options.

Now, though, I can't get all the way through.  I get errors like:

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586   -c -o panic.o panic.c
gcc: Internal compiler error: program cc1 got fatal signal 11
make[2]: *** [panic.o] Error 1
make[2]: Leaving directory `/usr/src/linux/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux/kernel'
make: *** [_dir_kernel] Error 2

It is not always on the same file - in fact, every time it seems to be on a different file.  And if I run 'make bzImage' again right away, it will be able to compile that file.  It will continue on past that point and have the same error on another file.  Eventually, however, it seems to get to a point that it can't get past.

I used 'make menuconfig' to setup the options, followed by 'make clean' and 'make dep' before finally typing 'make bzImage'

Any help would be appreciated.
Question by:red5
  • 4
  • 3
  • 2
  • +7

Expert Comment

ID: 2622135
are you running lilo when you are finished.
A shortcut is make bzlilo instead of make bzImage
LVL 40

Expert Comment

ID: 2622237
What version of gcc are you using (gcc -c)? How much memeory do you have and how much swap space?

Expert Comment

ID: 2622372
You said that it compiled before. Did you "make clean" before attempting it this time. When compiling residual files are left over in the src directory and the next time you attempt to compile it may not operate properly.
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Expert Comment

ID: 2622424
Here is the first clue:

got fatal signal 11

The second clue is this:

"it is not always on the same file - in fact, every time it seems to be on a different file"

The best place to read about this problem is here:


I had this very same problem once after I installed new memory.  My solution was to get new memory from a different manufacturer.  Your solution may be something else.  But "The Sig11 FAQ " is very revealing and should solve your problem.

Expert Comment

ID: 2622663
This is an answer:
Because your system runs stably (I suppose) this is not a RAM problem (or maybe it is).
And since it happends when you compile kernel - cpu intensive task, I can bet that it's your CPU.
Either you have overclocked it not wisely, or, I guess that your cpu fan has died.
Exactly the same results were observed when one of our production machines had CPU fan that died.
Other then that: adding new disks to the case raise temperature, this is a problem in "thin" machines, pizzaboxes like sparcs, haven't seen this problem on pcs though.
Hope that it helps, take care

Expert Comment

ID: 2624783
Indeed, and the FAQ I mentioned covers the things mpac mentioned along with many other causes :)  The point is "signal 11" can have a large variety of causes, but they are generally hardware related .. but not always .. this is covered in the FAQ as well.

I am 100% positive you will find a solution in this FAQ.

Sometimes these problems can get very nasty if not fixed early .. so I hope you solve your problem soon.

Author Comment

ID: 2625371
I am rejecting this answer for now to invite more comments.

Here is some info about my system.

I have the Tyan S1590 motherboard. It had some bad cache that was causing my system to lock up before, so I have the cache turned off.

I am using an AMD K6-3 400.  I can't determine if this would have the same K6 bug mentioned in that web page.

I have 128MB of RAM (PC-100) and haven't noticed any other problems with that, but may not have stressed it enough either.

Author Comment

ID: 2625392
More info -

I am not overclocking my CPU.  I have a temperature gauge in the case that usually reads ~90 deg F.  The motherboard also has a temperature gauge on the CPU and I'll have to check to see what it's runs at.  (unfortuneately I have to go back to the BIOS to read it and by then it may have cooled slightly)

Expert Comment

ID: 2625488
with respect to fmartin, you may wish
to avoid make zlilo or bzlilo as this will install your new kernel as the one lilo invokes when it boots up.

if your new kernel is not right, you'll be stuck with it and have to boot from
floppy.  suggest you use (b)zlilo only with perfected kernels.

v/r, Bill Cunningham

Expert Comment

ID: 2625508
I suspect that something choked on the motherboard.. Either memory or CPU.

A much less like possibility is the C compiler itself, but it is a distant second.

Expert Comment

ID: 2625590
do us a favor, open the case and see if the fan is working. lmmon may be wrong btw.

Accepted Solution

freesource earned 600 total points
ID: 2625635
O.k., assuming your cache is still off, I'd try to narrow things down.  You can try different memory or try booting
with mem=4M.  This is all mentioned under the question "What do I do".

The K6 thing probably doesn't apply because this was mostly related to K6-2's of a certain version.  

If things were working fine before with this same hardware setup .. and you haven't changed anything .. then something somewhere is starting to break down.

Try doing something else which uses a lot of memory and see if the kernel complains, and look at your logs, too.
Be careful, because bad memory can cause bad problems with the ext2 filesystem.

On the other hand, even dust build-up has been known to cause sig11 problems.

Expert Comment

ID: 2626297
It's amazing how GCC will find problems with memory that doesn't affect anything else.  Still, if you get a signal-11 from GCC, it's almost certainly an memory problem.

-- Brian

Expert Comment

ID: 2628357
You can check your memory with memtest86:  http://reality.sgi.com/cbrady_denver/memtest86/

Hope it helps.

Author Comment

ID: 2630578
Well, memtest86 is an awesome program.  Using it, I discovered a bad bit at 0x05603218 which I think would put that in my second 64MB SIMM.  Guess I'll have to replace it.  I'm guessing this is what was causing the gcc failures (yes the cpu fan is running)

I would like to give Reinier some points for that one, but I think freesource's comments also are informative and required a little more effort.

If it were easy to distribute points to multiple experts (which I think is a badly needed feature of this website) I would reward Reinier and freesource, but as it is, I give them to freesource.

Thanks everyone.

Author Comment

ID: 2646209
An additional comment:

I removed the bad SIMM, let memtest86 do 3 passes of all tests on the remaining SIMM, got no errors, and was then still unable to recompile the kernel.  Yikes.  Guess I still have some problems.

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month10 days, 22 hours left to enroll

572 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question