搜索
bottom↓
回复: 2

编译u-boot出错(解决)-主机linux没装gcc

[复制链接]

出0入31汤圆

发表于 2009-8-10 09:58:07 | 显示全部楼层 |阅读模式
[root@linux u-boot-1.1.6]# make distclean
find /work/system/u-boot-1.1.6 -type f \
                \( -name 'core' -o -name '*.bak' -o -name '*~' \
                -o -name '*.o'  -o -name '*.a'  \) -print \
                | xargs rm -f
rm -f examples/hello_world examples/timer \
              examples/eepro100_eeprom examples/sched \
              examples/mem_to_mem_idma2intr examples/82559_eeprom \
              examples/smc91111_eeprom examples/interrupt \
              examples/test_burst
rm -f tools/img2srec tools/mkimage tools/envcrc \
                tools/gen_eth_addr
rm -f tools/mpc86x_clk tools/ncb
rm -f tools/easylogo/easylogo tools/bmp_logo
rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
rm -f tools/env/fw_printenv tools/env/fw_setenv
rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
rm -f board/netstar/eeprom board/netstar/crcek board/netstar/crcit
rm -f board/netstar/*.srec board/netstar/*.bin
rm -f board/trab/trab_fkt board/voiceblue/eeprom
rm -f board/integratorap/u-boot.lds board/integratorcp/u-boot.lds
rm -f include/bmp_logo.h
rm -f nand_spl/u-boot-spl nand_spl/u-boot-spl.map
find /work/system/u-boot-1.1.6 -type f \( -name .depend \
                -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
                -print0 \
                | xargs -0 rm -f
rm -f cpu/arm920t/start.o *.bak ctags etags TAGS include/version_autogenerated.h
rm -fr *.*~
rm -f u-boot u-boot.map u-boot.hex u-boot.srec u-boot.bin System.map
rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
rm -f include/asm/proc include/asm/arch include/asm
[ ! -d /work/system/u-boot-1.1.6/nand_spl ] || find nand_spl -lname "*" -print | xargs rm -f
[root@linux u-boot-1.1.6]# make smdk2410_config
Configuring for smdk2410 board...
[root@linux u-boot-1.1.6]# make
for dir in tools examples post post/cpu ; do make -C $dir _depend ; done
make[1]: Entering directory `/work/system/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]: *** 没有规则可以创建“_depend”需要的目标“.depend”。 停止。
make[1]: Leaving directory `/work/system/u-boot-1.1.6/tools'
make[1]: Entering directory `/work/system/u-boot-1.1.6/examples'
make[1]: Leaving directory `/work/system/u-boot-1.1.6/examples'
make[1]: Entering directory `/work/system/u-boot-1.1.6/examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/work/system/u-boot-1.1.6/examples'
make[1]: Entering directory `/work/system/u-boot-1.1.6/post'
make[1]: Leaving directory `/work/system/u-boot-1.1.6/post'
make[1]: Entering directory `/work/system/u-boot-1.1.6/post'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/work/system/u-boot-1.1.6/post'
make[1]: Entering directory `/work/system/u-boot-1.1.6/post/cpu'
make[1]: Leaving directory `/work/system/u-boot-1.1.6/post/cpu'
make[1]: Entering directory `/work/system/u-boot-1.1.6/post/cpu'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/work/system/u-boot-1.1.6/post/cpu'
make -C tools all
make[1]: Entering directory `/work/system/u-boot-1.1.6/tools'
gcc -Wall -pedantic -idirafter /work/system/u-boot-1.1.6/include -idirafter /work/system/u-boot-1.1.6/include2 -idirafter /work/system/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 `/work/system/u-boot-1.1.6/tools'
make: *** [tools] 错误 2
[root@linux u-boot-1.1.6]#


fedora 11系统

阿莫论坛20周年了!感谢大家的支持与爱护!!

一只鸟敢站在脆弱的枝条上歇脚,它依仗的不是枝条不会断,而是自己有翅膀,会飞。

出0入0汤圆

发表于 2009-8-10 12:45:36 | 显示全部楼层
你的工具链还没建好吧?

出0入31汤圆

 楼主| 发表于 2009-8-10 15:06:40 | 显示全部楼层
用的是别人编译好的,就是韦东山出的那本书光盘上带的,编译光盘上带的小例子是可以的
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-5-20 19:13

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

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