求助! 从源码编译出错!error cloning io_bazel_rules_docker
发布于 9天前 作者 david 来自问答


求助! 从源码编译出错!

bazel 编译 tensorflow2.0 提示一下错误:



[speech@VM_0_9_centos tensorflow]$ bazel build -c opt --copt=-march=native --config=monolithic --config=mkl --config=v2 //tensorflow/tools/pip_package:build_pip_package
WARNING: The following configs were expanded more than once: [v2]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.
INFO: Options provided by the client:
Inherited 'common' options: --isatty=1 --terminal_columns=189
INFO: Reading rc options for 'build' from /home/speech/research/tensorflow/tensorflow/.bazelrc:
'build' options: --apple_platform_type=macos --define framework_shared_object=true --define open_source_build=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone --strategy=Genrule=standalone -c opt --announce_rc --define=grpc_no_ares=true --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --config=v2
INFO: Reading rc options for 'build' from /home/speech/research/tensorflow/tensorflow/.tf_configure.bazelrc:
'build' options: --action_env PYTHON_BIN_PATH=/usr/bin/python3 --action_env PYTHON_LIB_PATH=/usr/local/lib64/python3.6/site-packages --python_path=/usr/bin/python3 --config=xla --action_env TF_CONFIGURE_IOS=0
INFO: Found applicable config definition build:v2 in file /home/speech/research/tensorflow/tensorflow/.bazelrc: --define=tf_api_version=2
INFO: Found applicable config definition build:xla in file /home/speech/research/tensorflow/tensorflow/.tf_configure.bazelrc: --define with_xla_support=true
INFO: Found applicable config definition build:monolithic in file /home/speech/research/tensorflow/tensorflow/.bazelrc: --define framework_shared_object=false
INFO: Found applicable config definition build:mkl in file /home/speech/research/tensorflow/tensorflow/.bazelrc: --define=build_with_mkl=true --define=enable_mkl=true --define=tensorflow_mkldnn_contraction_kernel=0 -c opt
INFO: Found applicable config definition build:v2 in file /home/speech/research/tensorflow/tensorflow/.bazelrc: --define=tf_api_version=2
INFO: Call stack for the definition of repository 'io_bazel_rules_docker' which is a git_repository (rule definition at /home/speech/.cache/bazel/_bazel_speech/aeb0ed8d4068bb1bac9ae4224f645e91/external/bazel_tools/tools/build_defs/repo/git.bzl:252:18):
- /home/speech/.cache/bazel/_bazel_speech/aeb0ed8d4068bb1bac9ae4224f645e91/external/bazel_toolchains/repositories/repositories.bzl:37:9
- /home/speech/research/tensorflow/tensorflow/WORKSPACE:35:1
ERROR: An error occurred during the fetch of repository 'io_bazel_rules_docker':
Traceback (most recent call last):
File "/home/speech/.cache/bazel/_bazel_speech/aeb0ed8d4068bb1bac9ae4224f645e91/external/bazel_tools/tools/build_defs/repo/git.bzl", line 234
_clone_or_update(ctx)
File "/home/speech/.cache/bazel/_bazel_speech/aeb0ed8d4068bb1bac9ae4224f645e91/external/bazel_tools/tools/build_defs/repo/git.bzl", line 74, in _clone_or_update
fail(("error cloning %s:\n%s" % (ctx....)))
error cloning io_bazel_rules_docker:
+ cd /home/speech/.cache/bazel/_bazel_speech/aeb0ed8d4068bb1bac9ae4224f645e91/external
+ rm -rf /home/speech/.cache/bazel/_bazel_speech/aeb0ed8d4068bb1bac9ae4224f645e91/external/io_bazel_rules_docker /home/speech/.cache/bazel/_bazel_speech/aeb0ed8d4068bb1bac9ae4224f645e91/external/io_bazel_rules_docker
+ git clone '' https://github.com/bazelbuild/rules_docker.git /home/speech/.cache/bazel/_bazel_speech/aeb0ed8d4068bb1bac9ae4224f645e91/external/io_bazel_rules_docker
fatal: Too many arguments.


求助!

回到顶部