当我通过Mac编译TensorFlow源代码时,遇到以下问题:
ERROR: /private/var/tmp/_bazel_xmly/88507af8aae72d6d7037a76bc898c925/external/protobuf_archive/BUILD:260: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:libtensorflow_cc.so failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 1.394s, Critical Path: 0.40s
INFO: 0 processes.
FAILED: Build did NOT complete successfully
有人可以帮助我吗?
我已经尝试过的方法是:
./configure
bazel build -c opt //tensorflow:libtensorflow_cc.so