打印
[i.MX]

arm-linux-gcc: command not found 问题(已解决)

[复制链接]
39796|29
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
lqland|  楼主 | 2014-6-9 16:57 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 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/
上述错误问题依然存在,没有修正解决



相关帖子

沙发
FSL_TICS_Rita| | 2014-6-9 17:07 | 只看该作者
楼主你好,arm-linux-gcc路径应该是没有设置正确的吧。你这里要做什么?平台是什么?希望你描述清楚一些,这样有助于快速找到问题所在,你直接贴问题的话,很难直接定位是哪里的问题哦。

使用特权

评论回复
板凳
lqland|  楼主 | 2014-6-9 19:23 | 只看该作者
FSL_TICS_Rita 发表于 2014-6-9 17:07
楼主你好,arm-linux-gcc路径应该是没有设置正确的吧。你这里要做什么?平台是什么?希望你描述清楚一些, ...

HI,
linux,
"How to Build U-Boot and Kernel in Standalone Environment "
执行命令:
make ARCH=arm
CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi- distclean

使用特权

评论回复
地板
alexer| | 2014-6-10 09:24 | 只看该作者
楼主你好,你可以去http://www.qiytech.com/bbs/这个网站和更多的人交流

使用特权

评论回复
5
FSL_TICS_Rita| | 2014-6-10 16:01 | 只看该作者
lqland 发表于 2014-6-9 19:23
HI,
linux,
"How to Build U-Boot and Kernel in Standalone Environment "

你好,这里
make ARCH=arm
CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-
toolchain/bin/arm-none-linux-gnueabi- distclean
你已经把环境参数给清理掉了,所以后面会出现arm-linux-gcc: Command not found。所以你要重新设置环境参数:
你用一下
export ARCH=arm
export CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-
然后再试一下。

使用特权

评论回复
6
lqland|  楼主 | 2014-6-10 17:03 | 只看该作者
本帖最后由 lqland 于 2014-6-10 17:04 编辑
FSL_TICS_Rita 发表于 2014-6-10 16:01
你好,这里
make ARCH=arm
CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multil ...

好像还是不行,LOG信息如下:

ocean@ubuntu:~/ltib/ltib/rpm/BUILD/u-boot-2009.08$ export ARCH=arm
ocean@ubuntu:~/ltib/ltib/rpm/BUILD/u-boot-2009.08$ export CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-
ocean@ubuntu:~/ltib/ltib/rpm/BUILD/u-boot-2009.08$ sync
ocean@ubuntu:~/ltib/ltib/rpm/BUILD/u-boot-2009.08$ make ARCH=arm
/bin/bash: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-gcc: No such file or directory
/bin/bash: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-gcc: No such file or directory
dirname: missing operand
Try `dirname --help' for more information.
/bin/bash: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-gcc: No such file or directory
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: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-gcc: No such file or directory
dirname: missing operand
Try `dirname --help' for more information.
make[1]: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-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]: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-gcc: Command not found
make[1]: Entering directory `/home/ocean/ltib/ltib/rpm/BUILD/u-boot-2009.08/examples/standalone'
/bin/sh: 1: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-gcc: not found
dirname: missing operand
Try `dirname --help' for more information.
/bin/sh: 1: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-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]: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-gcc: Command not found
make[1]: Entering directory `/home/ocean/ltib/ltib/rpm/BUILD/u-boot-2009.08/examples/api'
/bin/sh: 1: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-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: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-gcc: No such file or directory
dirname: missing operand
Try `dirname --help' for more information.
make[1]: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-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: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-gcc: No such file or directory
dirname: missing operand
Try `dirname --help' for more information.
make[1]: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-gcc: Command not found
make[1]: Entering directory `/home/ocean/ltib/ltib/rpm/BUILD/u-boot-2009.08/examples/standalone'
/bin/sh: 1: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-gcc: not found
dirname: missing operand
Try `dirname --help' for more information.
/bin/sh: 1: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-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: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-gcc: No such file or directory
dirname: missing operand
Try `dirname --help' for more information.
make[1]: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-gcc: Command not found
make[1]: Entering directory `/home/ocean/ltib/ltib/rpm/BUILD/u-boot-2009.08/examples/api'
/bin/sh: 1: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-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: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-gcc: No such file or directory
dirname: missing operand
Try `dirname --help' for more information.
make[1]: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-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: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-gcc: No such file or directory
dirname: missing operand
Try `dirname --help' for more information.
make[1]: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-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: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-gcc: No such file or directory
dirname: missing operand
Try `dirname --help' for more information.
make[1]: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-gcc: Command not found
make[1]: Entering directory `/home/ocean/ltib/ltib/rpm/BUILD/u-boot-2009.08/lib_generic/lzma'
/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-ar crv liblzma.a
make[1]: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-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$

使用特权

评论回复
7
FSL_TICS_Rita| | 2014-6-10 17:14 | 只看该作者
按照我以上给你说的环境就已经设置好了,你继续下面的工作就好了,make mx6q_sabresd_config。

使用特权

评论回复
8
lqland|  楼主 | 2014-6-10 18:05 | 只看该作者
FSL_TICS_Rita 发表于 2014-6-10 17:14
按照我以上给你说的环境就已经设置好了,你继续下面的工作就好了,make mx6q_sabresd_config。 ...

我上面贴出的LOG错误信息,可以忽略?

使用特权

评论回复
9
lqland|  楼主 | 2014-6-10 19:52 | 只看该作者
FSL_TICS_Rita 发表于 2014-6-10 16:01
你好,这里
make ARCH=arm
CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multil ...

我只是执行 make ARCH=arm 就提示错误了,还没有执行下一条的 distclean 命令.

使用特权

评论回复
10
FSL_TICS_Rita| | 2014-6-11 10:50 | 只看该作者
lqland 发表于 2014-6-10 19:52
我只是执行 make ARCH=arm 就提示错误了,还没有执行下一条的 distclean 命令.

你试一下:
export ARCH=arm
export CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-
make distclean----------------->删除已经编译好的u-boot.bin等文件
然后再重新设置一下环境变量:
export ARCH=arm
export CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-
make mx6q_sabresd_config ---------------->配置板子环境
make              ------------------------>编译需要运行的板子,运行成功后就可以将编译好的images拷贝到板子上,运行板子
你先按照我这个步骤试一下。手动编译我都是这么操作的。

使用特权

评论回复
11
FSL_TICS_Rita| | 2014-6-11 10:51 | 只看该作者
lqland 发表于 2014-6-10 18:05
我上面贴出的LOG错误信息,可以忽略?

不可以忽略,以上问题说明你的环境参数没有设置好,所以编译时候会出问题的。

使用特权

评论回复
12
lqland|  楼主 | 2014-6-11 11:08 | 只看该作者
本帖最后由 lqland 于 2014-6-11 11:18 编辑
FSL_TICS_Rita 发表于 2014-6-11 10:50
你试一下:
export ARCH=arm
export CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-lina ...
测试LOG信息
ocean@ubuntu:~$ export ARCH=arm
ocean@ubuntu:~$ export CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-
ocean@ubuntu:~$ make distclean
make: *** No rule to make target `distclean'.  Stop.

ocean@ubuntu:~$ make distclean
make: *** No rule to make target `distclean'.  Stop.
ocean@ubuntu:~$
=======make distclean命令无法执行========

使用特权

评论回复
13
FSL_TICS_Rita| | 2014-6-11 15:56 | 只看该作者
lqland 发表于 2014-6-11 11:08
测试LOG信息
ocean@ubuntu:~$ export ARCH=arm
ocean@ubuntu:~$ export CROSS_COMPILE=/opt/freescale/usr/ ...

楼主你好,你再试一下,打开隐藏文件
gedit .profile

export ARCH=arm
export CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-
加在最后,保存退出,然后进入到目录ltib/rpm/BUILD/u-boot-2009.08下执行
make distclean

使用特权

评论回复
14
lqland|  楼主 | 2014-6-11 16:22 | 只看该作者
本帖最后由 lqland 于 2014-6-11 16:30 编辑
FSL_TICS_Rita 发表于 2014-6-11 15:56
楼主你好,你再试一下,打开隐藏文件
gedit .profile

回复Rita
为防错误操作,说明操作过程

1. ocean@ubuntu:~$ sudo find -name ".profile"  #查找文件
./.profile


2. 文档最后增加两行内容,保存退出。
ocean@ubuntu:~$ sudo vim .profile
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
        . "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

export ARCH=arm
export CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-

~
~
3.  执行指令,提示错误信息
ocean@ubuntu:~/ltib/ltib/rpm/BUILD/u-boot-2009.08$ make distclean
/bin/bash: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-gcc: No such file or directory
/bin/bash: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-gcc: No such file or directory
dirname: missing operand
Try `dirname --help' for more information.
/bin/bash: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-gcc: No such file or directory
dirname: missing operand
Try `dirname --help' for more information.
/bin/bash: /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/arm-none-linux-gnueabi-gcc: No such file or directory
dirname: missing operand
Try `dirname --help' for more information.
ocean@ubuntu:~/ltib/ltib/rpm/BUILD/u-boot-2009.08$
====如上,错误依然

使用特权

评论回复
15
FSL_TICS_Rita| | 2014-6-11 17:01 | 只看该作者
建议你使用LTIB编译,安装之前我给你的文档中的步骤进行安装就好的。

使用特权

评论回复
16
lqland|  楼主 | 2014-6-11 18:17 | 只看该作者
FSL_TICS_Rita 发表于 2014-6-11 17:01
建议你使用LTIB编译,安装之前我给你的文档中的步骤进行安装就好的。

已测到这个份上了,假如方便,麻烦你帮忙测试一下。
主要一点是,按照开发文档居然会编译不过,担心开发环境是不是有隐藏未知问题.
另外,你的开发环境没有类似的问题 ?

使用特权

评论回复
17
lqland|  楼主 | 2014-6-11 18:22 | 只看该作者
FSL_TICS_Rita 发表于 2014-6-11 17:01
建议你使用LTIB编译,安装之前我给你的文档中的步骤进行安装就好的。

我现在的测试环境,就是按你之前的LTIB安装环境进行安装的。。

使用特权

评论回复
18
FSL_TICS_imx| | 2014-7-9 16:21 | 只看该作者
楼主你好,请问你帖中问题是否已经解决,如果没有的话欢迎继续在这里讨论,如果已解决麻烦帮忙结贴哈~~

使用特权

评论回复
19
zhaowei2648029| | 2014-7-14 11:23 | 只看该作者
make ARCH=arm?
这句话意思不太懂,ARCH=arm是设置环境变量的,make一般是编译等时候用到,这里连起来用是什么意思呢?

使用特权

评论回复
20
zhaowei2648029| | 2014-7-14 11:27 | 只看该作者
还有确认一下楼主主机里有没有以下目录呢?/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsllinaro-toolchain/bin/
这里面可以看到各种交叉编译的工具

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

78

主题

387

帖子

1

粉丝