打印

ARM2200的uCLinux系统配置,编译内核时遇到的问题

[复制链接]
1461|2
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
letfly|  楼主 | 2009-9-25 18:16 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
按照实验指导书所给的步骤,打上了lpc2200的补丁之后要进行uCLinux和文件系统的配置,首先要通过文本菜单方式配置uCLinux:
make menuconfig
这一步执行的没有任何问题,设置了处理器型号,内核版本和函数库版本就行了,然后就是建立源代码之间的依赖关系:
make dep
这一步也没有任何问题,关键在下一步,编译内核:
make
执行这个命令后本应该在终端所在目录生成两个文件系统目录的,结果出错了,提示是:
arm-elf-gcc -D__KERNEL__ -I/usr/src/uClinux-dist/linux-2.4.x/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fno-common -pipe -fno-builtin -D__linux__ -g -DNO_MM -mapcs-32 -mtune=arm7tdmi -mshort-load-bytes -msoft-float -nostdinc -iwithprefix include -DKBUILD_BASENAME=io -c -o io.o io.c
io.c:35: parse error before `('
io.c:39: warning: type defaults to `int' in declaration of `__v'
io.c:39: warning: data definition has no type or storage class
io.c:39: parse error before `}'
io.c:42: parse error before `('
io.c:47: warning: type defaults to `int' in declaration of `__v'
io.c:47: warning: data definition has no type or storage class
io.c:47: parse error before `}'
io.c:50: parse error before `('
io.c:54: warning: type defaults to `int' in declaration of `__v'
io.c:54: warning: data definition has no type or storage class
io.c:54: parse error before `}'
io.c:57: parse error before `('
io.c:65: parse error before `('
io.c:73: parse error before `('
make[3]: *** [io.o] 错误 1
make[3]:正在离开目录 `/usr/src/uClinux-dist/linux-2.4.x/arch/armnommu/mach-dsc21'
make[2]: *** [first_rule] 错误 2
make[2]:正在离开目录 `/usr/src/uClinux-dist/linux-2.4.x/arch/armnommu/mach-dsc21'
make[1]: *** [_dir_arch/armnommu/mach-dsc21] 错误 2
make[1]:正在离开目录 `/usr/src/uClinux-dist/linux-2.4.x'
make: *** [linux] 错误 1
我查看了IO.C文件,并没有发现提示所说的 错误,请问这是怎呒么回事,该如何解决 ?
谢谢! 比较急,在线等

相关帖子

沙发
jizhiwei| | 2010-5-31 21:30 | 只看该作者
有两种情况,要不是文件的;等字符漏掉,还有一种最可能,就是某些宏定义没被你选中,文件编译时这个参数根本就不存在,就会出现parse error before `('等诸如此类的错误

使用特权

评论回复
板凳
有意思| | 2010-6-6 00:09 | 只看该作者
parse error 这是语法错误,

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

8

主题

10

帖子

1

粉丝