一个开发板的样本驱动程序 用下面的编译参数直接编译,出现以下错误

szgnm   2007-6-14 11:02 楼主
[root@localhost turner]# arm-linux-gcc -D__KERNEL__
-I/opt/FriendlyARM/SBC2410/kernel/include -Wall -Wstrict-prototypes
-Wno-trigraphs -Os -mapcs -fno-strict-aliasing -fno-common
-fno-common -pipe -mapcs-32 -march=armv4 -mtune=arm9tdmi
-mshort-load-bytes -msoft-float -DMODULE -c -o sbc2410_led.o sbc2410_led.c

In file included from sbc2410_led.c:3:
/opt/FriendlyARM/SBC2410/kernel/include/linux/module.h:297: linux/version.h:
?????????
In file included from sbc2410_led.c:19:
/opt/FriendlyARM/SBC2410/kernel/include/linux/irq.h:69: asm/hw_irq.h:
?????????
In file included from
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/asm/hardware.h:16,
from sbc2410_led.c:23:
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/asm/arch/hardware.h:16:
asm/mach-types.h: ?????????
gpio.c:24: asm-arm/arch-s3c2410/s3c2410.h: ?????????
In file included from sbc2410_led.c:3:
/opt/FriendlyARM/SBC2410/kernel/include/linux/module.h:299: parse error
before `UTS_RELEASE'
等等。。。。。。
是什么原因?

回复评论

暂无评论,赶紧抢沙发吧
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 京公网安备 11010802033920号
    写回复