+ -
当前位置:首页 → 问答吧 → CLFS在最后编译Kernel的时候LINUX_ARM_ARCH is not defined

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

时间:2007-07-11

来源:互联网

用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$

作者: tianna1121   发布时间: 2007-07-11

我也遇到类似的问题
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#

作者: gcc_asm   发布时间: 2009-03-19

这个问题是由于没有指定特定CPU类型导致的。
在 System Type 里的有些选项是系列性质的,选择后,必须还要指定特定的 Machine Type 或者
Processor Type 。 比如,指定 ARCH_S3C2410 并没有指定CPU类型,还要指定 Machine Type。

作者: tomsu   发布时间: 2009-07-18

cp arch/arm/configs/s3c2410_defconfig .config
然后再配置吧

作者: simdiak   发布时间: 2009-07-20