Results 1 to 6 of 6
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-29-2004 #1Linux Newbie
- Join Date
- Sep 2003
- Location
- St.Charles, Missouri, USA
- Posts
- 201
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?Powered by Gentoo
never ever ever use the hardened option in make.conf!
- 01-29-2004 #2Linux Engineer
- Join Date
- Sep 2003
- Location
- Knoxhell, TN
- Posts
- 1,078
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.)...
Their code will be beautiful, even if their desks are buried in 3 feet of crap. - esr
- 01-29-2004 #3Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
It's most likely bad RAM. Get memtest86 here:
http://www.memtest86.com/
- 01-29-2004 #4Linux Newbie
- Join Date
- Sep 2003
- Location
- St.Charles, Missouri, USA
- Posts
- 201
Heres the error I get:
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.6vCode: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
Hope this helps
Powered by Gentoo
never ever ever use the hardened option in make.conf!
- 01-29-2004 #5Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
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.
- 02-01-2004 #6
It could also result from your CPU being overclocked. I've had segfaults before, turned down my OC'ing and then it compiled flawlessly.
"Time is an illusion. Lunchtime, doubly so."
~Douglas Adams, The Hitchhiker's Guide to the Galaxy


Reply With Quote
