- Please make sure that this is a build/installation issue. As per our GitHub Policy , we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template*
System information - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
- Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: no
- TensorFlow installed from (source or binary): source
- TensorFlow version: 2.0 (also tried versions up to to 2.7)
- Python version: 3.9.8
- Installed using virtualenv? pip? conda?:
- Bazel version (if compiling from source): 3.7.2
- GCC/Compiler version (if compiling from source): gcc 10.2
- CUDA/cuDNN version: 11.5/8.0
- GPU model and memory: NVidia Geforce 940MX
Describe the problem
An error occurred during the fetch of repository 'com_google_protobuf':
Provide the exact sequence of commands / steps that you executed before running into the problem
git clone https://github.com/tensorflow/tensorflow.git .
git checkout r2.0
bazel clean
configure
bazel build tensorflow:tensorflow_cc
Any other info / logs
F:\workdir\units\unit_1_asa\ai\project\c++\ml\dl\software\tensorflow\tf>bazel build tensorflow:tensorflow_cc
INFO: Reading 'startup' options from c:\users\seth a quarshie.bazelrc: --output_user_root=F:/workdir/units/unit_1_asa/ai/project/c++/ml/dl/software/dl-tool/bazel/.bazel
INFO: Options provided by the client:
Inherited 'common' options: --isatty=1 --terminal_columns=126
INFO: Options provided by the client:
'build' options: --python_path=F:/workdir/units/unit_1_asa/ai/project/c++/ml/dl/software/dl-tool/python/python.exe
INFO: Reading rc options for 'build' from f:\workdir\units\unit_1_asa\ai\project\c++\ml\dl\software\tensorflow\tf.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 -c opt --announce_rc --define=grpc_no_ares=true --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --copt=-w --config=v2
INFO: Found applicable config definition build:v2 in file f:\workdir\units\unit_1_asa\ai\project\c++\ml\dl\software\tensorflow\tf.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Repository com_google_protobuf instantiated at:
F:/workdir/units/unit_1_asa/ai/project/c++/ml/dl/software/tensorflow/tf/WORKSPACE:19:16: in
F:/workdir/units/unit_1_asa/ai/project/c++/ml/dl/software/tensorflow/tf/tensorflow/workspace.bzl:432:20: in tf_repositories
Repository rule tf_http_archive defined at:
F:/workdir/units/unit_1_asa/ai/project/c++/ml/dl/software/tensorflow/tf/third_party/repo.bzl:124:34: in
INFO: Repository 'com_google_protobuf' used the following cache hits instead of downloading the corresponding file.
- Hash 'b9e92f9af8819bbbc514e2902aec860415b70209f31dfc8c4fa72515a5df9d59' for https://storage.googleapis.com/mirror.tensorflow.org/github.com/protocolbuffers/protobuf/archive/310ba5ee72661c081129eb878c1bbcec936b20f0.tar.gz
If the definition of 'com_google_protobuf' was updated, verify that the hashes were also updated.
ERROR: An error occurred during the fetch of repository 'com_google_protobuf':
Traceback (most recent call last):
File "F:/workdir/units/unit_1_asa/ai/project/c++/ml
错误:跳过 'tensorflow:tensorflow_cc':没有这样的包 '@com_google_protobuf//':非零返回代码(256)在执行 'F:\workdir\units\unit_1_asa\ai\project\c++\ml\dl\software\dl-tool\msys2\msys64\usr\bin -l -c "patch" "-p1" "-d" "F:/workdir/units/unit_1_asa/ai/project/c++/ml/dl/software/dl-tool/bazel/.bazel/6iwvpnw5/external/com_google_protobuf" "-i" "F:/workdir/units/unit_1_asa/ai/project/c++/ml/dl/software/tensorflow/tf/third_party/protobuf/protobuf.patch"':
标准输出:
标准错误:java.io.IOException: 错误:src/main/native/windows/process.cc(202): CreateProcessW("F:\workdir\units\unit_1_asa\ai\project\c++\ml\dl\software\dl-tool\msys2\msys64\usr\bin" -l -c ""patch" "-p1" "-d" "F:/workdir/units/unit_1_asa/ai/project/c++/ml/dl/software/dl-tool/bazel/.bazel/6iwvpnw5/external/com_google_protobuf" "-i" "F:/workdir/units/unit_1_asa/ai/project/c++/ml/dl/software/tensorflow/tf/third_party/protobuf/protobuf.patch""):访问被拒绝。
(错误:5)
警告:目标模式解析失败。
错误:没有这样的包 '@com_google_protobuf//':非零返回代码(256)在执行 'F:\workdir\units\unit_1_asa\ai\project\c++\ml\dl\software\dl-tool\msys2\msys64\usr\bin -l -c "patch" "-p1" "-d" "F:/workdir/units/unit_1_asa/ai/project/c++/ml/dl/software/dl-tool/bazel/.bazel/6iwvpnw5/external/com_google_protobuf" "-i" "F:/workdir/units/unit_1_asa/ai/project/c++/ml/dl/software/tensorflow/tf/third_party/protobuf/protobuf.patch"':
标准输出:
标准错误:java.io.IOException: 错误:src/main/native/windows/process.cc(202): CreateProcessW("F:\workdir\units\unit_1_asa\ai\project\c++\ml\dl\software\dl-tool\msys2\msys64\usr\bin" -l -c ""patch" "-p1" "-d" "F:/workdir/units/unit_1_asa
9条答案
按热度按时间uidvcgyl1#
@dzorwulu,
请查看这个链接 1 、 2 和 3,它们有类似的错误。这会有所帮助。谢谢!
l3zydbqr2#
谢谢,但所建议的问题的解决方案都没有奏效。请提出其他解决措施。
ybzsozfc3#
如何解决与此问题相关的以下下载404消息:
警告:从 https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/43d6991c2a4cc2ac374e68c029634f2b59ffdfdf.tar.gz 下载失败:类 com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET 返回 404 Not Found
警告:从 http://mirror.tensorflow.org/github.com/tensorflow/runtime/archive/64c92c8013b557087351c91b5423b6046d10f206.tar.gz 下载失败:类 com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET 返回 404 Not Found
curl 也产生相同的错误:
curl https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/43d6991c2a4cc2ac374e68c029634f2b59ffdfdf.tar.gz
NoSuchKey
指定的密钥不存在。没有这样的对象:mirror.tensorflow.org/github.com/llvm/llvm-project/archive/43d6991c2a4cc2ac374e68c029634f2b59ffdfdf.tar.gzvvppvyoh4#
你好!@dzorwulu !你能尝试在 TensorFlow 2.9 和 Bazel 5.0.0 上运行以下命令,并告诉我们结果吗?谢谢!
$
bazel build -c opt --config=monolithic //tensorflow:libtensorflow_cc.so
$3mpgtkmj5#
这个问题已经被自动标记为过时,因为它没有最近的活动。如果没有进一步的活动发生,它将被关闭。谢谢。
nuypyhwy6#
关闭为陈旧状态。如果您想进一步处理此问题,请重新打开。
yqhsw0fo7#
你对你的问题的解决是否满意?
是
否
2o7dmzc58#
你好,管家-
建议的构建没有成功。LLVM包问题再次出现。这些文件的密钥是否错误?请查看附件中的日志文件。
js5cn81o9#