ERROR,使用bazel从源代码编译tensorflow时

时间:2017-04-19 13:47:51

标签: python tensorflow bazel

我尝试关注lgor's methodOption 4 - Compile tensorflow from source。 我没有使用root权限,我使用CentOS 7.0python 3.5 in Anacoda3's virtual environment

到目前为止,我已经尝试了step 1-7。但是当我在bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package之后尝试./configure(没有GPU,请参阅here)时,我收到了以下错误:

ERROR: /mnt/home/xx/dl_tensor/tensorflow/tensorflow/core/BUILD:168:1: null failed: protoc failed: error executing command bazel-out/host/bin/external/protobuf/protoc '--python_out=bazel-out/local-py3-opt/genfiles/' -I. -Iexternal/protobuf/python -Ibazel-out/local-py3-opt/genfiles/external/protobuf/python ... (remaining 38 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
bazel-out/host/bin/external/protobuf/protoc: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by bazel-out/host/bin/external/protobuf/protoc)
bazel-out/host/bin/external/protobuf/protoc: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by bazel-out/host/bin/external/protobuf/protoc)
bazel-out/host/bin/external/protobuf/protoc: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by bazel-out/host/bin/external/protobuf/protoc)
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.

我无法弄清楚它有什么问题,请给我一个帮助!

0 个答案:

没有答案