【发布时间】:2017-12-29 19:37:21
【问题描述】:
我尝试使用 bazel 构建 tensorflow-serving,但在构建过程中遇到了一些错误
ERROR:/private/var/tmp/_bazel_Kakadu/3f0c35881c95d2c43f04614911c03a57/external/local_config_cc/BUILD:49:5: in apple_cc_toolchain rule @local_config_cc//:cc-compiler-darwin_x86_64: Xcode version must be specified to use an Apple CROSSTOOL.
ERROR: Analysis of target '//tensorflow_serving/sources/storage_path:file_system_storage_path_source_proto' failed; build aborted.
我已经尝试使用bazel clean 和bazel clean --expunge,但它没有帮助,Bazel 仍然看不到我的 xcode(我想),但它已完全安装。我什至重新安装它以确保一切正常,但错误并没有消失
我的 Bazel 版本是
Build label: 0.5.2-homebrew
Build target: bazel-out/darwin_x86_64-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Thu Jul 13 12:29:40 2017 (1499948980)
Build timestamp: 1499948980
Build timestamp as int: 1499948980
KakaduDevs-Mac-mini:serving Kakadu$
操作系统是 MacOS Sierra 版本 10.12.5
我应该怎么做才能在 bazel 中指定 Xcode 版本以避免此错误?似乎该错误很常见,但我还没有找到如何制作 bazel 构建。 P.S 我正在尝试按照此处解释的方式安装 tensorflow-serving。 https://tensorflow.github.io/serving/setup
【问题讨论】:
标签: tensorflow bazel tensorflow-serving