本帖最后由 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

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐