Chinaunix

标题: 用crosstool工具构建交叉编译链时总是出这个问题recipe for target **failed 求助! [打印本页]

作者: 何时非ling    时间: 2015-04-05 22:26
标题: 用crosstool工具构建交叉编译链时总是出这个问题recipe for target **failed 求助!
./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./sha1.o ./alloca.o ./argv.o ./choose-temp.o ./concat.o ./cp-demint.o ./crc32.o ./d-demangle.o ./dwarfnames.o ./dyn-string.o ./fdmatch.o ./fibheap.o ./filename_cmp.o ./floatformat.o ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o ./lrealpath.o ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o ./obstack.o ./partition.o ./pexecute.o ./physmem.o ./pex-common.o ./pex-one.o ./pex-unix.o ./safe-ctype.o ./simple-object.o ./simple-object-coff.o ./simple-object-elf.o ./simple-object-mach-o.o ./simple-object-xcoff.o ./sort.o ./spaces.o ./splay-tree.o ./stack-limit.o ./strerror.o ./strsignal.o ./timeval-utils.o ./unlink-if-ordinary.o ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o ./xstrdup.o ./xstrerror.o ./xstrndup.o  ./setproctitle.o
/bin/bash: x86_64-host_unknown-linux-gnu-ar: 未找到命令
Makefile:246: recipe for target 'libiberty.a' failed
make[2]: *** [libiberty.a] Error 127
make[2]: Leaving directory '/home/ling/armlinux/crosstool/crosstool-0.43/build/arm-linux/gcc-4.9.2-glibc-2.9/build-binutils/libiberty'
Makefile:8038: recipe for target 'all-libiberty' failed
make[1]: *** [all-libiberty] Error 2
make[1]: Leaving directory '/home/ling/armlinux/crosstool/crosstool-0.43/build/arm-linux/gcc-4.9.2-glibc-2.9/build-binutils'
Makefile:832: recipe for target 'all' failed
make: *** [all] Error 2


如上是出问题的地方 本人小白 是在找不到突破口  还望大虾指点

作者: amarant    时间: 2015-04-08 15:48
/bin/bash: x86_64-host_unknown-linux-gnu-ar: 未找到命令
你应该更关注这条失败信息。遇到问题多搜索一下。
作者: 何时非ling    时间: 2015-04-09 15:19
本帖最后由 何时非ling 于 2015-04-09 15:23 编辑

回复 2# amarant


  这条信息搜索过了 也搜了几个论坛 都没找到相关信息啊。。我是按照网上的教程来构建的   也会出现其他问题 但都一一解决了 只是这个实在不知道咋整了 。我之前是分步构建各个模块,遇到了这个问题,解决不了,又改用crosstool工具构建,又碰到了它。。。。。阴魂不散
   还望大虾不吝赐教啊  
作者: amarant    时间: 2015-04-09 15:53
回复 3# 何时非ling


    看看环境变量设置对了没有吧
作者: 流氓无产者    时间: 2015-04-10 09:39
应该是cross chain没在PATH中
which x86_64-host_unknown-linux-gnu-ar
应该找不到
作者: 何时非ling    时间: 2015-04-10 16:06
回复 4# amarant


    这是我在bash.bashrc 里加的  export PATH=/opt/crosstool/gcc-4.9.2-glibc-2.9/arm-linux/binPATH
应该没啥问题吧?
作者: 何时非ling    时间: 2015-04-10 16:23
回复 5# 流氓无产者


     这是我在bash.bashrc 里加的  export PATH=/opt/crosstool/gcc-4.9.2-glibc-2.9/arm-linux/bin:$PATH
应该没啥问题吧?
作者: amarant    时间: 2015-04-10 17:20
回复 6# 何时非ling


    你的PATH里面没有这个命令,怎么加都不对呀。你需要增加一个有这条命令的PATH进去




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2