天嵌 ARM开发社区

 找回密码
 注册
查看: 1632|回复: 3

按照教程编译uboot1.1.6的时候总是出问题

[复制链接]
zhangjun 发表于 2014-6-20 18:10:36 | 显示全部楼层 |阅读模式
1
uboot用的是天嵌配置好的那个,直接运行 make EmbedSky_config;结果正常,显示
Configuring for EmbedSky board...
在运行:make   
结果报错 如下:
.........
make[1]: Leaving directory `/opt/EmbedSky/u-boot-1.1.6/post/cpu'
make -C tools all
make[1]: Entering directory `/opt/EmbedSky/u-boot-1.1.6/tools'
gcc -Wall -pedantic -idirafter /opt/EmbedSky/u-boot-1.1.6/include -idirafter /opt/EmbedSky/u-boot-1.1.6/include2 -idirafter /opt/EmbedSky/u-boot-1.1.6/include -DTEXT_BASE=0x33D00000 -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 `/opt/EmbedSky/u-boot-1.1.6/tools'
make: *** [tools] Error 2
[root@localhost u-boot-1.1.6]#

我的环境变量没有问题,用arm-linux-gcc  -v查看 一切正常。。。。。 实在不懂  向高手请教!



 楼主| zhangjun 发表于 2014-6-21 16:30:20 | 显示全部楼层
自己来回答把  问题解决了 是因为新装的linux系统里面只安装了交叉编译器 没安装 gcc编译器 RedHat 系统默认不安装,安装后成功了
回复

使用道具 举报

wbz073 发表于 2014-6-23 09:03:50 | 显示全部楼层
zhangjun 发表于 2014-6-21 16:30
自己来回答把  问题解决了 是因为新装的linux系统里面只安装了交叉编译器 没安装 gcc编译器 RedHat 系统默 ...

这种一般都是环境问题
回复

使用道具 举报

xubeiping0930 发表于 2014-8-28 17:26:41 | 显示全部楼层
感觉不是这个,arm-linux-gcc  没有那个文件或目录
回复

使用道具 举报

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

本版积分规则

关闭

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

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

GMT+8, 2024-5-7 11:18 , Processed in 1.046868 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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