建立内核错误

内核编译和嵌入式产品的设计与开发
回复
warmbupt
帖子: 9
注册时间: 2008-01-11 23:56

建立内核错误

#1

帖子 warmbupt » 2008-01-12 0:01

gcc是3.3.2的,内核是2.6.12的,make menuconfig没有问题,但是到make zImage时出现下列问题,请高手指教:
SYMLINK include/asm-arm/arch -> include/asm-arm/arch-s3c2410
CC arch/arm/kernel/asm-offsets.s
In file included from include/asm/bitops.h:22,
from include/linux/bitops.h:77,
from include/linux/thread_info.h:20,
from include/linux/spinlock.h:12,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/system.h:314:2: #error SMP not supported
In file included from include/linux/spinlock.h:43,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/spinlock.h:5:2: #error SMP not supported on pre-ARMv6 CPUs
In file included from include/linux/spinlock.h:43,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/spinlock.h: In function `_raw_read_unlock':
include/asm/spinlock.h:147: error: `tmp' undeclared (first use in this function)
include/asm/spinlock.h:147: error: (Each undeclared identifier is reported only once
include/asm/spinlock.h:147: error: for each function it appears in.)
include/asm/spinlock.h:147: error: `tmp2' undeclared (first use in this function)
In file included from include/linux/spinlock.h:519,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/atomic.h:103:2: #error SMP not supported on pre-ARMv6 CPUs
In file included from include/linux/smp.h:19,
from include/linux/sched.h:26,
from arch/arm/kernel/asm-offsets.c:13:
include/asm/smp.h:18:26: asm/arch/smp.h: No such file or directory
make[1]: *** [arch/arm/kernel/asm-offsets.s] 错误 1
make: *** [arch/arm/kernel/asm-offsets.s] 错误 2
hjoywl
帖子: 74
注册时间: 2007-01-28 20:19
联系:

#2

帖子 hjoywl » 2008-03-17 0:51

顶起来,我的也有这样的问题,期待回复。
ps:ubuntu是不是不能编译内核啊?
murphy2008
帖子: 3
注册时间: 2008-11-11 10:13

Re: 建立内核错误

#3

帖子 murphy2008 » 2009-03-25 12:52

同样的问题啊,期待答复
回复