Professional Web Applications Themes

Error compiling the kernel... - Linux Setup, Configuration & Administration

Hi, I am trying to upgrade my kernel from 2.2.20. I have downloaded the latest stable kernel release i.e. 2.4.21. I tried compiling it, but i got a few errors while 'make dep', I'm not sure if this is an error or this is just the way it ends, and also during 'make modules_install'. These are the erorrs(these are the last parts of both the errors, I couldnt get the whole because of my terminal) : - make dep: - make[4]: Entering directory `/usr/src/linux-2.4.21/lib/zlib_deflate' /usr/src/linux-2.4.21/scripts/mkdep -D__KERNEL__ -I/usr/src/linux-2.4.21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -I /usr/src/linux-2.4.21/lib/zlib_deflate -nostdinc ...

  1. #1

    Default Error compiling the kernel...

    Hi,
    I am trying to upgrade my kernel from 2.2.20.
    I have downloaded the latest stable kernel release i.e. 2.4.21. I
    tried compiling it, but i got a few errors while 'make dep', I'm not
    sure if this is an error or this is just the way it ends, and also
    during 'make modules_install'. These are the erorrs(these are the last
    parts of both the errors, I couldnt get the whole because of my
    terminal) : -

    make dep: -

    make[4]: Entering directory `/usr/src/linux-2.4.21/lib/zlib_deflate'
    /usr/src/linux-2.4.21/scripts/mkdep -D__KERNEL__
    -I/usr/src/linux-2.4.21/include -Wall -Wstrict-prototypes
    -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
    -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -I
    /usr/src/linux-2.4.21/lib/zlib_deflate -nostdinc -iwithprefix include
    -- deflate.c deflate_syms.c deftree.c defutil.h > .depend
    make[4]: Leaving directory `/usr/src/linux-2.4.21/lib/zlib_deflate'
    make -C zlib_inflate fastdep
    make[4]: Entering directory `/usr/src/linux-2.4.21/lib/zlib_inflate'
    /usr/src/linux-2.4.21/scripts/mkdep -D__KERNEL__
    -I/usr/src/linux-2.4.21/include -Wall -Wstrict-prototypes
    -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
    -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -I
    /usr/src/linux-2.4.21/lib/zlib_inflate -nostdinc -iwithprefix include
    -- infblock.c infblock.h infcodes.c infcodes.h inffast.c inffast.h
    inffixed.h inflate.c inflate_syms.c inftrees.c inftrees.h infutil.c
    infutil.h > .depend
    make[4]: Leaving directory `/usr/src/linux-2.4.21/lib/zlib_inflate'
    make[3]: Leaving directory `/usr/src/linux-2.4.21/lib'
    make[2]: Leaving directory `/usr/src/linux-2.4.21/lib'
    make -C arch/i386/kernel fastdep
    make[2]: Entering directory `/usr/src/linux-2.4.21/arch/i386/kernel'
    /usr/src/linux-2.4.21/scripts/mkdep -D__KERNEL__
    -I/usr/src/linux-2.4.21/include -Wall -Wstrict-prototypes
    -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
    -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
    -nostdinc -iwithprefix include -- acpitable.c acpitable.h apic.c apm.c
    bluesmoke.c cpuid.c dmi_scan.c entry.S head.S i386_ksyms.c i387.c
    i8259.c init_task.c io_apic.c ioport.c irq.c ldt.c mca.c microcode.c
    mpp.c msr.c mtrr.c nmi.c pci-dma.c pci-i386.c pci-i386.h pci-irq.c
    pci-pc.c pci-visws.c process.c ptrace.c semaphore.c setup.c signal.c
    smp.c smpboot.c sys_i386.c time.c oline.S traps.c visws_apic.c
    vm86.c > .depend
    make[2]: Leaving directory `/usr/src/linux-2.4.21/arch/i386/kernel'
    make -C arch/i386/mm fastdep
    make[2]: Entering directory `/usr/src/linux-2.4.21/arch/i386/mm'
    /usr/src/linux-2.4.21/scripts/mkdep -D__KERNEL__
    -I/usr/src/linux-2.4.21/include -Wall -Wstrict-prototypes
    -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
    -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
    -nostdinc -iwithprefix include -- extable.c fault.c init.c ioremap.c
    pageattr.c > .depend
    make[2]: Leaving directory `/usr/src/linux-2.4.21/arch/i386/mm'
    make -C arch/i386/lib fastdep
    make[2]: Entering directory `/usr/src/linux-2.4.21/arch/i386/lib'
    /usr/src/linux-2.4.21/scripts/mkdep -D__KERNEL__
    -I/usr/src/linux-2.4.21/include -Wall -Wstrict-prototypes
    -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
    -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
    -nostdinc -iwithprefix include -- checksum.S dec_and_lock.c delay.c
    getuser.S iodebug.c memcpy.c mmx.c old-checksum.c strstr.c usercopy.c
    > .depend
    make[2]: Leaving directory `/usr/src/linux-2.4.21/arch/i386/lib'
    make[1]: Leaving directory `/usr/src/linux-2.4.21'
    make update-modverfile
    make[1]: Entering directory `/usr/src/linux-2.4.21'
    /usr/src/linux-2.4.21/include/linux/modversions.h was not updated
    make[1]: Leaving directory `/usr/src/linux-2.4.21'
    scripts/mkdep -- `find /usr/src/linux-2.4.21/include/asm
    /usr/src/linux-2.4.21/include/linux /usr/src/linux-2.4.21/include/scsi
    /usr/src/linux-2.4.21/include/net
    /usr/src/linux-2.4.21/include/math-emu \( -name SCCS -o -name .svn \)
    -prune -o -follow -name \*.h ! -name modversions.h -print` > .hdepend
    scripts/mkdep -- init/*.c > .depend

    -----------------x--------------------x----------------------------

    make modules_install : -

    make[2]: Entering directory `/usr/src/linux-2.4.21/net/core'
    make[2]: Nothing to be done for `modules_install'.
    make[2]: Leaving directory `/usr/src/linux-2.4.21/net/core'
    make -C ipv4 modules_install
    make[2]: Entering directory `/usr/src/linux-2.4.21/net/ipv4'
    make[2]: Nothing to be done for `modules_install'.
    make[2]: Leaving directory `/usr/src/linux-2.4.21/net/ipv4'
    make -C netlink modules_install
    make[2]: Entering directory `/usr/src/linux-2.4.21/net/netlink'
    make[2]: Nothing to be done for `modules_install'.
    make[2]: Leaving directory `/usr/src/linux-2.4.21/net/netlink'
    make -C sched modules_install
    make[2]: Entering directory `/usr/src/linux-2.4.21/net/sched'
    make[2]: Nothing to be done for `modules_install'.
    make[2]: Leaving directory `/usr/src/linux-2.4.21/net/sched'
    make[1]: Leaving directory `/usr/src/linux-2.4.21/net'
    make -C ipc modules_install
    make[1]: Entering directory `/usr/src/linux-2.4.21/ipc'
    make[1]: Nothing to be done for `modules_install'.
    make[1]: Leaving directory `/usr/src/linux-2.4.21/ipc'
    make -C lib modules_install
    make[1]: Entering directory `/usr/src/linux-2.4.21/lib'
    make[1]: Nothing to be done for `modules_install'.
    make[1]: Leaving directory `/usr/src/linux-2.4.21/lib'
    make -C arch/i386/kernel modules_install
    make[1]: Entering directory `/usr/src/linux-2.4.21/arch/i386/kernel'
    make[1]: Nothing to be done for `modules_install'.
    make[1]: Leaving directory `/usr/src/linux-2.4.21/arch/i386/kernel'
    make -C arch/i386/mm modules_install
    make[1]: Entering directory `/usr/src/linux-2.4.21/arch/i386/mm'
    make[1]: Nothing to be done for `modules_install'.
    make[1]: Leaving directory `/usr/src/linux-2.4.21/arch/i386/mm'
    make -C arch/i386/lib modules_install
    make[1]: Entering directory `/usr/src/linux-2.4.21/arch/i386/lib'
    make[1]: Nothing to be done for `modules_install'.
    make[1]: Leaving directory `/usr/src/linux-2.4.21/arch/i386/lib'
    cd /lib/modules/2.4.21; \
    mkdir -p pcmcia; \
    find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{}
    pcmcia
    if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.4.21; fi

    ------------------x---------------x---------------

    Please tell me how to get rid of these errors. And I do the following
    to compile the kernel...tell me if this right too: -
    1) make clean
    2) make mrproper
    3) make xconfig
    4) make dep
    5) make bzImage
    6) make modules
    7) make modules_install
    8) make install

    I'm kinda new to compiling kernels...so I read a few online HOWTOs,
    but none of these doents explain what to do if you get an error
    during any of these steps, I guess the no. of errors possible are just
    too many to be doented.
    oh well, I hope I can eventually learn how to handle such errors.
    -Sumedh Takbhate
    Sumedh Takbhate Guest

  2. #2

    Default Re: Error compiling the kernel...

    Sumedh Takbhate wrote:
    > Hi,
    > I am trying to upgrade my kernel from 2.2.20.
    > I have downloaded the latest stable kernel release i.e. 2.4.21. I
    Stop there. If you're upgrading a 2.2.20 system to a 2.4-series kernel,
    you're probably going to have to upgrade quite a few more things before
    it will work. Take a look in the file "Changes" under the kernel source
    "Doentation" directory for a list of them. Pay particular attention
    to the required version numbers.
    > tried compiling it, but i got a few errors while 'make dep', I'm not
    > sure if this is an error or this is just the way it ends,
    From the listing you provided, I saw nothing at all that indicated
    any errors. Is there something you saw that made you think there
    was an error in the compilation?
    > Please tell me how to get rid of these errors. And I do the following
    > to compile the kernel...tell me if this right too: -
    > 1) make clean
    > 2) make mrproper
    This is a little redundant... "make mrproper" will do what "make clean"
    does.
    > 3) make xconfig
    > 4) make dep
    > 5) make bzImage
    > 6) make modules
    > 7) make modules_install
    > 8) make install
    I've never used "make install", so I am no expert on that, but the rest
    certainly looks kosher.
    > oh well, I hope I can eventually learn how to handle such errors.
    > -Sumedh Takbhate
    Forge ahead and welcome to the wonderful world of Linux! :)


    --
    Steve Martin, CPBE CBNT


    Steve Martin Guest

  3. #3

    Default Re: Error compiling the kernel...

    Hey - I don't see any errors in the make's output.

    to have a new kernel, you basically must:

    # cd /usr/src/linux
    # make clean
    # make menuconfig
    # make bzImage
    # make modules
    # make modules_install
    # cp arch/i386/boot/bzImage /boot/mylinux

    then edit lilo.conf and add:

    ----------------------------------------------------------------------------------------------------
    image=/boot/mylinux
    label="mylinux"
    read-only
    root=/dev/hda1 (or where your root partition is)
    ----------------------------------------------------------------------------------------------------

    then say:

    # lilo

    Then just reboot with your new kernel.

    If it doesn't boot, like Mr. Martin said in the previous post, maybe you
    will have to upgrade gcc and maybe other libs as well.



    Good luck!

    Artemio Guest

  4. #4

    Default Re: Error compiling the kernel...

    Sumedh Takbhate wrote:
    > I am trying to upgrade my kernel from 2.2.20.
    > I have downloaded the latest stable kernel release i.e. 2.4.21. I
    .... i saw nothing rwong with the output - i even CNP to nedit
    and did a search of error and warning and only got YOUR references.
    what leads you to believe there are errors?

    --
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
    Michael J. Tobler: motorcyclist, surfer, # Black holes result
    skydiver, and author: "Inside Linux", # when God divides the
    "C++ HowTo", "C++ Unleashed" # universe by zero

    mjt Guest

  5. #5

    Default Re: Error compiling the kernel...

    Hey guys,
    Thank you very much for helping me out....it turns out to be that
    there was no error.....I thought there would be, coz one time before
    this I got a kernel panic while booting up with the new kernel image,
    saying that
    the kernel was too big. But then I went through the whole process
    again, and rather than building everything into the kernel, I made
    some of the things to be modules.....this also solved my sound config
    problem :).
    Thanks again.
    -Sumedh Takbhate.
    Sumedh Takbhate Guest

Similar Threads

  1. compiling kernel for an old machine with a new one
    By vittorio in forum Linux Setup, Configuration & Administration
    Replies: 1
    Last Post: September 11th, 09:49 AM
  2. Kernel 2.6.0 compiling problems
    By Marino Fernandez in forum Debian
    Replies: 9
    Last Post: July 21st, 08:30 AM
  3. compiling the kernel with GCC 3.3
    By Raffaele Sandrini in forum Debian
    Replies: 4
    Last Post: July 7th, 05:10 AM
  4. Compiling kernel with patches
    By Christophe Courtois in forum Debian
    Replies: 4
    Last Post: July 5th, 05:20 PM
  5. Trouble compiling 2.4.21 kernel
    By Travis Crump in forum Debian
    Replies: 3
    Last Post: June 30th, 02:10 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139