Cannot compile kernel due to bzImage error
I'm not a newbie at kernel compilation at all. I've compiled kernel more than 100 times (at least). I'm using Debian sid. My problem is the following: I want to compile 2.4.x kernel (I tried 2.4.25 2.4.27). I got the sources from the ftp.hu.kernel.org. I untarred them, made the config. I made it up to the "make dep" but the "make bzImage" failed. It says something about main.h error (I will include it soon, I am not at home right now).
So here is the error message:
"In file included from /usr/src/linux/include/linux/prefetch.h:13,
/usr/src/linux/include/asm/processor.h:75: error: array type has incomplete
In file included from /usr/src/linux/include/linux/sched.h:23,
/usr/src/linux/include/linux/smp.h:29: error: conflicting types for
/usr/src/linux/include/asm/smp.h:42: error: previous declaration of
'smp_send_reschedule' was here
In file included from /usr/src/linux/include/linux/unistd.h:9,
/usr/src/linux/include/asm/unistd.h:375: warning: conflicting types for
built-in function '_exit'
make: *** [init/main.o] Error 1"
I even tried to compile 2.6.5 kernel (of course with "make" instead of "make dep" and "make bzImage") but it failed too.
The strange thing is that I compiled the 2.4.25 kernel before on this system. The only change I made is that I made an apt-get dist-upgrade (since it used to be a woody). But I reinstalled the whole system from the very beginning (fdisk, etc...) and put a clear sid on the laptop. The result is the same. I'm not able to compile any of kernels despite that I'm using original "fresh" kernel-sources.
There might be some problem with the sid packages?
Any help is appreciated!
Last edited by zahoo; 07-20-2005 at 03:13 PM.