LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Linux 2.4 Kernel Compiling Error: no rule to made head.o (https://www.linuxquestions.org/questions/linux-general-1/linux-2-4-kernel-compiling-error-no-rule-to-made-head-o-369119/)

KneeLess 10-02-2005 02:54 PM

Linux 2.4 Kernel Compiling Error: no rule to made head.o
 
Hey everyone, compiling 2.4.31 on a new debian sarge install. Here's what happens:
Code:

$ export CC=/usr/bin/gcc-3.3
$ make -e deps
Works fine.
$ make -e bzImage modules

Goes fine until this:
Code:

gzip -f -9 < $tmppiggy > $tmppiggy.gz; \
echo "SECTIONS { .data : { input_len = .; LONG(input_data_end - input_data) input_data = .; *(.data) input_data_end = .; }}" > $tmppiggy.lnk; \
ld -m elf_i386 -r -o piggy.o -b binary $tmppiggy.gz -b elf32-i386 -T $tmppiggy.lnk; \
rm -f $tmppiggy $tmppiggy.gz $tmppiggy.lnk
make[2]: *** No rule to make target `arch/i386/kernel/head.o', needed by `bvmlinux'.  Stop.
make[2]: Leaving directory `/home/sean/kernel/linux-2.4.31/arch/i386/boot/compressed'
make[1]: *** [compressed/bvmlinux] Error 2
make[1]: Leaving directory `/home/sean/kernel/linux-2.4.31/arch/i386/boot'
make: *** [bzImage] Error 2
$

What should I do?

nixcraft 10-03-2005 09:10 AM

I hope you have configured the kernel, here is what I did other day on my home computer:

Code:

make menuconfig
or
make oldconfig
make mrproper
make
make modules
make modules_install
make install


KneeLess 10-03-2005 09:54 PM

Yes, I make menuconfig'd to my specifications.


All times are GMT -5. The time now is 09:35 AM.