免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 6165 | 回复: 5
打印 上一主题 下一主题

内核编译出错: Leaving directory...... [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-03-14 22:11 |只看该作者 |倒序浏览
我在编译内核的时候出现好多这样类似的信息:
................
.....................
make[2]: Leaving directory `/friendly-arm/kernel/arch/arm/lib'
make[1]: Leaving directory `/friendly-arm/kernel/arch/arm/lib'
make CFLAGS="-D__KERNEL__ -I/friendly-arm/kernel/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -mapcs -fno-strict-aliasing -fno-common -fno-common -pipe -mapcs-32 -march=armv4  -mshort-load-bytes -msoft-float " -C  arch/arm/nwfpe
make[1]: Entering directory `/friendly-arm/kernel/arch/arm/nwfpe'
make all_targets
make[2]: Entering directory `/friendly-arm/kernel/arch/arm/nwfpe'
rm -f math-emu.o
arm-linux-ar rcs math-emu.o
make[2]: Leaving directory `/friendly-arm/kernel/arch/arm/nwfpe'
make[1]: Leaving directory `/friendly-arm/kernel/arch/arm/nwfpe'
make CFLAGS="-D__KERNEL__ -I/friendly-arm/kernel/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -mapcs -fno-strict-aliasing -fno-common -fno-common -pipe -mapcs-32 -march=armv4  -mshort-load-bytes -msoft-float " -C  arch/arm/fastfpe
make[1]: Entering directory `/friendly-arm/kernel/arch/arm/fastfpe'
make all_targets
make[2]: Entering directory `/friendly-arm/kernel/arch/arm/fastfpe'
rm -f fast-math-emu.o
arm-linux-ar rcs fast-math-emu.o
make[2]: Leaving directory `/friendly-arm/kernel/arch/arm/fastfpe'
............
..........
最后的错误是make: *** [vmlinux] 错误

我用的是SBC2410光盘上的2.14.18内核,我明明是按照操作手册上编译的,就是报错,真郁闷。我的PC机是Red Hat Enterprise 4 AS版本
上网搜了好长时间也没搜出个结果来,希望各位师兄帮忙指点下。

论坛徽章:
0
2 [报告]
发表于 2008-03-14 22:15 |只看该作者
楼主你给出的信息都没有出错……
把出错信息贴出来看一下吧

论坛徽章:
0
3 [报告]
发表于 2008-03-15 11:18 |只看该作者

回复楼上的师兄

我把调试的信息都导入到一个文件里了,里面没有找到error单词,就在最后有个
make: *** [vmlinux] 错误 1
我把调试的信息发上来了,你能帮忙看看到底是哪出问题了吗?

论坛徽章:
0
4 [报告]
发表于 2008-03-15 11:26 |只看该作者

这是包含所有调试信息的文件

是个文本文件,为了上传才改的扩展名,用本文编辑器打开就行了

error.chm

123.22 KB, 下载次数: 91

论坛徽章:
0
5 [报告]
发表于 2008-03-15 23:52 |只看该作者
我看了看,编译没有错误,而是从767行开始全是链接错误的信息

  1. arch/arm/mm/mm.o(.text+0x4c): undefined reference to `cpu_CPU_NAME_dcache_clean_entry'
复制代码

我建议你make mrproper一下
重新编译一下,有可能是.o文件的冲突

论坛徽章:
0
6 [报告]
发表于 2008-03-18 10:41 |只看该作者

回复 #5 vestige 的帖子

多谢师兄的回复,我已经编译通过了,是因为我没有选择CUP体系结构,make sbc2410x_config,然后再make menuconfig就可以了,多谢多谢!!!!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP