tensorflow: build failed with bazel 4.2.1 ( windows 10 )
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: N/A
- TensorFlow installed from (source or binary): source
- TensorFlow version: 2.7.0rc0
- Python version: 3.9.7
- Installed using virtualenv? pip? conda?: N/A
- Bazel version (if compiling from source): 4.2.1
- GCC/Compiler version (if compiling from source): Visual Studio 2019
- CUDA/cuDNN version: 11.4 / 8.2.6
- GPU model and memory: RTX3090 GDDR6X 24GB
Describe the problem
build error (permission)
Provide the exact sequence of commands / steps that you executed before running into the problem
bazel build --copt=-nvcc_options=disable-warnings --define=no_tensorflow_py_deps=true //tensorflow/tools/pip_package:build_pip_package
Any other info / logs Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
INFO: Repository llvm-project instantiated at:
D:/repo/tensorflow/WORKSPACE:15:14: in <toplevel>
D:/repo/tensorflow/tensorflow/workspace2.bzl:1090:21: in workspace
D:/repo/tensorflow/tensorflow/workspace2.bzl:654:15: in _tf_repositories
D:/repo/tensorflow/third_party/llvm/setup.bzl:10:19: in llvm_setup
Repository rule llvm_configure defined at:
C:/users/alanp/_bazel_alanp/ibqopsat/external/llvm-raw/utils/bazel/configure.bzl:83:33: in <toplevel>
ERROR: An error occurred during the fetch of repository 'llvm-project':
Traceback (most recent call last):
File "C:/users/alanp/_bazel_alanp/ibqopsat/external/llvm-raw/utils/bazel/configure.bzl", line 73, column 25, in _llvm_configure_impl
_overlay_directories(repository_ctx)
File "C:/users/alanp/_bazel_alanp/ibqopsat/external/llvm-raw/utils/bazel/configure.bzl", line 62, column 13, in _overlay_directories
fail(("Failed to execute overlay script: '{cmd}'\n" +
Error in fail: Failed to execute overlay script: 'D:/anaconda3/python.exe C:/users/alanp/_bazel_alanp/ibqopsat/external/llvm-raw/utils/bazel/overlay_directories.py --src C:/users/alanp/_bazel_alanp/ibqopsat/external/llvm-raw --overlay C:/users/alanp/_bazel_alanp/ibqopsat/external/llvm-raw/utils/bazel/llvm-project-overlay --target .'
Exited with code 1
stdout:
stderr:
Traceback (most recent call last):
File "C:\users\alanp\_bazel_alanp\ibqopsat\external\llvm-raw\utils\bazel\overlay_directories.py", line 92, in <module>
main(parse_arguments())
File "C:\users\alanp\_bazel_alanp\ibqopsat\external\llvm-raw\utils\bazel\overlay_directories.py", line 80, in main
_symlink_abs(os.path.join(args.overlay, relpath),
File "C:\users\alanp\_bazel_alanp\ibqopsat\external\llvm-raw\utils\bazel\overlay_directories.py", line 64, in _symlink_abs
os.symlink(os.path.abspath(from_path), os.path.abspath(to_path))
OSError: [WinError 1314] A required privilege is not held by the client: 'C:\\users\\alanp\\_bazel_alanp\\ibqopsat\\external\\llvm-raw\\utils\\bazel\\llvm-project-overlay\\.bazelignore' -> 'C:\\users\\alanp\\_bazel_alanp\\ibqopsat\\external\\llvm-project\\.bazelignore'
ERROR: Error fetching repository: Traceback (most recent call last):
File "C:/users/alanp/_bazel_alanp/ibqopsat/external/llvm-raw/utils/bazel/configure.bzl", line 73, column 25, in _llvm_configure_impl
_overlay_directories(repository_ctx)
File "C:/users/alanp/_bazel_alanp/ibqopsat/external/llvm-raw/utils/bazel/configure.bzl", line 62, column 13, in _overlay_directories
fail(("Failed to execute overlay script: '{cmd}'\n" +
Error in fail: Failed to execute overlay script: 'D:/anaconda3/python.exe C:/users/alanp/_bazel_alanp/ibqopsat/external/llvm-raw/utils/bazel/overlay_directories.py --src C:/users/alanp/_bazel_alanp/ibqopsat/external/llvm-raw --overlay C:/users/alanp/_bazel_alanp/ibqopsat/external/llvm-raw/utils/bazel/llvm-project-overlay --target .'
Exited with code 1
stdout:
stderr:
Traceback (most recent call last):
File "C:\users\alanp\_bazel_alanp\ibqopsat\external\llvm-raw\utils\bazel\overlay_directories.py", line 92, in <module>
main(parse_arguments())
File "C:\users\alanp\_bazel_alanp\ibqopsat\external\llvm-raw\utils\bazel\overlay_directories.py", line 80, in main
_symlink_abs(os.path.join(args.overlay, relpath),
File "C:\users\alanp\_bazel_alanp\ibqopsat\external\llvm-raw\utils\bazel\overlay_directories.py", line 64, in _symlink_abs
os.symlink(os.path.abspath(from_path), os.path.abspath(to_path))
OSError: [WinError 1314] A required privilege is not held by the client: 'C:\\users\\alanp\\_bazel_alanp\\ibqopsat\\external\\llvm-raw\\utils\\bazel\\llvm-project-overlay\\.bazelignore' -> 'C:\\users\\alanp\\_bazel_alanp\\ibqopsat\\external\\llvm-project\\.bazelignore'
ERROR: D:/repo/tensorflow/tensorflow/tools/pip_package/BUILD:278:10: //tensorflow/tools/pip_package:build_pip_package depends on //tensorflow/compiler/mlir/tensorflow:gen_mlir_passthrough_op_py in repository @ which failed to fetch. no such package '@llvm-project//mlir': Failed to execute overlay script: 'D:/anaconda3/python.exe C:/users/alanp/_bazel_alanp/ibqopsat/external/llvm-raw/utils/bazel/overlay_directories.py --src C:/users/alanp/_bazel_alanp/ibqopsat/external/llvm-raw --overlay C:/users/alanp/_bazel_alanp/ibqopsat/external/llvm-raw/utils/bazel/llvm-project-overlay --target .'
Exited with code 1
stdout:
stderr:
Traceback (most recent call last):
File "C:\users\alanp\_bazel_alanp\ibqopsat\external\llvm-raw\utils\bazel\overlay_directories.py", line 92, in <module>
main(parse_arguments())
File "C:\users\alanp\_bazel_alanp\ibqopsat\external\llvm-raw\utils\bazel\overlay_directories.py", line 80, in main
_symlink_abs(os.path.join(args.overlay, relpath),
File "C:\users\alanp\_bazel_alanp\ibqopsat\external\llvm-raw\utils\bazel\overlay_directories.py", line 64, in _symlink_abs
os.symlink(os.path.abspath(from_path), os.path.abspath(to_path))
OSError: [WinError 1314] A required privilege is not held by the client: 'C:\\users\\alanp\\_bazel_alanp\\ibqopsat\\external\\llvm-raw\\utils\\bazel\\llvm-project-overlay\\.bazelignore' -> 'C:\\users\\alanp\\_bazel_alanp\\ibqopsat\\external\\llvm-project\\.bazelignore'
ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: Analysis failed
INFO: Elapsed time: 110.401s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (53 packages loaded, 14 targets configured)
currently loading: tensorflow/lite/python ... (2 packages)
Fetching @flatbuffers; fetching
Fetching ...uffers; Extracting C:/users/alanp/_bazel_alanp/ibqopsat/external/flatbuffers/temp10953078659403648945/\
v1.12.0.tar.gz
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 20 (10 by maintainers)
@sushreebarsa I’ve already told… see the above comment