bazelbuild / bazelbuild/rules_rust
Permission error for pipeline compilation on Windows
- Dominant language
- Starlark
- Stars
- 843
- Forks
- 651
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 15
Description
Noticed this flake in a recent build.
```
ERROR: C:/b/bk-windows-lx9b/bazel/rules-rust-rustlang/test/unit/pipelined_compilation/BUILD.bazel:4:33: Compiling Rust rlib wrapper_with_metadata (1 files) failed: (Exit 1): process_wrapper.exe failed: error executing Rustc command (from target //test/unit/pipelined_compilation:wrapper_with_metadata)
cd /d C:/b/mphvanbg/execroot/_main
SET CARGO_CFG_TARGET_ARCH=x86_64
SET CARGO_CFG_TARGET_OS=windows
SET CARGO_CRATE_NAME=wrapper
SET CARGO_MANIFEST_DIR=${pwd}/test/unit/pipelined_compilation
SET CARGO_PKG_AUTHORS=
SET CARGO_PKG_DESCRIPTION=
SET CARGO_PKG_HOMEPAGE=
SET CARGO_PKG_NAME=wrapper_with_metadata
SET CARGO_PKG_VERSION=0.0.0
SET CARGO_PKG_VERSION_MAJOR=0
SET CARGO_PKG_VERSION_MINOR=0
SET CARGO_PKG_VERSION_PATCH=0
SET CARGO_PKG_VERSION_PRE=
SET PATH=C:\tools\msys64\usr\bin;C:\tools\msys64\bin;C:\Windows;C:\Windows\System32;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Users\b\AppData\Local\bazelisk\downloads\sha256\095b026edb1282a20fbf873e43ee9aea43e0845a79c55a1abd5b22bb165d74b4\bin;C:\python3\Scripts\;C:\python3\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\ProgramData\GooGet;C:\Program Files\Google\Compute Engine\metadata_scripts;C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin;C:\Program Files\PowerShell\7\;C:\Program Files\Google\Compute Engine\sysprep;C:\ProgramData\chocolatey\bin;C:\Program Files\LLVM\bin;C:\Program Files (x86)\LLVM\bin;C:\tools\msys64\usr\bin;C:\tools\msys64\mingw64\bin;C:\Program Files\Git\cmd;c:\openjdk21\bin;c:\bazel;c:\buildkite
SET REPOSITORY_NAME=
SET RUNFILES_MANIFEST_ONLY=1
bazel-out\x64_windows-opt-exec-ST-d57f47055a04\bin\util\process_wrapper\process_wrapper.exe --subst pwd=${pwd} --rustc-output-format rendered -- bazel-out/x64_windows-opt/bin/external/+rust+rw-1704990954_tools/rust_toolchain/bin/rustc.exe bazel-out/x64_windows-opt/bin/test/unit/pipelined_compilation/wrapper_with_metadata_wrapped.rs --crate-name=wrapper --crate-type=rlib --json=artifacts --error-format=json --codegen=metadata=--1409393977 --codegen=extra-filename=--1409393977 --out-dir=bazel-out/x64_windows-opt/bin/test/unit/pipelined_compilation --codegen=opt-level=3 --codegen=debuginfo=0 --codegen=strip=debuginfo --remap-path-prefix=${pwd}= --emit=dep-info,link,metadata --target=x86_64-pc-windows-msvc -L bazel-out/x64_windows-opt/bin/external/+rust+rw-1704990954_tools/rust_toolchain/lib/rustlib/x86_64-pc-windows-msvc/lib --edition=2018 -Cembed-bitcode=no --extern=to_wrap=bazel-out/x64_windows-opt/bin/test/unit/pipelined_compilation/libto_wrap-578337248.rlib -Ldependency=bazel-out/x64_windows-opt/bin/test/unit/pipelined_compilation --sysroot=bazel-out/x64_windows-opt/bin/external/+rust+rw-1704990954_tools/rust_toolchain
# Configuration: ef2f02608722f603085fbd014b9f91efdad1367e72ec8fa96ac72957eb7019ad
# Execution platform: @@platforms//host:host
error: output file bazel-out/x64_windows-opt/bin/test/unit/pipelined_compilation\libwrapper--1409393977.rmeta is not writeable -- check its permissions
error: aborting due to 1 previous error
```
Contributor guide
Assessment
This issue has not been assessed yet.