페도라8 에서 커널 2.6.6 컴파일..
예전 버전이 좀 필요해서 컴파일 하는데 이 에러를 잡질 못하겟습니다.. 뭐가 문제일까요 ? ㅠㅠ
[root@localhost linux-2.6.6]# make
CC arch/i386/kernel/asm-offsets.s
In file included from include/asm/thread_info.h:16,
from include/linux/thread_info.h:21,
from include/linux/spinlock.h:12,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from arch/i386/kernel/asm-offsets.c:7:
include/asm/processor.h:86: error: array type has incomplete element type
In file included from include/asm/mpspec.h:5,
from include/asm/smp.h:18,
from include/linux/smp.h:17,
from include/linux/sched.h:23,
from arch/i386/kernel/asm-offsets.c:7:
include/asm/mpspec_def.h:77: warning: 'packed' attribute ignored for field of ty pe 'unsigned char[6]'
make[1]: *** [arch/i386/kernel/asm-offsets.s] ?? 1
make: *** [arch/i386/kernel/asm-offsets.s] 오류 2
[root@localhost linux-2.6.6]#
GCC 버전
GCC 버전을 낮춰보세요. 커널 2.6.6은 GCC 4보다 이전에 나왔기 때문에 GCC 4로 컴파일하려고 하면 에러가 날 것입니다.
커널 버그질라의 관련 버그입니다.
http://bugzilla.kernel.org/show_bug.cgi?id=5478
댓글 달기