在Mac上通过Sources构建TensorFlow 1.7时出错

时间:2018-07-05 15:52:14

标签: tensorflow

我正在尝试从Mac上在Mac上构建TensorFlow 1.7,这引发了我这个错误:

ERROR: /private/var/tmp/_bazel_MattLem/bfcff3d12fe85b0d0756749577ef2f1f/external/protobuf_archive/BUILD:259:1: Linking of rule ‘@protobuf_archive//:js_embed’ failed (Exit 1)
ld: unknown option: -no-as-needed
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 69.677s, Critical Path: 4.50s
INFO: 5 processes: 5 local.
FAILED: Build did NOT complete successfully

如何解决此错误?

1 个答案:

答案 0 :(得分:0)

这是一个Bazel错误:https://github.com/bazelbuild/bazel/issues/5468。降级可能有效。