Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compiling regular unpatched linux-2.4 kernel always fails!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
lateralus01
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jan 2008
Posts: 86

PostPosted: Tue Apr 22, 2008 9:00 pm    Post subject: Compiling regular unpatched linux-2.4 kernel always fails! Reply with quote

I've downloaded several versions of 2.4 kernels and every time I try to compile one they always fail. Basically, I'm cross compiling so this kernel will be able to run on an xbox. I made a 3 Gig file and unpacked a stage1 tarball and chrooted into the system. I set up the CFLAGS in /etc/make.conf so they are compatible with an xbox and I bootstrapped and ran emerge system so everything works there.

The next step is for me to compile a kernel. My xbox version is a 1.6 and they will not boot 2.6 kernels so I have to use 2.4s.

So here's what I did:

I downloaded a regular 2.4.32 kernel from kernel.org
I downloaded a 2.4.32 xbox kernel patch from sourceforge
I unpacked the kernel in /usr/src and made the 'linux' softlink
Then I unextracted the kernel patch and placed it in /usr/src/linux
I applied the patch, but the kernel fails to compile weather I've applied it or not
I run:
Code:

make menuconfig
make dep
make clean


No errors there so I run "make bzImage" and it always fails!
Here's what I get when I just try to compile the kernel without applying the patch and without changing any options when i run make menuconfig:
Code:

Gentoo linux # make bzImage
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include scripts/split-include.c
scripts/split-include include/linux/autoconf.h include/config
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/kernel.h:15,
                 from /usr/src/linux-2.4.32/include/linux/wait.h:13,
                 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/byteorder.h:14: warning: type qualifiers ignored on function return type
/usr/src/linux-2.4.32/include/asm/byteorder.h:30: warning: type qualifiers ignored on function return type
In file included from /usr/src/linux-2.4.32/include/linux/byteorder/little_endian.h:11,
                 from /usr/src/linux-2.4.32/include/asm/byteorder.h:65,
                 from /usr/src/linux-2.4.32/include/linux/kernel.h:15,
                 from /usr/src/linux-2.4.32/include/linux/wait.h:13,
                 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/linux/byteorder/swab.h:160: warning: type qualifiers ignored on function return type
/usr/src/linux-2.4.32/include/linux/byteorder/swab.h:173: warning: type qualifiers ignored on function return type
/usr/src/linux-2.4.32/include/linux/byteorder/swab.h:186: warning: type qualifiers ignored on function return type
/usr/src/linux-2.4.32/include/linux/byteorder/swab.h:200: warning: type qualifiers ignored on function return type
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]'
In file included from init/main.c:20:
/usr/src/linux-2.4.32/include/linux/delay.h: In function 'msleep':
/usr/src/linux-2.4.32/include/linux/delay.h:77: warning: value computed is not used
/usr/src/linux-2.4.32/include/linux/delay.h: In function 'ssleep':
/usr/src/linux-2.4.32/include/linux/delay.h:83: warning: value computed is not used
make: *** [init/main.o] Error 1


I just can't seem to get any kernel to compile! Can anyone help me?

Thanks,
Lateralus01
Back to top
View user's profile Send private message
The Unknown
Guru
Guru


Joined: 28 Feb 2007
Posts: 335
Location: Minnesota, U.S.A

PostPosted: Tue Apr 22, 2008 9:31 pm    Post subject: Reply with quote

Try running the usual
Code:
cd /usr/src/linux
make clean && make && make modules_install

Then copy over your bzImage to where ever your going to put it.
_________________
Doing what you like is freedom.
Liking what you do is happiness.
Back to top
View user's profile Send private message
lateralus01
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jan 2008
Posts: 86

PostPosted: Wed Apr 23, 2008 12:09 am    Post subject: Reply with quote

The Unknown wrote:
Try running the usual
Code:
cd /usr/src/linux
make clean && make && make modules_install

Then copy over your bzImage to where ever your going to put it.


more errors....
Back to top
View user's profile Send private message
Desintegr
l33t
l33t


Joined: 25 Mar 2004
Posts: 863
Location: France - Orléans

PostPosted: Wed Apr 23, 2008 7:39 am    Post subject: Reply with quote

Did you try with a 2.4.36.3 kernel ?
_________________
Gentoo ~AMD64
Hoc Volo, Sic Jubeo !
Mon wiki : http://desintegr.free.fr
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum