编译uclinux内核时候遇到的问题,帮我看看吧。

luoweiliang1982   2007-3-17 18:36 楼主
由于毕业设计需要和本身兴趣,要构造ARM+uclinux,本机Linux版本:UBUNTU6 .06.
在本机上安装了www.uclinux.org上下的arm-elf-tools,
然后arm-elf-gcc-v,显示如下

Reading specs from /usr/local/lib/gcc-lib/arm-elf/2.95.3/specs
gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from http://www.snapgear.com/)
但是在编译内核时显示

tangzichao@My-Computer:~/uClinux-dist$ make
make -C tools/ucfront
make[1]: Entering directory `/home/tangzichao/uClinux-dist/tools/ucfront'
cc -g -Werror -Wall -DHAVE_MKSTEMP -o ucfront ucfront.c args.c util.c execute.c
cc -g -Werror -Wall -DHAVE_MKSTEMP -o ucfront-ld ucfront-ld.c args.c util.c exec ute.c
make[1]: Leaving directory `/home/tangzichao/uClinux-dist/tools/ucfront'
ln -sf /home/tangzichao/uClinux-dist/tools/ucfront/ucfront tools/ucfront-gcc
ln -sf /home/tangzichao/uClinux-dist/tools/ucfront/ucfront tools/ucfront-g++
ln -sf /home/tangzichao/uClinux-dist/tools/ucfront/ucfront-ld tools/ucfront-ld
make -C tools/sg-cksum
make[1]: Entering directory `/home/tangzichao/uClinux-dist/tools/sg-cksum'
cc -Werror -Wall -DHAVE_MKSTEMP -o cksum cksum.c crc.c print.c sum1.c sum2.c crc 32.c
make[1]: Leaving directory `/home/tangzichao/uClinux-dist/tools/sg-cksum'
ln -sf /home/tangzichao/uClinux-dist/tools/sg-cksum/cksum tools/cksum
make ARCH=arm CROSS_COMPILE=arm-linux- -j4 -C linux-2.6.x || exit 1
make[1]: arm-linux-gcc:命令未找到
make[1]: Entering directory `/home/tangzichao/uClinux-dist/linux-2.6.x'
scripts/kconfig/conf -s arch/arm/Kconfig
make[1]: Leaving directory `/home/tangzichao/uClinux-dist/linux-2.6.x'
make[1]: arm-linux-gcc:命令未找到
make[1]: Entering directory `/home/tangzichao/uClinux-dist/linux-2.6.x'
CHK include/linux/version.h
UPD include/linux/version.h
SYMLINK include/asm-arm/arch -> include/asm-arm/arch-s3c44b0x
SYMLINK include/asm -> include/asm-arm
Generating include/asm-arm/mach-types.h
CHK include/linux/utsrelease.h
UPD include/linux/utsrelease.h
CC scripts/mod/empty.o
/bin/sh: arm-linux-gcc: command not found
make[3]: *** [scripts/mod/empty.o] 错误 127
make[2]: *** [scripts/mod] 错误 2
make[1]: *** [scripts] 错误 2
make[1]: *** 正在等待未完成的任务....
make[1]: Leaving directory `/home/tangzichao/uClinux-dist/linux-2.6.x'
make: *** [linux] 错误 1

为什么会显示ARM-ELF-GCC:COMMAND NOT FIND 啊?
难道是环境变量没设置好,如果是没设置好那为什么arm-elf-gcc-v能出来东西呢?如果是环境变量问题那该怎么设置呢?
麻烦各位大大了,本人初学,很多地方不懂

回复评论

暂无评论,赶紧抢沙发吧
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 京公网安备 11010802033920号
    写回复