I am running the latest version of woody. I can compile 2.4.0 no problem. I ran the following:
make xconfig make-kpkg clean make-kpkg --revision=rblack.1.1 kernel_image My gcc version is 2.95.3... and all the other packages meet or exceed the necessary versions given in /usr/src/linux/Documentation/Changes The line that seems to be causing the problem is: #define PADDING 22 - 3 * sizeof(long) - sizeof(int)+ sizeof(short) */ especially the use of sizeof in the construct: #define PADDING 22 + sizeof(short) - 3 * sizeof(long) - sizeof(int) #if PADDING > 0 char _f[PADDING]; /* Padding: libc5 uses this.. */ #endif #undef PADDING In 2.4.0, this this was not used...rather the single line: char _f[20-2*sizeof(long)-sizeof(int)]; /* Padding: libc5 uses this.. */ was used. I am going to try using this line with similar values to the above...any idea if this will work? Richard Jason P Holland wrote: > What version of gcc are you running? what steps have you taken? Did you do > a make mrproper menuconfig dep clean bzImage modules?? I've compiled the > 2.4 series on potato and woody and never seen this. Have you upgraded all > the necessary packages mentioned in /usr/src/linux/Documentation/Changes?? > > Jason > > > > > Hi all > > > > I'm trying to compile the latest kernel, and am getting a > > compile error: > > > > > > > > gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.1/include -Wall > > -Wstrict-prototypes -O2 -fomit-frame-pointer > > -fno-strict-aliasing -pipe > > -mpreferred-stack-boundary=2 -march=i686 -c -o init/main.o > > init/main.c > > > > In file included from > > /usr/src/kernel-source-2.4.1/include/linux/wait.h:13, > > from > > /usr/src/kernel-source-2.4.1/include/linux/fs.h:12, > > from > > /usr/src/kernel-source-2.4.1/include/linux/capability.h:17, > > from > > /usr/src/kernel-source-2.4.1/include/linux/binfmts.h:5, > > from > > /usr/src/kernel-source-2.4.1/include/linux/sched.h:9, > > from > > /usr/src/kernel-source-2.4.1/include/linux/mm.h:4, > > > > from > > /usr/src/kernel-source-2.4.1/include/linux/slab.h:14, > > from > > /usr/src/kernel-source-2.4.1/include/linux/malloc.h:4, > > from > > /usr/src/kernel-source-2.4.1/include/linux/proc_fs.h:5, > > from init/main.c:15: > > /usr/src/kernel-source-2.4.1/include/linux/kernel.h:131: parse error > > make[1]: *** [init/main.o] Error 1 > > make[1]: Leaving directory `/usr/src/kernel-source-2.4.1' > > make: *** [stamp-build] Error 2 > > > > > > has anyone else had this problem? > > > > Richard > > ÿôèPÔ? ? > > ÿzf¢-Úy¸sYû¬z¿ëz«?²ßåSËlý×>?©ÿ¢¸0SØZ²æãyËhû§²æìr¸>{ÿÓ®<>*ï > > ¢{ZrÙb²Ùs²×«þX¬¶ÏÝy¸sYú+ > > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
begin:vcard n:Black;Richard tel;fax:416-971-4159 tel;home: tel;work:416-217-4350 x-mozilla-html:TRUE org:Algorithmics Inc adr:;;185 Spadina Avenue;Toronto;Ontario;M5T 2C6;Canada version:2.1 email;internet:[EMAIL PROTECTED] title:Financial Engineer x-mozilla-cpt:;-18400 fn:Richard Black end:vcard