天嵌 ARM开发社区

 找回密码
 注册
查看: 3370|回复: 4

Uboot编译 img2srec.o GCC:command not found

[复制链接]
765679550 发表于 2012-1-30 22:56:08 | 显示全部楼层 |阅读模式
本帖最后由 765679550 于 2012-4-23 19:11 编辑

编译U boot  2001-06-01 那个,
arm-linux-gcc -v 已经是3.4.5的版本了。。。编译出错
用的Ctrl+ALt+F2 切换编译,不能复制具体的。
求解答
 楼主| 765679550 发表于 2012-1-30 23:26:34 | 显示全部楼层
root@pc1714:~/Desktop/u-boot-1.1.6> make
for dir in tools examples ; do make -C $dir _depend ; done
make[1]: Entering directory `/home/shamnaik/Desktop/u-boot-1.1.6/tools'
ln -s ../common/environment.c environment.c
ln -s ../lib_generic/crc32.c crc32.c
/bin/sh: line 2: gcc: command not found
/bin/sh: line 2: gcc: command not found
/bin/sh: line 2: gcc: command not found
/bin/sh: line 2: gcc: command not found
/bin/sh: line 2: gcc: command not found
/bin/sh: line 2: gcc: command not found
/bin/sh: line 2: gcc: command not found
make[1]: *** No rule to make target `.depend', needed by `_depend'.  Stop.
make[1]: Leaving directory `/home/shamnaik/Desktop/u-boot-1.1.6/tools'
make[1]: Entering directory `/home/shamnaik/Desktop/u-boot-1.1.6/examples'
make[1]: Leaving directory `/home/shamnaik/Desktop/u-boot-1.1.6/examples'
make[1]: Entering directory `/home/shamnaik/Desktop/u-boot-1.1.6/examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/shamnaik/Desktop/u-boot-1.1.6/examples'
make -C tools all
make[1]: Entering directory `/home/shamnaik/Desktop/u-boot-1.1.6/tools'
gcc -Wall -pedantic -idirafter /home/shamnaik/Desktop/u-boot-1.1.6/include -idirafter /home/shamnaik/Desktop/u-boot-1.1.6/include2 -idirafter /home/shamnaik/Desktop/u-boot-1.1.6/include -DTEXT_BASE=do-not-use-me -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c
make[1]: gcc: Command not found
make[1]: *** [img2srec.o] Error 127
make[1]: Leaving directory `/home/shamnaik/Desktop/u-boot-1.1.6/tools'
make: *** [tools] Error 2
shamnaik@pc1714:~/Desktop/u-boot-1.1.6>

差不多就是这样 用的root
keyfa 发表于 2012-1-30 23:42:58 | 显示全部楼层
uboot 跟目录的makefile没设置好吧,或者你的交叉编译器路径有问题!~
TQ-lkp 发表于 2012-1-31 17:16:49 | 显示全部楼层
你输入 gcc -v判断是否安装了gcc
或者是安装了没有加入到系统环境变量中,导致系统无法认别gcc
如果没有安装gcc,重新安装就可以了
 楼主| 765679550 发表于 2012-1-31 18:35:40 | 显示全部楼层
本帖最后由 765679550 于 2012-1-31 18:35 编辑

http://www.cnblogs.com/amboyna/archive/2008/03/08/1096024.html
环境变量是这么加的?

Fedora中安装GCC  直接  yum install gcc  这样?】
新手,唉
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-5-19 02:54 , Processed in 1.046875 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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