LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 03-06-2009, 03:35 PM   #1
naleen
LQ Newbie
 
Registered: Mar 2009
Posts: 6

Rep: Reputation: 0
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#
 
Old 03-06-2009, 04:06 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2 on Lenovo Thinkpad W520
Posts: 7,217

Rep: Reputation: 2299Reputation: 2299Reputation: 2299Reputation: 2299Reputation: 2299Reputation: 2299Reputation: 2299Reputation: 2299Reputation: 2299Reputation: 2299Reputation: 2299
Same as your other post, 2.4.32 is from 2005, so probably you'd better use another tool chain: downgrade gcc version etc. See advices about that in the README for your kernel.
 
Old 03-06-2009, 06:35 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

http://www.linuxquestions.org/questi...ommand-709128/
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
difference between make bzImage and make vmlinuz? veritas Linux - Newbie 3 11-23-2011 04:45 AM
make bzImage failure: make[1]: *** [init/version.o] Error 1 nmainak Linux - Kernel 2 07-16-2006 05:06 PM
make: **** No rule to make target 'bzImage tsw Slackware 18 06-26-2004 08:41 PM
'make mrproper' - make bzImage options. liguorir Linux - Software 4 06-26-2003 06:48 PM
make dep,make clean,make bzImage problem Babba Linux - Newbie 2 01-08-2003 03:49 AM


All times are GMT -5. The time now is 01:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration