On Fri, Jul 08, 2005 at 12:11:55PM +0530, Rahul T wrote: > I am compiling kernel 2.4.20 on a m/c already having 2.6.10 > > after make dep and make bzImage, i get the fol. error > > > root@ubuntu:/usr/src/linux-2.4.25 # make bzImage > gcc -D__KERNEL__ -I/usr/src/linux-2.4.25/include -Wall > -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing > -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 > -march=i686 -DKBUILD_BASENAME=main -c -o init/main.o init/main.c > In file included from /usr/src/linux-2.4.25/include/linux/kernel.h:15, > from /usr/src/linux-2.4.25/include/linux/wait.h:13, > from /usr/src/linux-2.4.25/include/linux/fs.h:12, > from /usr/src/linux-2.4.25/include/linux/capability.h:17, > from /usr/src/linux-2.4.25/include/linux/binfmts.h:5, > from /usr/src/linux-2.4.25/include/linux/sched.h:9, > from /usr/src/linux-2.4.25/include/linux/mm.h:4, > from /usr/src/linux-2.4.25/include/linux/slab.h:14, > from /usr/src/linux-2.4.25/include/linux/proc_fs.h:5, > from init/main.c:15: > /usr/src/linux-2.4.25/include/asm/byteorder.h:14: warning: type > qualifiers ignored on function return type I guess your GCC version is too new for linux-2.4.20. Try a later kernel (2.4.31 or so), or an older GCC (2.95.x should do). Erik -- Erik Mouw J.A.K.Mouw@xxxxxxxxxxxxxx mouw@xxxxxxxxxxxx
Attachment:
signature.asc
Description: Digital signature