zchong 发表于 2009-8-10 09:58:07

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

# 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
# make smdk2410_config
Configuring for smdk2410 board...
# make
for dir in tools examples post post/cpu ; do make -C $dir _depend ; done
make: 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: *** 没有规则可以创建“_depend”需要的目标“.depend”。 停止。
make: Leaving directory `/work/system/u-boot-1.1.6/tools'
make: Entering directory `/work/system/u-boot-1.1.6/examples'
make: Leaving directory `/work/system/u-boot-1.1.6/examples'
make: Entering directory `/work/system/u-boot-1.1.6/examples'
make: Nothing to be done for `_depend'.
make: Leaving directory `/work/system/u-boot-1.1.6/examples'
make: Entering directory `/work/system/u-boot-1.1.6/post'
make: Leaving directory `/work/system/u-boot-1.1.6/post'
make: Entering directory `/work/system/u-boot-1.1.6/post'
make: Nothing to be done for `_depend'.
make: Leaving directory `/work/system/u-boot-1.1.6/post'
make: Entering directory `/work/system/u-boot-1.1.6/post/cpu'
make: Leaving directory `/work/system/u-boot-1.1.6/post/cpu'
make: Entering directory `/work/system/u-boot-1.1.6/post/cpu'
make: Nothing to be done for `_depend'.
make: Leaving directory `/work/system/u-boot-1.1.6/post/cpu'
make -C tools all
make: 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: gcc:命令未找到
make: *** 错误 127
make: Leaving directory `/work/system/u-boot-1.1.6/tools'
make: *** 错误 2
#


fedora 11系统

btiger2000 发表于 2009-8-10 12:45:36

你的工具链还没建好吧?

zchong 发表于 2009-8-10 15:06:40

用的是别人编译好的,就是韦东山出的那本书光盘上带的,编译光盘上带的小例子是可以的
页: [1]
查看完整版本: 编译u-boot出错(解决)-主机linux没装gcc