本帖最后由 FSL_TICS_imx 于 2014-7-9 16:22 编辑

ocean@ubuntu:~/ltib/ltib/rpm/BUILD/u-boot-2009.08$ make ARCH=arm

/bin/bash: arm-linux-gcc: command not found

/bin/bash: arm-linux-gcc: command not found

dirname: missing operand

Try `dirname --help' for more information.

/bin/bash: arm-linux-gcc: command not found

dirname: missing operand

Try `dirname --help' for more information.

for dir in tools examples/standalone examples/api ; do make -C $dir _depend ; done

/bin/bash: arm-linux-gcc: command not found

dirname: missing operand

Try `dirname --help' for more information.

make[1]: arm-linux-gcc: Command not found

make[1]: Entering directory `/home/ocean/ltib/ltib/rpm/BUILD/u-boot-2009.08/tools'

make[1]: Nothing to be done for `_depend'.

make[1]: Leaving directory `/home/ocean/ltib/ltib/rpm/BUILD/u-boot-2009.08/tools'

make[1]: arm-linux-gcc: Command not found

make[1]: Entering directory `/home/ocean/ltib/ltib/rpm/BUILD/u-boot-2009.08/examples/standalone'

/bin/sh: 1: arm-linux-gcc: not found

dirname: missing operand

Try `dirname --help' for more information.

/bin/sh: 1: arm-linux-gcc: not found

dirname: missing operand

Try `dirname --help' for more information.

make[1]: Nothing to be done for `_depend'.

make[1]: Leaving directory `/home/ocean/ltib/ltib/rpm/BUILD/u-boot-2009.08/examples/standalone'

make[1]: arm-linux-gcc: Command not found

make[1]: Entering directory `/home/ocean/ltib/ltib/rpm/BUILD/u-boot-2009.08/examples/api'

/bin/sh: 1: arm-linux-gcc: not found

dirname: missing operand

Try `dirname --help' for more information.

make[1]: Nothing to be done for `_depend'.

make[1]: Leaving directory `/home/ocean/ltib/ltib/rpm/BUILD/u-boot-2009.08/examples/api'

make -C tools all

/bin/bash: arm-linux-gcc: command not found

dirname: missing operand

Try `dirname --help' for more information.

make[1]: arm-linux-gcc: Command not found

make[1]: Entering directory `/home/ocean/ltib/ltib/rpm/BUILD/u-boot-2009.08/tools'

make[1]: Leaving directory `/home/ocean/ltib/ltib/rpm/BUILD/u-boot-2009.08/tools'

make -C examples/standalone all

/bin/bash: arm-linux-gcc: command not found

dirname: missing operand

Try `dirname --help' for more information.

make[1]: arm-linux-gcc: Command not found

make[1]: Entering directory `/home/ocean/ltib/ltib/rpm/BUILD/u-boot-2009.08/examples/standalone'

/bin/sh: 1: arm-linux-gcc: not found

dirname: missing operand

Try `dirname --help' for more information.

/bin/sh: 1: arm-linux-gcc: not found

dirname: missing operand

Try `dirname --help' for more information.

make[1]: Nothing to be done for `all'.

make[1]: Leaving directory `/home/ocean/ltib/ltib/rpm/BUILD/u-boot-2009.08/examples/standalone'

make -C examples/api all

/bin/bash: arm-linux-gcc: command not found

dirname: missing operand

Try `dirname --help' for more information.

make[1]: arm-linux-gcc: Command not found

make[1]: Entering directory `/home/ocean/ltib/ltib/rpm/BUILD/u-boot-2009.08/examples/api'

/bin/sh: 1: arm-linux-gcc: not found

dirname: missing operand

Try `dirname --help' for more information.

make[1]: Nothing to be done for `all'.

make[1]: Leaving directory `/home/ocean/ltib/ltib/rpm/BUILD/u-boot-2009.08/examples/api'

make -C cpu/arm_cortexa8 start.o

/bin/bash: arm-linux-gcc: command not found

dirname: missing operand

Try `dirname --help' for more information.

make[1]: arm-linux-gcc: Command not found

make[1]: Entering directory `/home/ocean/ltib/ltib/rpm/BUILD/u-boot-2009.08/cpu/arm_cortexa8'

make[1]: `start.o' is up to date.

make[1]: Leaving directory `/home/ocean/ltib/ltib/rpm/BUILD/u-boot-2009.08/cpu/arm_cortexa8'

make -C lib_generic/

/bin/bash: arm-linux-gcc: command not found

dirname: missing operand

Try `dirname --help' for more information.

make[1]: arm-linux-gcc: Command not found

make[1]: Entering directory `/home/ocean/ltib/ltib/rpm/BUILD/u-boot-2009.08/lib_generic'

make[1]: `libgeneric.a' is up to date.

make[1]: Leaving directory `/home/ocean/ltib/ltib/rpm/BUILD/u-boot-2009.08/lib_generic'

make -C lib_generic/lzma/

/bin/bash: arm-linux-gcc: command not found

dirname: missing operand

Try `dirname --help' for more information.

make[1]: arm-linux-gcc: Command not found

make[1]: Entering directory `/home/ocean/ltib/ltib/rpm/BUILD/u-boot-2009.08/lib_generic/lzma'

arm-linux-ar crv liblzma.a

make[1]: arm-linux-ar: Command not found

make[1]: *** [liblzma.a] Error 127

make[1]: Leaving directory `/home/ocean/ltib/ltib/rpm/BUILD/u-boot-2009.08/lib_generic/lzma'

make: *** [lib_generic/lzma/liblzma.a] Error 2

ocean@ubuntu:~/ltib/ltib/rpm/BUILD/u-boot-2009.08$

=============

执行上述蓝字命令,提示上述错误。

然后,通过

ocean@ubuntu:/$ sudo find -name "arm-linux-gcc"

[sudo] password for ocean:

./opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-linux-gcc

接着执行

ocean@ubuntu:/$ cd

ocean@ubuntu:~$ export PATH=$PATH:/opt/arm/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/

上述错误问题依然存在,没有修正解决?

满意回复

68c2904e19bc07bfc7d8b939d8c953c0.png+5

就当普通编译器使用,比如一个简单的hello world程序,在linux下用gcc编译生成的a.out文件无法在开发板上跑起来,只能在pc机上跑,而用交叉编译工具/opt/freesca ...

Logo

openvela 操作系统专为 AIoT 领域量身定制,以轻量化、标准兼容、安全性和高度可扩展性为核心特点。openvela 以其卓越的技术优势,已成为众多物联网设备和 AI 硬件的技术首选,涵盖了智能手表、运动手环、智能音箱、耳机、智能家居设备以及机器人等多个领域。

更多推荐