LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 4134|回复: 3

CLFS在最后编译Kernel的时候LINUX_ARM_ARCH is not defined

[复制链接]
发表于 2007-7-10 20:12:08 | 显示全部楼层 |阅读模式
用CLFS1.0.0做linux在arm上的移植,在Youbest大虾的帮助下比较顺利,但最后编译Kernel的时候总是提示"__LINUX_ARM_ARCH__"  is not defined,就完全不知道是怎么回事的了,大家有建议么,谢谢!!!

clfs:/mnt/clfs/sources/linux-2.6.20.1$ make ARCH=arm CROSS_COMPILE=${CLFS_TARGET}-  CHK     include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
  CHK     include/linux/utsrelease.h
  CC      arch/arm/kernel/asm-offsets.s
In file included from include/linux/irqflags.h:46,
                 from include/asm/system.h:76,
                 from include/asm/bitops.h:23,
                 from include/linux/bitops.h:9,
                 from include/linux/thread_info.h:20,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:49,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:46,
                 from arch/arm/kernel/asm-offsets.c:13:
include/asm/irqflags.h:11:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/asm/bitops.h:23,
                 from include/linux/bitops.h:9,
                 from include/linux/thread_info.h:20,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:49,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:46,
                 from arch/arm/kernel/asm-offsets.c:13:
include/asm/system.h:189:5: warning: "__LINUX_ARM_ARCH__" is not defined
include/asm/system.h:195:5: warning: "__LINUX_ARM_ARCH__" is not defined
include/asm/system.h:278:5: warning: "__LINUX_ARM_ARCH__" is not defined
include/asm/system.h:283:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/bitops.h:9,
                 from include/linux/thread_info.h:20,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:49,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:46,
                 from arch/arm/kernel/asm-offsets.c:13:
include/asm/bitops.h:233:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/asm/thread_info.h:16,
                 from include/linux/thread_info.h:21,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:49,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:46,
                 from arch/arm/kernel/asm-offsets.c:13:
include/asm/fpstate.h:28:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/spinlock.h:274,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:46,
                 from arch/arm/kernel/asm-offsets.c:13:
include/asm/atomic.h:24:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/jiffies.h:4,
                 from include/linux/sched.h:51,
                 from arch/arm/kernel/asm-offsets.c:13:
include/linux/calc64.h: In function 'do_div_llr':
include/linux/calc64.h:25: error: '__LINUX_ARM_ARCH__' undeclared (first use in this function)
include/linux/calc64.h:25: error: (Each undeclared identifier is reported only once
include/linux/calc64.h:25: error: for each function it appears in.)
In file included from include/linux/sched.h:51,
                 from arch/arm/kernel/asm-offsets.c:13:
include/linux/jiffies.h: In function 'jiffies_64_to_clock_t':
include/linux/jiffies.h:432: error: '__LINUX_ARM_ARCH__' undeclared (first use in this function)
include/linux/jiffies.h: In function 'nsec_to_clock_t':
include/linux/jiffies.h:448: error: '__LINUX_ARM_ARCH__' undeclared (first use in this function)
In file included from include/linux/prefetch.h:14,
                 from include/linux/list.h:8,
                 from include/linux/wait.h:22,
                 from include/asm/semaphore.h:9,
                 from include/linux/sched.h:59,
                 from arch/arm/kernel/asm-offsets.c:13:
include/asm/processor.h:103:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/asm/semaphore.h:13,
                 from include/linux/sched.h:59,
                 from arch/arm/kernel/asm-offsets.c:13:
include/asm/locks.h:15:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/asm/page.h:32,
                 from include/linux/sched.h:60,
                 from arch/arm/kernel/asm-offsets.c:13:
include/asm/glue.h:110:2: error: #error Unknown data abort handler type
In file included from include/linux/sched.h:60,
                 from arch/arm/kernel/asm-offsets.c:13:
include/asm/page.h:106:2: error: #error Unknown user operations model
In file included from include/linux/sched.h:62,
                 from arch/arm/kernel/asm-offsets.c:13:
include/asm/mmu.h:7:5: warning: "__LINUX_ARM_ARCH__" is not defined
include/asm/mmu.h:13:5: warning: "__LINUX_ARM_ARCH__" is not defined
arch/arm/kernel/asm-offsets.c:88:5: warning: "__LINUX_ARM_ARCH__" is not defined
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
clfs:/mnt/clfs/sources/linux-2.6.20.1$
发表于 2009-3-19 17:39:05 | 显示全部楼层
我也遇到类似的问题
  CHK     include/linux/version.h
make[1]: “include/asm-arm/mach-types.h”是最新的。
  CHK     include/linux/utsrelease.h
  CALL    scripts/checksyscalls.sh
<stdin>:1097:2: warning: #warning syscall fadvise64 not implemented
<stdin>:1265:2: warning: #warning syscall migrate_pages not implemented
<stdin>:1321:2: warning: #warning syscall pselect6 not implemented
<stdin>:1325:2: warning: #warning syscall ppoll not implemented
<stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
<stdin>:1377:2: warning: #warning syscall timerfd_create not implemented
<stdin>:1389:2: warning: #warning syscall timerfd_settime not implemented
<stdin>:1393:2: warning: #warning syscall timerfd_gettime not implemented
  CC      init/main.o
In file included from include/linux/prefetch.h:14,
                 from include/linux/list.h:8,
                 from include/linux/module.h:9,
                 from init/main.c:13:
include/asm/processor.h:109:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/irqflags.h:46,
                 from include/asm/system.h:82,
                 from include/linux/list.h:9,
                 from include/linux/module.h:9,
                 from init/main.c:13:
include/asm/irqflags.h:11:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/list.h:9,
                 from include/linux/module.h:9,
                 from init/main.c:13:
include/asm/system.h:169:5: warning: "__LINUX_ARM_ARCH__" is not defined
include/asm/system.h:175:5: warning: "__LINUX_ARM_ARCH__" is not defined
include/asm/system.h:179:35: warning: "__LINUX_ARM_ARCH__" is not defined
include/asm/system.h:299:5: warning: "__LINUX_ARM_ARCH__" is not defined
include/asm/system.h:304:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/bitops.h:17,
                 from include/linux/kernel.h:15,
                 from include/linux/cache.h:4,
                 from include/linux/time.h:7,
                 from include/linux/stat.h:60,
                 from include/linux/module.h:10,
                 from init/main.c:13:
include/asm/bitops.h:237:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/asm/thread_info.h:16,
                 from include/linux/thread_info.h:35,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:49,
                 from include/linux/seqlock.h:29,
                 from include/linux/time.h:8,
                 from include/linux/stat.h:60,
                 from include/linux/module.h:10,
                 from init/main.c:13:
include/asm/fpstate.h:32:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/spinlock.h:339,
                 from include/linux/seqlock.h:29,
                 from include/linux/time.h:8,
                 from include/linux/stat.h:60,
                 from include/linux/module.h:10,
                 from init/main.c:13:
include/asm/atomic.h:25:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/asm/semaphore.h:13,
                 from include/linux/fs.h:292,
                 from include/linux/proc_fs.h:5,
                 from init/main.c:14:
include/asm/locks.h:15:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/asm/cacheflush.h:16,
                 from include/linux/highmem.h:8,
                 from include/linux/pagemap.h:10,
                 from include/linux/buffer_head.h:13,
                 from init/main.c:53:
include/asm/glue.h:127:2: #error Unknown data abort handler type
In file included from include/linux/highmem.h:8,
                 from include/linux/pagemap.h:10,
                 from include/linux/buffer_head.h:13,
                 from init/main.c:53:
include/asm/cacheflush.h:138:2: #error Unknown cache maintainence model
make[1]: *** [init/main.o] 错误 1
make: *** [init] 错误 2
root:/sources/uClinux-dist/linux-2.6.x#
回复 支持 反对

使用道具 举报

发表于 2009-7-18 18:48:04 | 显示全部楼层
这个问题是由于没有指定特定CPU类型导致的。
在 System Type 里的有些选项是系列性质的,选择后,必须还要指定特定的 Machine Type 或者
Processor Type 。 比如,指定 ARCH_S3C2410 并没有指定CPU类型,还要指定 Machine Type。
回复 支持 反对

使用道具 举报

发表于 2009-7-20 10:53:19 | 显示全部楼层
cp arch/arm/configs/s3c2410_defconfig .config
然后再配置吧
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表