-
error during compile
When trying to compile the linux 2.6.1 kernel I get an error, here's the gist of it:
fs/nls/nls_base.c: In function 'char2uni'
fs/nls/nls_base.c:465: Internal compilers error: Segmentation Fault
Is that a problem with the code or is it an error with gcc as the error says? Any ideas what I should do?
-
A Segmentation Fault could be faulty code, a compiler error, or bad hardware.. it would help to have the rest of the messages around those two lines, including the Signal number... also, what hardware are you compiling the kernel on? it might help to test your ram with memtest86 (dolda's posted the url a couple of times.. a search of the forums should find it.)...
-
It's most likely bad RAM. Get memtest86 here:
http://www.memtest86.com/
-
Heres the error I get:
Code:
gwalters@gregscomp:~/linux-2.6.1> make bzImage
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/linux/compile.h
CC fs/nls/nls_base.o
fs/nls/nls_base.c: In function `char2uni':
fs/nls/nls_base.c:465: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[2]: *** [fs/nls/nls_base.o] Error 1
make[1]: *** [fs/nls] Error 2
make: *** [fs] Error 2
I ran memtest on my computer and got an amazing 154 errors on the 5th test! But, I took all the memory out of my computer and put one stick in then tested it, I did that for each stick and didn't get any errors. So, I put all the memory back in but in a different order and didn't get any errors either. Im compiling the sorce on a AMD K-6/2 @ 522mHz (overclocked) its running @ 100 mhz base * 5.5 multiplier and ~2.6v :) Hope this helps
-
I would nonetheless say that it's likely to be the memory. GCC segfaults during kernel compilations are a classical way to test for bad memory - it even predates memtest86.
-
It could also result from your CPU being overclocked. I've had segfaults before, turned down my OC'ing and then it compiled flawlessly.