Python Tensorflow使用Bazel构建失败
提前为文本转储道歉 我正试图根据以下说明使用Bazel在OSX 10.13.4中编译Tensorflow: 我尝试使用以下命令进行生成:Python Tensorflow使用Bazel构建失败,python,tensorflow,bazel,Python,Tensorflow,Bazel,提前为文本转储道歉 我正试图根据以下说明使用Bazel在OSX 10.13.4中编译Tensorflow: 我尝试使用以下命令进行生成: bazel build --config=cuda --config=opt --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" --action_env PATH --action_env LD_LIBRARY_PATH --action_env DYLD_LIBRARY_PATH //tensorflow/to
bazel build --config=cuda --config=opt --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" --action_env PATH --action_env LD_LIBRARY_PATH --action_env DYLD_LIBRARY_PATH //tensorflow/tools/pip_package:build_pip_package
以下是所有相关程序的版本:
Python:3.6
CUDA:10.0
cuDNN:7.4
Tensorflow:
GPU:NVIDIA GTX 980
Bazel版本:0.16.1
以下是详细的错误信息以及一些运行信息:
5 warnings generated.
ERROR: /Users/brianmoser/tensorflow-gpu-macosx/tensorflow/core/kernels/BUILD:3423:1: error while parsing .d file: /private/var/tmp/_bazel_brianmoser/9608e82147ff56f68b42fd19bee93cb0/execroot/org_tensorflow/bazel-out/darwin-opt/bin/tensorflow/core/kernels/_objs/bincount_op_gpu/bincount_op_gpu.cu.d (No such file or directory) nvcc fatal : The version ('10.0') of the host compiler ('Apple clang') is not supported 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: 1407.017s, Critical Path: 63.10s INFO: 2389 processes: 2389 local. FAILED: Build did NOT complete successfully
Additionally, here is the final step the build conducted:
tensorflow/stream_executor/cuda/cuda_dnn.cc:1506:19: warning: private field 'data_type_' is not used [-Wunused-private-field] cudnnDataType_t data_type_;
最后,以下是最终相关信息:
git rev-parse HEAD 795d7c36152a1f96adca0c48f4537e500f5ad36b
bazel version Build label: 0.16.1
Build target:
bazel-out/darwin-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
有人知道这一错误的原因吗?您是否阅读了错误消息?有
不支持主机编译器('Apple clang')的版本('10.0')
。还有。。。(没有这样的文件或目录)
。也许它需要更多的东西来编译它。链接中的说明已有1年的历史,tensorflow
可能会更改代码中的许多元素。