Chinaunix首页 | 论坛 | 博客
  • 博客访问: 389024
  • 博文数量: 107
  • 博客积分: 2536
  • 博客等级: 少校
  • 技术积分: 781
  • 用 户 组: 普通用户
  • 注册时间: 2009-06-14 15:19
文章分类

全部博文(107)

文章存档

2017年(11)

2016年(8)

2015年(14)

2014年(32)

2012年(1)

2011年(1)

2010年(7)

2009年(33)

我的朋友

分类: LINUX

2009-07-10 11:24:42

#make menuconfig
#make zImage
  CHK     include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
  CC      arch/arm/kernel/asm-offsets.s
In file included from include/asm/system.h:5,
                 from include/asm/processor.h:18,
                 from include/asm/thread_info.h:17,
                 from include/linux/thread_info.h:21,
                 from include/linux/preempt.h:10,
                 from include/linux/spinlock.h:50,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:7,
                 from arch/arm/kernel/asm-offsets.c:13:
include/linux/kernel.h:95: warning: `regparm' attribute directive ignored
include/linux/kernel.h:132: warning: `regparm' attribute directive ignored
include/linux/kernel.h:134: warning: `regparm' attribute directive ignored
In file included from include/asm/processor.h:18,
                 from include/asm/thread_info.h:17,
                 from include/linux/thread_info.h:21,
                 from include/linux/preempt.h:10,
                 from include/linux/spinlock.h:50,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:7,
                 from arch/arm/kernel/asm-offsets.c:13:
include/asm/system.h:13: warning: `regparm' attribute directive ignored
In file included from include/asm/thread_info.h:17,
                 from include/linux/thread_info.h:21,
                 from include/linux/preempt.h:10,
                 from include/linux/spinlock.h:50,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:7,
                 from arch/arm/kernel/asm-offsets.c:13:
include/asm/processor.h:73: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
include/asm/processor.h:73: error: requested alignment is not a constant
In file included from include/linux/thread_info.h:21,
                 from include/linux/preempt.h:10,
                 from include/linux/spinlock.h:50,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:7,
                 from arch/arm/kernel/asm-offsets.c:13:
include/asm/thread_info.h:96: error: invalid register name for 'current_stack_pointer'
In file included from include/linux/capability.h:45,
                 from include/linux/sched.h:7,
                 from arch/arm/kernel/asm-offsets.c:13:
include/linux/spinlock.h:81: warning: `regparm' attribute directive ignored
In file included from include/linux/sched.h:12,
                 from arch/arm/kernel/asm-offsets.c:13:
include/linux/jiffies.h:18:5: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:20:7: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:22:7: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:24:7: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:26:7: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:28:7: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:30:7: warning: "CONFIG_HZ" is not defined
include/linux/jiffies.h:33:3: #error You lose.

。。。。。。。。。。。

In file included from include/linux/fs.h:220,
                 from include/linux/mm.h:16,
                 from arch/arm/kernel/asm-offsets.c:14:
include/linux/mutex.h:94: warning: `regparm' attribute directive ignored
include/linux/mutex.h:103: warning: `regparm' attribute directive ignored
include/linux/mutex.h:111: warning: `regparm' attribute directive ignored
include/linux/mutex.h:112: warning: `regparm' attribute directive ignored
include/linux/mutex.h:117: warning: `regparm' attribute directive ignored
include/linux/mutex.h:118: warning: `regparm' attribute directive ignored
In file included from arch/arm/kernel/asm-offsets.c:14:
include/linux/mm.h:319: warning: `regparm' attribute directive ignored
include/linux/mm.h: In function `lowmem_page_address':
include/linux/mm.h:517: error: `CONFIG_PAGE_OFFSET' undeclared (first use in this function)
include/linux/mm.h: At top level:
include/linux/mm.h:760: warning: `regparm' attribute directive ignored
include/linux/mm.h:791: warning: `regparm' attribute directive ignored
arch/arm/kernel/asm-offsets.c:15:27: asm/mach/arch.h: No such file or directory
arch/arm/kernel/asm-offsets.c:17:24: asm/memory.h: No such file or directory
arch/arm/kernel/asm-offsets.c: In function `main':
arch/arm/kernel/asm-offsets.c:54: error: structure has no member named `cpu_domain'
arch/arm/kernel/asm-offsets.c:55: error: structure has no member named `cpu_context'
arch/arm/kernel/asm-offsets.c:56: error: structure has no member named `used_cp'
arch/arm/kernel/asm-offsets.c:57: error: structure has no member named `tp_value'
arch/arm/kernel/asm-offsets.c:58: error: structure has no member named `fpstate'
arch/arm/kernel/asm-offsets.c:59: error: structure has no member named `vfpstate'
arch/arm/kernel/asm-offsets.c:64: error: structure has no member named `ARM_r0'
arch/arm/kernel/asm-offsets.c:65: error: structure has no member named `ARM_r1'
arch/arm/kernel/asm-offsets.c:66: error: structure has no member named `ARM_r2'
arch/arm/kernel/asm-offsets.c:67: error: structure has no member named `ARM_r3'
arch/arm/kernel/asm-offsets.c:68: error: structure has no member named `ARM_r4'
arch/arm/kernel/asm-offsets.c:69: error: structure has no member named `ARM_r5'
arch/arm/kernel/asm-offsets.c:70: error: structure has no member named `ARM_r6'
arch/arm/kernel/asm-offsets.c:71: error: structure has no member named `ARM_r7'
arch/arm/kernel/asm-offsets.c:72: error: structure has no member named `ARM_r8'
arch/arm/kernel/asm-offsets.c:73: error: structure has no member named `ARM_r9'
arch/arm/kernel/asm-offsets.c:74: error: structure has no member named `ARM_r10'
arch/arm/kernel/asm-offsets.c:75: error: structure has no member named `ARM_fp'
arch/arm/kernel/asm-offsets.c:76: error: structure has no member named `ARM_ip'
arch/arm/kernel/asm-offsets.c:77: error: structure has no member named `ARM_sp'
arch/arm/kernel/asm-offsets.c:78: error: structure has no member named `ARM_lr'
arch/arm/kernel/asm-offsets.c:79: error: structure has no member named `ARM_pc'
arch/arm/kernel/asm-offsets.c:80: error: structure has no member named `ARM_cpsr'
arch/arm/kernel/asm-offsets.c:81: error: structure has no member named `ARM_ORIG_r0'
arch/arm/kernel/asm-offsets.c:97: error: invalid application of `sizeof' to incomplete type `machine_desc'
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2


解决方法:
    将include下的链接文件asm改为链接到asm-arm(默认是链接到asm-i386).
    其实本是个很没营养的错误,但是却很容易犯。。。

阅读(2417) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~