QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3081|回复: 3

请教:在cygwin下编译armlinux出错

[复制链接]
发表于 2005-5-11 17:04:06 | 显示全部楼层 |阅读模式
我在cygwin下编译armlinux,make dep时报错,不知何故,望指教!
我的编译工具:cross-2.95.3.tar.bz2
我的armlinux内核:linux-2.4.18-rmk7.tar.bz2

错误如下:
pan@pan /usr/src/armlinux/linux
$ export PATH=$PATH:/usr/local/arm/2.95.3/bin

pan@pan /usr/src/armlinux/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 `/usr/src/armlinux/linux/arch/arm/tools'
/usr/src/armlinux/linux/scripts/mkdep -D__KERNEL__ -I/usr/src/armlinux/linux/inc
lude -Wall -Wstrict-prototypes -Wno-trigraphs -Os -mapcs -fno-strict-aliasing -f
no-common -fno-common -pipe -mapcs-32 -march=armv4 -mtune=arm7tdmi -mshort-load-
bytes -msoft-float  -- getconstants.c |\
sed s,getconstants.o,constants.h, > .depend
/usr/src/armlinux/linux/scripts/mkdep: /usr/src/armlinux/linux/scripts/mkdep: ca
nnot execute binary file
make all
make[2]: Entering directory `/usr/src/armlinux/linux/arch/arm/tools'
cmp constants.h /usr/src/armlinux/linux/include/asm-arm/constants.h >/dev/null 2
>&1 || cp -p constants.h /usr/src/armlinux/linux/include/asm-arm/constants.h
make[2]: Leaving directory `/usr/src/armlinux/linux/arch/arm/tools'
make[1]: Leaving directory `/usr/src/armlinux/linux/arch/arm/tools'
make[1]: Entering directory `/usr/src/armlinux/linux/arch/arm/boot'
make[1]: Nothing to be done for `dep'.
make[1]: Leaving directory `/usr/src/armlinux/linux/arch/arm/boot'
scripts/mkdep -- init/*.c > .depend
scripts/mkdep: scripts/mkdep: cannot execute binary file
make: *** [dep-files] Error 126


我在red hat9.0里编译也出错,编译工具和内核同上,不过错误不一样;如下:

[root@localhost linux]# export PATH=$PATH:/usr/src/armlinux/2.95.3/bin
[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 `/usr/src/armlinux/linux/arch/arm/tools'
/usr/src/armlinux/linux/scripts/mkdep -D__KERNEL__
-I/usr/src/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 `/usr/src/armlinux/linux/arch/arm/tools'
/usr/src/armlinux/2.95.3/bin/arm-linux-gcc -D__KERNEL__
-I/usr/src/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 `/usr/src/armlinux/linux/arch/arm/tools'
make[1]: *** [dep] Error 2
make[1]: Leaving directory `/usr/src/armlinux/linux/arch/arm/tools'
make: *** [archdep] Error 2
发表于 2006-2-24 11:00:42 | 显示全部楼层
我在fedira cire 3也是一样的错误有那位高手能指导一下
回复

使用道具 举报

发表于 2008-9-18 14:32:23 | 显示全部楼层
cygwin 下 也有
回复

使用道具 举报

发表于 2008-9-18 16:55:37 | 显示全部楼层
cannot exec `cpp0'  可能是程序安装位置和搜索路径不符。在cgywin里可以搜到一个文件为"cpp0.exe“,将其路径加入到PATH中,可以解决这个错误。不过,这不是个治本的办法。还是重新检查一下编译包安装才行。
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-2 08:28 , Processed in 0.040547 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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