Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kernel compilation error

I was trying to compile the Linux kernel.

I am getting the following error:-

"No rule to make target arch/x86/kernel/entry_32.o', needed byarch/x86/kernel/built-in.o'."

Before this I configured the kernel(didn't do anything extra except the default options). configured the kernel using "make gconfig". The config was generated. I am using x86 32 bit machine (Fedora 9) kernel version 2.6.30.

Finally I used :- "make bzImage" to compile.

Tried to search the net for a solution but without success. How to fix these errors?? Kindly help.

Thanks,

Sourabh

like image 430
sourabh jaiswal Avatar asked Mar 24 '26 23:03

sourabh jaiswal


2 Answers

You need to call make before make bzImage.

make clean or make mrproper would perhaps help too depending how much you screwed up already.

like image 66
leppie Avatar answered Mar 27 '26 11:03

leppie


I agree with the previous answer, you should take a look at how to compile a kernel, the fedora way (here). Not sure this is still up-to-date, but leveraging the provided tools is a good idea sometimes.

like image 28
LB40 Avatar answered Mar 27 '26 12:03

LB40



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!