This is a discussion on Error compiling the kernel... within the Linux Operating System forums, part of the Unix Operating Systems category; --> Hi, I am trying to upgrade my kernel from 2.2.20. I have downloaded the latest stable kernel release i.e. ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 mpparse.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 trampoline.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 documents 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 documented. oh well, I hope I can eventually learn how to handle such errors. -Sumedh Takbhate |
| |||
| 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 "Documentation" 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 |
| |||
| 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! |
| |||
| 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 |
| ||||
| 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. |