Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 23
I have a problem installing kernel 2.6.18 on Fedora 16. The error is: Code: scripts/kconfig/conf -s arch/i386/Kconfig CHK include/linux/version.h UPD include/linux/version.h CHK include/linux/utsrelease.h UPD include/linux/utsrelease.h SYMLINK include/asm -> include/asm-i386 CC ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2010
    Location
    Italy
    Posts
    36

    Problems compiling kernel


    I have a problem installing kernel 2.6.18 on Fedora 16. The error is:
    Code:
    scripts/kconfig/conf -s arch/i386/Kconfig
      CHK     include/linux/version.h
      UPD     include/linux/version.h
      CHK     include/linux/utsrelease.h
      UPD     include/linux/utsrelease.h
      SYMLINK include/asm -> include/asm-i386
      CC      arch/i386/kernel/asm-offsets.s
      GEN     include/asm-i386/asm-offsets.h
      CC      scripts/mod/empty.o
      HOSTCC  scripts/mod/mk_elfconfig
      MKELF   scripts/mod/elfconfig.h
      HOSTCC  scripts/mod/file2alias.o
      HOSTCC  scripts/mod/modpost.o
      HOSTCC  scripts/mod/sumversion.o
    scripts/mod/sumversion.c: In function ‘get_src_version’:
    scripts/mod/sumversion.c:384:16: error: ‘PATH_MAX’ undeclared (first use in this function)
    scripts/mod/sumversion.c:384:16: note: each undeclared identifier is reported only once for each function it appears in
    scripts/mod/sumversion.c:384:7: warning: unused variable ‘filelist’ [-Wunused-variable]
    make[2]: *** [scripts/mod/sumversion.o] Error 1
    make[1]: *** [scripts/mod] Error 2
    make: *** [scripts] Error 2
    how can i fix that error? Thanks

  2. #2
    Just Joined!
    Join Date
    Jan 2010
    Location
    Italy
    Posts
    36
    solved adding the line
    Code:
    #include <linux/limits.h>
    to the file
    Code:
    scripts/mod/sumversion.c
    found into the linux directory extracted from the bz2 archive. (thanks to atreyu)

    but now i got this new error:
    Code:
      LDS     arch/i386/kernel/vsyscall.lds
      AS      arch/i386/kernel/vsyscall-int80.o
      AS      arch/i386/kernel/vsyscall-note.o
      SYSCALL arch/i386/kernel/vsyscall-int80.so
    gcc: error: elf_i386: No such file or directory
    make[1]: *** [arch/i386/kernel/vsyscall-int80.so] Error 1
    make: *** [arch/i386/kernel] Error 2

  3. #3
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Are you using gcc 4.6.x?
    Code:
    gcc --version
    If so, try:

    Code:
    # install gcc 3.4 from repos
    yum install compat-gcc-34
    
    # back up original gcc 4.6 binary
    mv /usr/bin/gcc /usr/bin/gcc46
    
    # symlink gcc 3.4 to gcc
    ln -s /usr/bin/gcc34 /usr/bin/gcc
    Then try 'make' command again

    Edit: Referenced here
    Last edited by atreyu; 11-28-2011 at 09:06 PM. Reason: link

  4. #4
    Just Joined!
    Join Date
    Jan 2010
    Location
    Italy
    Posts
    36
    after "make", "make modules" and "make modules_install" when i launch "make install" it returns this error:

    Code:
    [root@localhost linux-2.6.18]# make install
    sh /home/enrico/Downloads/linux-2.6.18/arch/i386/boot/install.sh 2.6.18 arch/i386/boot/bzImage System.map "/boot"
    F: No modules.builtin.bin and modules.builtin found!

  5. #5
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Is that an error or a warning? Do you see the kernel in /boot?

    Code:
    ls -l /boot/*2.6.28*

  6. #6
    Just Joined!
    Join Date
    Jan 2010
    Location
    Italy
    Posts
    36
    Code:
    [root@localhost enrico]# ls -l /boot/*2.6.18*
    -rw-r--r--. 1 root root 5912604 29 nov 19.26 /boot/initramfs-2.6.18.img
    -rw-r--r--. 1 root root  862976 29 nov 19.26 /boot/System.map-2.6.18
    -rw-r--r--. 1 root root 1869725 29 nov 19.26 /boot/vmlinuz-2.6.18
    i tried also to install the old Fedora 6 Kernel RPM, but it didn't work .

  7. #7
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Well, looks like the kernel files are there. Do with them what you will. If your intent is to boot this machine with it, then make sure /etc/grub.conf has been updated to contain a stanza to boot it.

  8. #8
    Just Joined!
    Join Date
    Jan 2010
    Location
    Italy
    Posts
    36
    i tried to lunch grub2-mkconfig and reboot the system.

    The new kernel appeared, but if i boot it the CPU goes to 100% for some seconds and system reboots.

    I begin to think that is better to leave the system as is and use DVD recorder only from Windows

  9. #9
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    The new kernel appeared, but if i boot it the CPU goes to 100% for some seconds and system reboots.
    When does the CPU go to 100%? Once you start some sort of DVD-writing application, or does it just peg all by itself? How are you verifying that?

    Have you looked at the output of dmesg for clues? And /var/log/messages?

    I begin to think that is better to leave the system as is and use DVD recorder only from Windows
    Now that would be a shame. Have you posted the DVD make/model yet? It would be good to have that info, if for no other reason, than to have it documented that it is problematic under Linux.
    Last edited by atreyu; 11-30-2011 at 12:26 PM. Reason: quote fubar

  10. #10
    Just Joined!
    Join Date
    Jan 2010
    Location
    Italy
    Posts
    36
    Since my english isn't so good, i try to explain the problem.

    i turn on the PC
    grub (the list with kernels and Vista) appears
    I select the kernel 2.6.18
    i press ENTER
    Black screen for 2-3 seconds with high CPU load (i suppose because the notebook fan starts)
    automatic reboot of the system

    How can i find a log? i have to try to start the kernel 2.6.18 and then look at the log?

    My system is:
    Notebook ASUS PRO52RL with motherboard ASUS X51RL
    Windows detect the dvd writer as "SLIMTYPE DVD A DS8A1P ATA DEVICE"

Page 1 of 3 1 2 3 LastLast

Posting Permissions

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