데비안에서 커널 컴파일 문제 입니다.
JJooN:/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=i386 -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 init/main.c:74:
/usr/src/linux-2.4.32/include/asm/mpspec.h:87: warning: 'packed' attribute ignored for field of type 'unsigned char[6]'
make: *** [init/main.o] Error 1
make bzImage 를 실행하면 위와 같은 에러가 나오면서 이미지가 생성이 안됩니다.
menuconfig를 잘못한거 같은데 어느부분을 수정해야 할지 도저히 모르겠습니다.
답변 주시면 감사하겠습니다.
댓글 달기