完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛扫一扫,分享给好友
|
rebuild u-boot时出错,总说gcc:命令未找到.详细情况如下:
[roger@roger uboot-03.20.00.12]$ make distclean CROSS_COMPILE=ARM-none-linux-gnueabi- [roger@roger uboot-03.20.00.12]$ make da830evm_config CROSS_COMPILE=arm-none-linux-gnueabi- Configuring for da830evm board... [roger@roger uboot-03.20.00.12]$ make all CROSS_COMPILE=arm-none-linux-gnueabi- Generating include/autoconf.mk Generating include/autoconf.mk.dep for dir in tools examples/standalone examples/api ; do make -C $dir _depend ; done make[1]: gcc:命令未找到 make[1]: Entering directory `/var/tmp/uboot-03.20.00.12/tools' /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 /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]: *** 没有规则可以创建“_depend”需要的目标“.depend”。 停止。 make[1]: Leaving directory `/var/tmp/uboot-03.20.00.12/tools' make[1]: Entering directory `/var/tmp/uboot-03.20.00.12/examples/standalone' make[1]: Leaving directory `/var/tmp/uboot-03.20.00.12/examples/standalone' make[1]: Entering directory `/var/tmp/uboot-03.20.00.12/examples/standalone' make[1]: Nothing to be done for `_depend'. make[1]: Leaving directory `/var/tmp/uboot-03.20.00.12/examples/standalone' make[1]: Entering directory `/var/tmp/uboot-03.20.00.12/examples/api' make[1]: Nothing to be done for `_depend'. make[1]: Leaving directory `/var/tmp/uboot-03.20.00.12/examples/api' make -C tools all make[1]: gcc:命令未找到 make[1]: Entering directory `/var/tmp/uboot-03.20.00.12/tools' gcc -g -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /var/tmp/uboot-03.20.00.12/include -idirafter /var/tmp/uboot-03.20.00.12/include2 -idirafter /var/tmp/uboot-03.20.00.12/include -I /var/tmp/uboot-03.20.00.12/libfdt -I /var/tmp/uboot-03.20.00.12/tools -DTEXT_BASE=0xC1080000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES - pedantic -c -o crc32.o /var/tmp/uboot-03.20.00.12/lib_generic/crc32.c make[1]: gcc:命令未找到 make[1]: *** [crc32.o] 错误 127 make[1]: Leaving directory `/var/tmp/uboot-03.20.00.12/tools' make: *** [tools] 错误 2 [roger@roger uboot-03.20.00.12]$ echo $PATH /home/roger/CodeSourcery/Sourcery_G++_Lite/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/***in:/usr/***in:/***in:/home/roger/bin 多谢! |
|
相关推荐
4个回答
|
|
|
检查一下Rules.make中路径是否正确?
|
|
|
|
|
|
谢谢!指哪个路径? rules.mk里的内容如下: _depend: $(obj).depend $(obj).depend: $(src)Makefile $(TOPDIR)/config.mk $(SRCS) $(HOSTSRCS) @rm -f $@ @for f in $(SRCS); do g=`basename $$f | sed -e 's/(.*).w/1.o/'`; $(CC) -M $(CPPFLAGS) -MQ $(obj)$$g $$f >> $@ ; done @for f in $(HOSTSRCS); do g=`basename $$f | sed -e 's/(.*).w/1.o/'`; $(HOSTCC) -M $(HOSTCPPFLAGS) -MQ $(obj)$$g $$f >> $@ ; done $(HOSTOBJS): $(obj)%.o: %.c $(HOSTCC) $(HOSTCFLAGS) $(HOSTCFLAGS_$(@F)) $(HOSTCFLAGS_$(BCURDIR)) -o $@ $< -c$(NOPEDOBJS): $(obj)%.o: %.c $(HOSTCC) $(HOSTCFLAGS_NOPED) $(HOSTCFLAGS_$(@F)) $(HOSTCFLAGS_$(BCURDIR)) -o $@ $< -c 另外,我编译helloworld是正常的。谢谢! |
|
|
|
|
|
只要关闭终端,再次开启,编译器的路径就从$PATH消失了。多谢! |
|
|
|
|
|
重新安装系统,配置环境,使用root进行编译就没有问题了。 |
|
|
|
|
只有小组成员才能发言,加入小组>>
549 浏览 0 评论
1613 浏览 0 评论
2047 浏览 0 评论
为啥BQ7693003DBTR芯片在和BQ769X0盒子通讯时收不到信号?
1513 浏览 0 评论
DSP 28027F 开发板 XDS100v2调试探针诊断日志显示了 Error -150 (SC_ERR_FTDI_FAIL)如何解决
1337 浏览 0 评论
AT32F407在USART2 DMA发送数据时,接包接到了要发送的数据,程序还是处于等待传输完成的标识判断中,为什么?
1757浏览 29评论
2781浏览 23评论
请问下tpa3220实际测试引脚功能和官方资料不符,哪位大佬可以帮忙解答下
1724浏览 20评论
请教下关于TAS5825PEVM评估模块原理图中不太明白的地方,寻求答疑
1634浏览 14评论
两个TMP117传感器一个可以正常读取温度值,一个读取的值一直是0,为什么?
1645浏览 13评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 06:39 , Processed in 0.902300 second(s), Total 77, Slave 60 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
7166