LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 10-15-2008, 12:14 PM   #1
aashwanth
LQ Newbie
 
Registered: Oct 2008
Posts: 3

Rep: Reputation: 0
problem with make bzImage


i tried to compile the kernel linux 2.4.19 in my fedora core 6 os. when i tried executing make bzImage command, i get an error as follows
gcc -D__KERNEL__ -I/usr/src/linux-2.4.19/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.19/include/linux/prefetch.h:13,
from /usr/src/linux-2.4.19/include/linux/list.h:6,
from /usr/src/linux-2.4.19/include/linux/wait.h:14,
from /usr/src/linux-2.4.19/include/linux/fs.h:12,
from /usr/src/linux-2.4.19/include/linux/capability.h:17,
from /usr/src/linux-2.4.19/include/linux/binfmts.h:5,
from /usr/src/linux-2.4.19/include/linux/sched.h:9,
from /usr/src/linux-2.4.19/include/linux/mm.h:4,
from /usr/src/linux-2.4.19/include/linux/slab.h:14,
from /usr/src/linux-2.4.19/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux-2.4.19/include/asm/processor.h:74: error: array type has incomplete element type
In file included from /usr/src/linux-2.4.19/include/linux/fs.h:201,
from /usr/src/linux-2.4.19/include/linux/capability.h:17,
from /usr/src/linux-2.4.19/include/linux/binfmts.h:5,
from /usr/src/linux-2.4.19/include/linux/sched.h:9,
from /usr/src/linux-2.4.19/include/linux/mm.h:4,
from /usr/src/linux-2.4.19/include/linux/slab.h:14,
from /usr/src/linux-2.4.19/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux-2.4.19/include/asm/byteorder.h:14: warning: type qualifiers ignored on function return type
/usr/src/linux-2.4.19/include/asm/byteorder.h:28: warning: type qualifiers ignored on function return type
In file included from /usr/src/linux-2.4.19/include/linux/byteorder/little_endian.h:11,
from /usr/src/linux-2.4.19/include/asm/byteorder.h:45,
from /usr/src/linux-2.4.19/include/linux/fs.h:201,
from /usr/src/linux-2.4.19/include/linux/capability.h:17,
from /usr/src/linux-2.4.19/include/linux/binfmts.h:5,
from /usr/src/linux-2.4.19/include/linux/sched.h:9,
from /usr/src/linux-2.4.19/include/linux/mm.h:4,
from /usr/src/linux-2.4.19/include/linux/slab.h:14,
from /usr/src/linux-2.4.19/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux-2.4.19/include/linux/byteorder/swab.h:132: warning: type qualifiers ignored on function return type
/usr/src/linux-2.4.19/include/linux/byteorder/swab.h:145: warning: type qualifiers ignored on function return type
/usr/src/linux-2.4.19/include/linux/byteorder/swab.h:159: warning: type qualifiers ignored on function return type
In file included from /usr/src/linux-2.4.19/include/linux/fs.h:317,
from /usr/src/linux-2.4.19/include/linux/capability.h:17,
from /usr/src/linux-2.4.19/include/linux/binfmts.h:5,
from /usr/src/linux-2.4.19/include/linux/sched.h:9,
from /usr/src/linux-2.4.19/include/linux/mm.h:4,
from /usr/src/linux-2.4.19/include/linux/slab.h:14,
from /usr/src/linux-2.4.19/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux-2.4.19/include/linux/ncp_fs_i.h:26: warning: ‘packed’ attribute ignored for field of type ‘__u8’
/usr/src/linux-2.4.19/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.19/include/linux/ncp_mount.h:12,
from /usr/src/linux-2.4.19/include/linux/ncp_fs_sb.h:12,
from /usr/src/linux-2.4.19/include/linux/fs.h:701,
from /usr/src/linux-2.4.19/include/linux/capability.h:17,
from /usr/src/linux-2.4.19/include/linux/binfmts.h:5,
from /usr/src/linux-2.4.19/include/linux/sched.h:9,
from /usr/src/linux-2.4.19/include/linux/mm.h:4,
from /usr/src/linux-2.4.19/include/linux/slab.h:14,
from /usr/src/linux-2.4.19/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux-2.4.19/include/linux/ncp.h:24: warning: ‘packed’ attribute ignored for field of type ‘__u8’
/usr/src/linux-2.4.19/include/linux/ncp.h:25: warning: ‘packed’ attribute ignored for field of type ‘__u8’
/usr/src/linux-2.4.19/include/linux/ncp.h:26: warning: ‘packed’ attribute ignored for field of type ‘__u8’
/usr/src/linux-2.4.19/include/linux/ncp.h:27: warning: ‘packed’ attribute ignored for field of type ‘__u8’
/usr/src/linux-2.4.19/include/linux/ncp.h:28: warning: ‘packed’ attribute ignored for field of type ‘__u8’
/usr/src/linux-2.4.19/include/linux/ncp.h:29: warning: ‘packed’ attribute ignored for field of type ‘__u8[]’
/usr/src/linux-2.4.19/include/linux/ncp.h:37: warning: ‘packed’ attribute ignored for field of type ‘__u8’
/usr/src/linux-2.4.19/include/linux/ncp.h:38: warning: ‘packed’ attribute ignored for field of type ‘__u8’
/usr/src/linux-2.4.19/include/linux/ncp.h:39: warning: ‘packed’ attribute ignored for field of type ‘__u8’
/usr/src/linux-2.4.19/include/linux/ncp.h:40: warning: ‘packed’ attribute ignored for field of type ‘__u8’
/usr/src/linux-2.4.19/include/linux/ncp.h:41: warning: ‘packed’ attribute ignored for field of type ‘__u8’
/usr/src/linux-2.4.19/include/linux/ncp.h:42: warning: ‘packed’ attribute ignored for field of type ‘__u8’
/usr/src/linux-2.4.19/include/linux/ncp.h:43: warning: ‘packed’ attribute ignored for field of type ‘__u8[]’
/usr/src/linux-2.4.19/include/linux/ncp.h:137: warning: ‘packed’ attribute ignored for field of type ‘__u8’
/usr/src/linux-2.4.19/include/linux/ncp.h:138: warning: ‘packed’ attribute ignored for field of type ‘__u8[256]’
/usr/src/linux-2.4.19/include/linux/ncp.h:174: warning: ‘packed’ attribute ignored for field of type ‘__u8’
In file included from /usr/src/linux-2.4.19/include/asm/smp.h:17,
from /usr/src/linux-2.4.19/include/linux/smp.h:14,
from /usr/src/linux-2.4.19/include/linux/sched.h:23,
from /usr/src/linux-2.4.19/include/linux/mm.h:4,
from /usr/src/linux-2.4.19/include/linux/slab.h:14,
from /usr/src/linux-2.4.19/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux-2.4.19/include/asm/mpspec.h:86: warning: ‘packed’ attribute ignored for field of type ‘unsigned char[6]’
In file included from /usr/src/linux-2.4.19/include/linux/sched.h:23,
from /usr/src/linux-2.4.19/include/linux/mm.h:4,
from /usr/src/linux-2.4.19/include/linux/slab.h:14,
from /usr/src/linux-2.4.19/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux-2.4.19/include/linux/smp.h:29: error: conflicting types for ‘smp_send_reschedule’
/usr/src/linux-2.4.19/include/asm/smp.h:65: error: previous declaration of ‘smp_send_reschedule’ was here
In file included from /usr/src/linux-2.4.19/include/linux/unistd.h:9,
from init/main.c:17:
/usr/src/linux-2.4.19/include/asm/unistd.h:365: warning: conflicting types for built-in function ‘_exit’
make: *** [init/main.o] Error 1

what must i do to rectify it?
 
Old 10-15-2008, 11:28 PM   #2
wired4fx
LQ Newbie
 
Registered: Sep 2008
Posts: 18

Rep: Reputation: 0
Make sure your cd to linux-2.4.19 before you start to configure the kernel...
 
Old 10-16-2008, 04:26 AM   #3
aashwanth
LQ Newbie
 
Registered: Oct 2008
Posts: 3

Original Poster
Rep: Reputation: 0
ya i was in that directory only,but no use!
 
Old 10-17-2008, 06:30 AM   #4
wired4fx
LQ Newbie
 
Registered: Sep 2008
Posts: 18

Rep: Reputation: 0
compile error

It's looking as if there are some header file conflicts. Did you get some of the kernel packages separately or all together? The variables are already defined by the time you get to that point. Did you run "Make clean" I believe it is? That should get rid of cached configure. If you can get to that point...let me do some more checking into that. Sorry I'm not more help
 
Old 10-17-2008, 06:31 AM   #5
wired4fx
LQ Newbie
 
Registered: Sep 2008
Posts: 18

Rep: Reputation: 0
compile error

Make that ./configure clean
 
Old 10-19-2008, 04:33 AM   #6
aashwanth
LQ Newbie
 
Registered: Oct 2008
Posts: 3

Original Poster
Rep: Reputation: 0
got the kernel package separately. tried make clean but evn that didn't help! any other ways to rectify it?
 
Old 10-22-2008, 10:42 AM   #7
wired4fx
LQ Newbie
 
Registered: Sep 2008
Posts: 18

Rep: Reputation: 0
Kernel

Let me see what I can find out...sorry about time, been very very busy
 
  


Reply


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
Having problem with 'make bzimage' during kernel compile beepee Linux - Kernel 2 11-21-2006 02:50 AM
make bzImage failure: make[1]: *** [init/version.o] Error 1 nmainak Linux - Kernel 2 07-16-2006 05:06 PM
Kernel compiling process problem. make bzimage fails. RJARRRPCGP Linux - Newbie 2 08-24-2004 04:14 PM
make dep,make clean,make bzImage problem Babba Linux - Newbie 2 01-08-2003 03:49 AM
make bzImage problem Trunks Linux - General 5 02-26-2001 01:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 10:21 PM.

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
Open Source Consulting | Domain Registration