LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Errors when compiling kernel 2.6.23, cdrom.o and drivers/block/built-in.o (https://www.linuxquestions.org/questions/linux-newbie-8/errors-when-compiling-kernel-2-6-23-cdrom-o-and-drivers-block-built-in-o-899630/)

stanunruh 08-26-2011 10:35 AM

Errors when compiling kernel 2.6.23, cdrom.o and drivers/block/built-in.o
 
I am compiling a kernel (2.6.23) for the first time. I do the make menuconfig, and then make. The first time it compiled for quite awhile but then hung on
CC drivers/cdrom/cdrom.o

I restarted the system and now the compile aborts early after a message,
dsndomainname: applet not found
LS drivers/block/built-in.o
drivers/block/ub.o: file not recognized: File truncated
make[2]: *** [drivers/block/built-in.o] Error 1
make[1]: *** [drivers/block] Error 2
make: *** [drivers] Error 2

Does anyone have knowledge about these errors?

bentbrewer 08-26-2011 03:01 PM

The .o and .ko files are left over from the build that got hozed. You will need to run "make clean" to remove those files before you try to re-build the kernel. You may need to run "make mrproper" or some other distro specific command if you still have junk laying around causing build errors. If you are using modules, be sure to build those as well. I would suggest doing some distro specific research, there are lots of things that can go wrong or you could miss.

I haven't built my own kernel in at least five years but I remember it taking quite a long time for the build to complete. On my old PIII, I would run 'make' and go on vacation for a few days (j/k).

For more info see this site on kernel hacking - http://kernelnewbies.org/KernelHacking

EDDY1 08-26-2011 03:22 PM

What os are you compiling for as the kernel that you are compiling is quite old.

stanunruh 08-26-2011 03:56 PM

Thanks, bentb. I used make mrproper and got it to work.

Eddy1, not sure what you mean. It is Linux, 2.6.23, as stated above. It is a specially modified kernel provided by my PC104 board supplier to run my SVGAlib graphics. I don't have the option or need of updating. My only problem is the interrupt frequency needs to be set to 250 Hz instead of 100.


All times are GMT -5. The time now is 07:21 AM.