Find the answer to your Linux question:
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.
  1. #1
    Linux 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!

  2. #2
    Linux 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

  3. #3
    Linux 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/

  4. #4
    Linux Newbie
    Join Date
    Sep 2003
    Location
    St.Charles, Missouri, USA
    Posts
    201
    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&#58;http&#58;//www.gnu.org/software/gcc/bugs.html> for instructions.
    make&#91;2&#93;&#58; *** &#91;fs/nls/nls_base.o&#93; Error 1
    make&#91;1&#93;&#58; *** &#91;fs/nls&#93; Error 2
    make&#58; *** &#91;fs&#93; 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
    Powered by Gentoo
    never ever ever use the hardened option in make.conf!

  5. #5
    Linux 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.

  6. #6
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •