首页 文章

从Mac上的Sources构建TensorFlow 1.7时出错

提问于
浏览
1

我正试图在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

How can I fix this error?

1 回答

相关问题