【问题标题】:Bazel Build Mnist Serving Interface Fail on OSX El CapitanBazel 在 OSX El Capitan 上构建 Mnist 服务接口失败
【发布时间】: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",
)

【问题讨论】:

标签: tensorflow tensorflow-serving


【解决方案1】:

找到了使用 docker 的临时修复。似乎现在 OSX 存在已知问题。

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

【讨论】:

    猜你喜欢
    • 2016-12-12
    • 1970-01-01
    • 2016-10-29
    • 1970-01-01
    • 1970-01-01
    • 2016-09-14
    • 2016-05-08
    • 1970-01-01
    • 2016-10-20
    相关资源
    最近更新 更多