Results 1 to 3 of 3
Hi, I am new to linux and I am using ubuntu (kernel version: 2.6.27-7-generic) at the moment. I want to recomile the kernel to 2.4.32. But when i try the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-06-2009 #1Just Joined!
- Join Date
- Mar 2009
- Posts
- 3
need help with make bzImage
Hi, I am new to linux and I am using ubuntu (kernel version: 2.6.27-7-generic) at the moment. I want to recomile the kernel to 2.4.32. But when i try the command 'make bzImage' i get the following error. Can someone please help me with this. Thanks in advance.
Code:root@hasantha-laptop:/usr/src/linux-2.4.32# make bzImage gcc -D__KERNEL__ -I/usr/src/linux-2.4.32/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -fno-unit-at-a-time -DKBUILD_BASENAME=main -c -o init/main.o init/main.c In file included from /usr/src/linux-2.4.32/include/linux/prefetch.h:13, from /usr/src/linux-2.4.32/include/linux/list.h:6, from /usr/src/linux-2.4.32/include/linux/wait.h:14, from /usr/src/linux-2.4.32/include/linux/fs.h:12, from /usr/src/linux-2.4.32/include/linux/capability.h:17, from /usr/src/linux-2.4.32/include/linux/binfmts.h:5, from /usr/src/linux-2.4.32/include/linux/sched.h:9, from /usr/src/linux-2.4.32/include/linux/mm.h:4, from /usr/src/linux-2.4.32/include/linux/slab.h:14, from /usr/src/linux-2.4.32/include/linux/proc_fs.h:5, from init/main.c:15: /usr/src/linux-2.4.32/include/asm/processor.h:75: error: array type has incomplete element type In file included from /usr/src/linux-2.4.32/include/linux/fs.h:322, from /usr/src/linux-2.4.32/include/linux/capability.h:17, from /usr/src/linux-2.4.32/include/linux/binfmts.h:5, from /usr/src/linux-2.4.32/include/linux/sched.h:9, from /usr/src/linux-2.4.32/include/linux/mm.h:4, from /usr/src/linux-2.4.32/include/linux/slab.h:14, from /usr/src/linux-2.4.32/include/linux/proc_fs.h:5, from init/main.c:15: /usr/src/linux-2.4.32/include/linux/ncp_fs_i.h:26: warning: âpackedâ attribute ignored for field of type â__u8â /usr/src/linux-2.4.32/include/linux/ncp_fs_i.h:27: warning: âpackedâ attribute ignored for field of type â__u8[6]â In file included from /usr/src/linux-2.4.32/include/linux/ncp_mount.h:12, from /usr/src/linux-2.4.32/include/linux/ncp_fs_sb.h:12, from /usr/src/linux-2.4.32/include/linux/fs.h:733, from /usr/src/linux-2.4.32/include/linux/capability.h:17, from /usr/src/linux-2.4.32/include/linux/binfmts.h:5, from /usr/src/linux-2.4.32/include/linux/sched.h:9, from /usr/src/linux-2.4.32/include/linux/mm.h:4, from /usr/src/linux-2.4.32/include/linux/slab.h:14, from /usr/src/linux-2.4.32/include/linux/proc_fs.h:5, from init/main.c:15: /usr/src/linux-2.4.32/include/linux/ncp.h:24: warning: âpackedâ attribute ignored for field of type â__u8â /usr/src/linux-2.4.32/include/linux/ncp.h:25: warning: âpackedâ attribute ignored for field of type â__u8â /usr/src/linux-2.4.32/include/linux/ncp.h:26: warning: âpackedâ attribute ignored for field of type â__u8â /usr/src/linux-2.4.32/include/linux/ncp.h:27: warning: âpackedâ attribute ignored for field of type â__u8â /usr/src/linux-2.4.32/include/linux/ncp.h:28: warning: âpackedâ attribute ignored for field of type â__u8â /usr/src/linux-2.4.32/include/linux/ncp.h:29: warning: âpackedâ attribute ignored for field of type â__u8[]â /usr/src/linux-2.4.32/include/linux/ncp.h:37: warning: âpackedâ attribute ignored for field of type â__u8â /usr/src/linux-2.4.32/include/linux/ncp.h:38: warning: âpackedâ attribute ignored for field of type â__u8â /usr/src/linux-2.4.32/include/linux/ncp.h:39: warning: âpackedâ attribute ignored for field of type â__u8â /usr/src/linux-2.4.32/include/linux/ncp.h:40: warning: âpackedâ attribute ignored for field of type â__u8â /usr/src/linux-2.4.32/include/linux/ncp.h:41: warning: âpackedâ attribute ignored for field of type â__u8â /usr/src/linux-2.4.32/include/linux/ncp.h:42: warning: âpackedâ attribute ignored for field of type â__u8â /usr/src/linux-2.4.32/include/linux/ncp.h:43: warning: âpackedâ attribute ignored for field of type â__u8[]â /usr/src/linux-2.4.32/include/linux/ncp.h:137: warning: âpackedâ attribute ignored for field of type â__u8â /usr/src/linux-2.4.32/include/linux/ncp.h:138: warning: âpackedâ attribute ignored for field of type â__u8[256]â /usr/src/linux-2.4.32/include/linux/ncp.h:174: warning: âpackedâ attribute ignored for field of type â__u8â In file included from /usr/src/linux-2.4.32/include/asm/smp.h:17, from /usr/src/linux-2.4.32/include/linux/smp.h:14, from /usr/src/linux-2.4.32/include/linux/sched.h:23, from /usr/src/linux-2.4.32/include/linux/mm.h:4, from /usr/src/linux-2.4.32/include/linux/slab.h:14, from /usr/src/linux-2.4.32/include/linux/proc_fs.h:5, from init/main.c:15: /usr/src/linux-2.4.32/include/asm/mpspec.h:87: warning: âpackedâ attribute ignored for field of type âunsigned char[6]â init/main.c: In function âstart_kernelâ: init/main.c:367: warning: format not a string literal and no format arguments make: *** [init/main.o] Error 1 root@hasantha-laptop:/usr/src/linux-2.4.32#
- 03-07-2009 #2Linux Newbie
- Join Date
- Feb 2009
- Location
- Third ring of Pergatory
- Posts
- 199

Wouldn't you like to slice and dice some text files or something? We got lots of really nice desktops, you wanna look at them for a while?...No....we're jumping right into the kernel, eh? Did you back up your data?
On line 75 of /usr/bippity/boppity/boo/processor.h the compiler thinks there is an array that wasn't completely defined before it was declared. Since it's really unlikely the kernel programmer did that, it's probably a missing or corrupt code page. You see it happening over an over in different files and then the wheels fall off the cart.Code:root@hasantha-laptop:/usr/src/linux-2.4.32# make bzImage ...[sr/src/linux-2.4.32/include/asm/processor.h:75: error: array type has incomplete element type
The accumulated affect of the error.Code:init/main.c:367: warning: format not a string literal and no format arguments make: *** [init/main.o] Error 1 root@hasantha-laptop:/usr/src/linux-2.4.32#
I'd start by making sure I summed the kernel download and got a clean package.
The I'd look at the kernel make script and see if the $PATH variable made sense on my system. Go through the script looking fororCode:#!
. After the symbols there is a path to a file name, or just a file name. It probably ends in an .h. See if those files exist. See if it's on the config $PATH.Code:#include
- 03-07-2009 #3Just Joined!
- Join Date
- Mar 2009
- Posts
- 1
Why on earth do you want to downgrade to 2.4.x kernel series?


Reply With Quote

