New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tensoflow C++ naive build - #53109
Comments
Thanks, but none of the solutions of the suggested issues worked. |
***How do I resolve the following download 404 message related to this issue: ***curl produces the same error: NoSuchKey The specified key does not exist.No such object: mirror.tensorflow.org/github.com/llvm/llvm-project/archive/43d6991c2a4cc2ac374e68c029634f2b59ffdfdf.tar.gz
|
Hi @dzorwulu ! Could you give the below command a try with TF 2.9 and Bazel 5.0.0 and let us know. Thank you! |
This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you. |
Closing as stale. Please reopen if you'd like to work on this further. |
Hello butler - |
F:\workdir\units\unit_1_asa\ai\project\c++\ml\dl\software\tensorflow\tf>git clone https://github.com/tensorflow/tensorflow.git . // checkout r2.9 -------------------------------------- F:\workdir\units\unit_1_asa\ai\project\c++\ml\dl\software\tensorflow\tf>git checkout r2.9 // build ----------------------------------------------- F:\workdir\units\unit_1_asa\ai\project\c++\ml\dl\software\tensorflow\tf>bazel build -c opt --config=monolithic //tensorflow:libtensorflow_cc.so stderr: Analyzing: target //tensorflow:libtensorflow_cc.so (104 packages loaded, 431 targets configured) stderr: Analyzing: target //tensorflow:libtensorflow_cc.so (104 packages loaded, 431 targets configured) stderr: Analyzing: target //tensorflow:libtensorflow_cc.so (105 packages loaded, 431 targets configured) F:\workdir\units\unit_1_asa\ai\project\c++\ml\dl\software\tensorflow\tf> |
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
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.
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/dl/software/tensorflow/tf/third_party/repo.bzl", line 104, column 25, in _tf_http_archive
_apply_patch(ctx, ctx.attr.patch_file)
File "F:/workdir/units/unit_1_asa/ai/project/c++/ml/dl/software/tensorflow/tf/third_party/repo.bzl", line 71, column 32, in _apply_patch
_execute_and_check_ret_code(ctx, cmd)
File "F:/workdir/units/unit_1_asa/ai/project/c++/ml/dl/software/tensorflow/tf/third_party/repo.bzl", line 52, column 13, in _execute_and_check_ret_code
fail(("Non-zero return code({1}) when executing '{0}':\n" + "Stdout: {2}\n" +
Error in fail: Non-zero return code(256) when executing '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"':
Stdout:
Stderr: java.io.IOException: ERROR: 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""): Access is denied.
(error: 5)
ERROR: Skipping 'tensorflow:tensorflow_cc': no such package '@com_google_protobuf//': Non-zero return code(256) when executing '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"':
Stdout:
Stderr: java.io.IOException: ERROR: 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""): Access is denied.
(error: 5)
WARNING: Target pattern parsing failed.
ERROR: no such package '@com_google_protobuf//': Non-zero return code(256) when executing '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"':
Stdout:
Stderr: java.io.IOException: ERROR: 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""): Access is denied.
(error: 5)
INFO: Elapsed time: 3.311s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
currently loading: tensorflow
The text was updated successfully, but these errors were encountered: