韦东山Linux嵌入式课程社区
直播中

刘勉励

7年用户 213经验值
私信 关注

如何解决uboot编译错误

fedora 8  的系统  , 交叉编辑环境安了 ,补丁也打了    make 后提示如下错误

[root@localhost u-boot-1.1.6]# make
for dir in tools examples post post/cpu ; do make -C $dir _depend ; done
make[1]: Entering directory `/home/wqiang/sambafile/Linux/practice/u-boot/u-boot-1.1.6/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/wqiang/sambafile/Linux/practice/u-boot/u-boot-1.1.6/tools'
make[1]: Entering directory `/home/wqiang/sambafile/Linux/practice/u-boot/u-boot-1.1.6/examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/wqiang/sambafile/Linux/practice/u-boot/u-boot-1.1.6/examples'
make[1]: Entering directory `/home/wqiang/sambafile/Linux/practice/u-boot/u-boot-1.1.6/post'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/wqiang/sambafile/Linux/practice/u-boot/u-boot-1.1.6/post'
make[1]: Entering directory `/home/wqiang/sambafile/Linux/practice/u-boot/u-boot-1.1.6/post/cpu'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/wqiang/sambafile/Linux/practice/u-boot/u-boot-1.1.6/post/cpu'
make -C tools all
make[1]: Entering directory `/home/wqiang/sambafile/Linux/practice/u-boot/u-boot-1.1.6/tools'
gcc -Wall -pedantic -idirafter /home/wqiang/sambafile/Linux/practice/u-boot/u-boot-1.1.6/include -idirafter /home/wqiang/sambafile/Linux/practice/u-boot/u-boot-1.1.6/include2 -idirafter /home/wqiang/sambafile/Linux/practice/u-boot/u-boot-1.1.6/include -DTEXT_BASE=0x33F80000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c
make[1]: gcc:命令未找到
make[1]: *** [img2srec.o] 错误 127
make[1]: Leaving directory `/home/wqiang/sambafile/Linux/practice/u-boot/u-boot-1.1.6/tools'
make: *** [tools] 错误 2
[root@localhost u-boot-1.1.6]#

回帖(2)

王丽娟

2019-7-15 07:00:29
顶帖子
举报

王建军

2019-7-15 07:18:07
gcc:命令未找到
你的PC机都没安装编译器,看一下 完全手册 的前面章节,里面有介绍怎么装GCC
举报

更多回帖

发帖
×
20
完善资料,
赚取积分