QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1295|回复: 2

ARM Linux编译问题

[复制链接]
发表于 2005-10-21 23:00:18 | 显示全部楼层 |阅读模式
内核:linux-2.14.8.tar.bz2
补丁:patch-2.4.18-rmk7.tar.bz2
交叉编译:cross-2.95.3.tar.bz2
make dep


出现如下错误:
j@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/lsj/linux/arch/arm/tools'
/home/lsj/linux/scripts/mkdep -D__KERNEL__ -I/home/lsj/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/lsj/linux/arch/arm/tools'
/home/lsj/2.95.3/bin/arm-linux-gcc -D__KERNEL__ -I/home/lsj/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': No such file or directory
arm-linux-gcc: installation problem, cannot exec `cc1': No such file or directory
make[2]: *** [constants.h] Error 1
make[2]: Leaving directory `/home/lsj/linux/arch/arm/tools'
make[1]: *** [dep] Error 2
make[1]: Leaving directory `/home/lsj/linux/arch/arm/tools'
make: *** [archdep] Error 2
[lsj@localhost linux]$


换用cross-3.2.tar.bz2
make dep 通过
但在make 时出现如下问题:

me/lsj/linux/drivers/media'
rm -f media.o
/home/lsj/cross-3.2/bin/arm-linux-ld  -r -o media.o video/video.o radio/radio.o
/home/lsj/cross-3.2/bin/arm-linux-ld: internal error earmelf_linux.c 160
make[3]: *** [media.o] Error 1
make[3]: Leaving directory `/home/lsj/linux/drivers/media'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/home/lsj/linux/drivers/media'
make[1]: *** [_subdir_media] Error 2
make[1]: Leaving directory `/home/lsj/linux/drivers'
make: *** [_dir_drivers] Error 2

请高手门指教!非常感谢!
发表于 2005-10-24 12:24:41 | 显示全部楼层
question 1
. you place your compiler to wrong place.
question 2
Maybe you should get rid of media radio options from menuconfig,then make again
回复

使用道具 举报

 楼主| 发表于 2005-10-24 12:31:41 | 显示全部楼层

多谢

[quote:a44b2b9968="ksh"]question 1
. you place your compiler to wrong place.
question 2
Maybe you should get rid of media radio options from menuconfig,then make again[/quote]
多谢!我再回去看看
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-27 07:54 , Processed in 0.044668 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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