【发布时间】:2016-03-27 22:40:54
【问题描述】:
我正在尝试在 OSX El Capitan 上构建 TensorFlow 服务基础教程,但遇到了这个错误。有什么想法吗?
这是教程的链接:https://tensorflow.github.io/serving/serving_basic
$ bazel build //tensorflow_serving/example:mnist_inference
INFO: Found 1 target...
ERROR: /Users/robertgrzesik/Documents/Development/TensorFlow/serving/tensorflow_serving/example/BUILD:53:1: Linking of rule '//tensorflow_serving/example:mnist_inference' failed: osx_gcc_wrapper.sh failed: error executing command external/bazel_tools/tools/cpp/osx_gcc_wrapper.sh -o bazel-out/local_darwin-fastbuild/bin/tensorflow_serving/example/mnist_inference ... (remaining 512 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
clang: warning: argument unused during compilation: '-pthread'
ld: warning: option -noall_load is obsolete and being ignored
ld: warning: option -noall_load is obsolete and being ignored
ld: warning: option -noall_load is obsolete and being ignored
ld: warning: option -noall_load is obsolete and being ignored
ld: warning: option -noall_load is obsolete and being ignored
ld: warning: option -noall_load is obsolete and being ignored
我的 WORKSPACE 文件也进行了此更改(基于 this 讨论):
git_repository(
name = "boringssl_git",
commit = "32bfe16a53ad13523eadce08dd2f835bc2b0b52d",
init_submodules = True,
remote = "https://github.com/ctiller/boringssl-bazel",
)
【问题讨论】:
-
找到了使用 docker 的临时修复。似乎现在 OSX 存在已知问题:tensorflow.github.io/serving/docker
标签: tensorflow tensorflow-serving