Bazel建造Retrainer失败

时间:2016-05-03 05:03:32

标签: python tensorflow bazel

在OSX上的this之后的TensorFlow中安装训练器时(10.9.5),Bazel:0.2.2-b,CUDA:7.5,cuDNN:v5 python:2.7

$bazel build tensorflow/examples/image_retraining:retrain

我遇到以下错误。有什么想法吗?

  

错误:/ Users / hoshinotoshihiko / tensorflow / google / protobuf / BUILD:272:1:   规则'// google / protobuf:protoc'的C ++编译失败:   osx_cc_wrapper.sh失败了:

     

错误执行命令   (CD /私营/ var / tmp中/ _bazel_hoshinotoshihiko / ff5db7423b3afa0d045a736d77207f89 / tensorflow   &安培;&安培; \ exec env -   \ PATH ='/ usr / local / lib:/ usr / lib:/ Users / hoshinotoshihiko / exec -l   /bin/bash/google-cloud-sdk/bin:/usr/local/cuda/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/bin:/bin:/usr/sbin: / sbin目录:在/ usr / local / bin中:/用户/ hoshinotoshihiko / bin'TMPDIR = /变种/文件夹/ Y6 / 78v3zz4j1bj6nq7bl82c3cj80000gn / T /   \ external / local_config_cc / osx_cc_wrapper.sh -U_FORTIFY_SOURCE   '-D_FORTIFY_SOURCE = 1'-fstack-protector -Wall -Wthread-safety   -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fcolor-diagnostics -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections -g0' - std = c ++ 0x'-iquote。 -iquote bazel-out / host / genfiles -iquote external / bazel_tools -iquote   bazel-out / host / genfiles / external / bazel_tools -isystem   google / protobuf / src -isystem   bazel-out / host / genfiles / google / protobuf / src -isystem   external / bazel_tools / tools / cpp / gcc3 -no-canonical-prefixes   -fno-canonical-system-headers -Wno-builtin-macro-redefined'-D__DATE __ =“redacted”'' - D__TIMESTAMP __ =“redacted”'   '-D__TIME __ = “绝密”'   '-frandom种子=巴泽勒出/主机/ bin中/谷歌/ protobuf的/ _objs / protoc /谷歌/ protobuf的/ SRC /谷歌/ protobuf的/编译器/ main.o'   -MD -MF bazel-out / host / bin / google / protobuf / _objs / protoc / google / protobuf / src / google / protobuf / compiler / main.d   -c google / protobuf / src / google / protobuf / compiler / main.cc -o bazel-out / host / bin / google / protobuf / _objs / protoc / google / protobuf / src / google / protobuf / compiler / main.o ):

     

com.google.devtools.build.lib.shell.BadExitStatusException:进程   以状态126退出。

     

external / local_config_cc / osx_cc_wrapper.sh:第56行:   / usr / local / lib / gcc:是一个目录

     

目标// tensorflow / examples / image_retraining:重新训练无法构建

     

信息:经过的时间:20.672秒,关键路径:20.22秒

2 个答案:

答案 0 :(得分:1)

这是因为机器的性能 通过更换机器(MacBook Air(Mid2012)(4GB内存)→MacBook Pro(Mid2014)(16GB内存),我能够构建。

答案 1 :(得分:0)

尝试使用google的dockerfile开始张量流程:

https://tensorflow.googlesource.com/tensorflow/+/master/tensorflow/tools/docker/Dockerfile.devel

如果您在该环境中遇到问题,请重新发布。