QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 885|回复: 1

按书中例子编译内核出错求救

[复制链接]
发表于 2005-3-30 10:55:30 | 显示全部楼层 |阅读模式
书中第六章,编译armlinux内核,下载的源代码和步骤都按书中来,执行make menuconfig成功后再执行make dep出错,信息如下,哪位能帮忙看看阿
[root@localhost linux]# make dep
rm -f include/asm-arm/arch include/asm-arm/proc
(cd include/asm-arm; ln -sf arch-clps711x arch; ln -sf proc-armv proc)
make[1]: Entering directory `/home/neo/armlinux/linux/arch/arm/tools'
/home/neo/armlinux/linux/scripts/mkdep -D__KERNEL__ -I/home/neo/armlinux/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -mapcs -fno-strict-aliasing
-fno-common -fno-common -pipe -mapcs-32 -march=armv4 -mtune=arm7tdmi -mshort-load-bytes -msoft-float  -- getconstants.c |\
sed s,getconstants.o,constants.h, > .depend
make all
make[2]: Entering directory `/home/neo/armlinux/linux/arch/arm/tools'
/home/neo/armlinux/2.95.3/bin/arm-linux-gcc -D__KERNEL__ -I/home/neo/armlinux/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -mapcs -fno-strict-aliasing -fno-common -fno-common -pipe -mapcs-32 -march=armv4 -mtune=arm7tdmi -mshort-load-bytes -msoft-float -S -o constants.h.tmp.1 getconstants.c
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cc1': ?????????
make[2]: *** [constants.h] Error 1
make[2]: Leaving directory `/home/neo/armlinux/linux/arch/arm/tools'
make[1]: *** [dep] Error 2
make[1]: Leaving directory `/home/neo/armlinux/linux/arch/arm/tools'
make: *** [archdep] Error 2
发表于 2005-4-2 10:05:40 | 显示全部楼层
可能是编译器的路径不对,/home/neo/armlinux/2.95.3/bin/arm-linux-gcc
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-23 01:53 , Processed in 0.036287 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表