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
建立内核错误
-
- 帖子: 3
- 注册时间: 2008-11-11 10:13
Re: 建立内核错误
同样的问题啊,期待答复