我之前一直使用FC4作为u-boot的编译环境。 最近操作系统换为Ubuntu7.10,还是按照以前的办法安装交叉编译工具,然后在.bashrc文件中添加交叉编译工具路径 export PATH=/usr/local/arm/3.3.2/bin:$PATH
可是在使用make命令编译u-boot时出现下面的错误,麻烦大家看看是怎么回事,百思不得其解
make: arm-linux-gcc:命令未找到 for dir in tools examples post post/cpu ; do make -C $dir _depend ; done make[1]: arm-linux-gcc:命令未找到 make[1]: Entering directory `/usr/tmp/u-boot-1.1.6/tools' ln -s ../common/environment.c environment.c ln -s ../lib_generic/crc32.c crc32.c make[1]: Leaving directory `/usr/tmp/u-boot-1.1.6/tools' make[1]: arm-linux-gcc:命令未找到 make[1]: Entering directory `/usr/tmp/u-boot-1.1.6/tools' make[1]: Nothing to be done for `_depend'. make[1]: Leaving directory `/usr/tmp/u-boot-1.1.6/tools' make[1]: arm-linux-gcc:命令未找到 make[1]: Entering directory `/usr/tmp/u-boot-1.1.6/examples' /bin/sh: arm-linux-gcc: not found dirname: 缺少操作数 请尝试执行‘dirname --help’来获取更多信息。 /bin/sh: arm-linux-gcc: not found dirname: 缺少操作数 请尝试执行‘dirname --help’来获取更多信息。 /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found make[1]: *** 没有规则可以创建“_depend”需要的目标“.depend”。 停止。 make[1]: Leaving directory `/usr/tmp/u-boot-1.1.6/examples' make[1]: arm-linux-gcc:命令未找到 make[1]: Entering directory `/usr/tmp/u-boot-1.1.6/post' /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found make[1]: *** 没有规则可以创建“_depend”需要的目标“.depend”。 停止。 make[1]: Leaving directory `/usr/tmp/u-boot-1.1.6/post' make[1]: arm-linux-gcc:命令未找到 make[1]: Entering directory `/usr/tmp/u-boot-1.1.6/post/cpu' /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found /bin/sh: arm-linux-gcc: not found make[1]: *** 没有规则可以创建“_depend”需要的目标“.depend”。 停止。 make[1]: Leaving directory `/usr/tmp/u-boot-1.1.6/post/cpu' make: *** [depend] 错误 2
|