linux 生成-o文件,急,linux驱动程序是对的为什么生成不了.o驱动程序文件

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

在.c文件和makefile文件都正确的情况下,为什么键入make命令之后却生成不了.o文件,还出现下面的东西

/usr/local/arm/2.95.3/bin/arm-linux-gcc -DMODULE -I/home/msy/kernel-h2410eb/include -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -mapcs -fno-strict-aliasing -fno-common -fno-common -pipe -mapcs-32 -march=armv4 -mtune=arm9tdmi -mshort-load-bytes -msoft-float -DKBUILD_BASENAME=in4 -c in4.c

In file included from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/linux/fs.h:660,

from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/linux/capability.h:17,

from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/linux/binfmts.h:5,

from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/linux/sched.h:9,

from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/linux/mm.h:4,

from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/linux/iobuf.h:11,

from in4.c:15:

/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/linux/udf_fs_sb.h:22: linux/version.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 in4.c:18:

/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: ?????????

in4.c:19: asm/arch/cpu_s3c2410.h: ?????????

In file included from in4.c:24:

/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/linux/module.h:261: linux/version.h: ?????????

In file included from in4.c:24:

/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/linux/module.h:263: parse error before `UTS_RELEASE'

in4.c: In function `in4w':

in4.c:50: `GPGDAT' undeclared (first use in this function)

in4.c:50: (Each undeclared identifier is reported only once

in4.c:50: for each function it appears in.)

in4.c:53: `GPFDAT' undeclared (first use in this function)

in4.c:48: warning: `i' might be used uninitialized in this function

in4.c: In function `in4_open':

in4.c:62: `GPGCON' undeclared (first use in this function)

in4.c:65: `GPFCON' undeclared (first use in this function)

in4.c: At top level:

in4.c:124: parse error before string constant

in4.c:124: warning: type defaults to `int' in declaration of `MODULE_LICENSE'

in4.c:124: warning: function declaration isn't a prototype

in4.c:124: warning: data definition has no type or storage class

make: *** [in4] Error 1

这到底是什么出现了问题啊

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值