Bazel Build Mnist服务接口在OSX El Capitan上失败

时间:2016-03-27 22:40:55

标签: tensorflow tensorflow-serving

我试图在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",
)

1 个答案:

答案 0 :(得分:0)

找到使用docker的临时修复程序。现在看来OSX已经存在已知问题。

可以在此处找到Docker安装说明:http://tensorflow.github.io/serving/docker