当前位置: 代码迷 >> 嵌入开发 >> 急大家帮小弟我看看啊错了很久了
  详细解决方案

急大家帮小弟我看看啊错了很久了

热度:6235   发布时间:2013-02-26 00:00:00.0
急!!~~大家帮我看看啊,错了很久了
我用的飞思卡尔的IMX21的板子,现在要移植2.6的内核上去,但是编译的时候在这里一直通不过,请大家帮忙看看,谢谢了
CHK include/linux/compile.h
AS arch/arm/kernel/head.o
arch/arm/kernel/head.S: Assembler messages:
arch/arm/kernel/head.S:267: Error: missing ')'
arch/arm/kernel/head.S:267: Error: missing ')'
arch/arm/kernel/head.S:267: Error: missing ')'
arch/arm/kernel/head.S:267: Error: garbage following instruction -- `ldr r4,=(((0xc0000000UL)+0x00008000)-0x4000)'
arch/arm/kernel/head.S:332: Error: missing ')'
arch/arm/kernel/head.S:332: Error: missing ')'
arch/arm/kernel/head.S:332: Error: garbage following instruction -- `orr r6,r7,#((0xc0000000UL)&0xff000000)'
arch/arm/kernel/head.S:333: Error: missing ')'
arch/arm/kernel/head.S:333: Error: missing ')'
arch/arm/kernel/head.S:333: Error: junk at end of line, first unrecognized character is `U'
arch/arm/kernel/head.S:334: Error: missing ')'
arch/arm/kernel/head.S:334: Error: missing ')'
arch/arm/kernel/head.S:334: Error: garbage following instruction -- `orr r6,r6,#((0xc0000000UL)&0x00f00000)'
make[1]: *** [arch/arm/kernel/head.o] Error 1
make: *** [arch/arm/kernel] Error 2


------解决方案--------------------------------------------------------
探讨
谢谢各位,我已经解决了,是编译器宏定义之间的不同造成的,呵呵,
老版本里是 #define PHYS_OFFSET UL(0xc0000000)
新版本是 #define PHYS_OFFSET (0xc0000000UL)
  相关解决方案