zig
zig copied to clipboard
test-c-import: error: unable to create compilation: FileBusy
Zig Version
0.13.0
Steps to Reproduce and Observed Behavior
- mkdir build
- cd build
- cmake ..
- make all
- stage3/bin/zig build test-c-import -j1
$ stage3/bin/zig build test-c-import -j1
test-c-import
└─ run test c-import-x86_64-linux.4.19...6.5.7-none-x86_64_v2-Debug-selfhosted-no-lld-pic
└─ zig test Debug x86_64-linux-none failure
error: error: unable to create compilation: FileBusy
error: the following command exited with error code 1:
/home/user/zig/tmp2/zig-0.13.0/build/stage3/bin/zig test -fno-llvm -fno-lld -fPIC -ODebug -target x86_64-linux-none -mcpu x86_64_v2 -I /home/user/zig/tmp2/zig-0.13.0/test/c_import -Mroot=/home/user/zig/tmp2/zig-0.13.0/test/c_import.zig --cache-dir /home/user/zig/tmp2/zig-0.13.0/.zig-cache --global-cache-dir /home/user/.cache/zig --name test --zig-lib-dir /home/user/zig/tmp2/zig-0.13.0/lib --listen=-
Build Summary: 58/82 steps succeeded; 21 skipped; 1 failed (disable with --summary none)
test-c-import transitive failure
├─ run test c-import-x86_64-linux.4.19...6.5.7-none-x86_64_v2-Debug-selfhosted-no-lld-pic transitive failure
│ └─ zig test Debug x86_64-linux-none failure
├─ run test c-import-x86_64-macos.11.7.1...14.1-none-x86_64-Debug-selfhosted-no-lld skipped
├─ run test c-import-x86_64-windows.win8_1...win10_fe-gnu-x86_64-Debug-selfhosted-no-lld skipped
├─ run test c-import-wasm32-wasi.0.1...0.1-musl-generic-Debug skipped
├─ run test c-import-wasm32-wasi.0.1...0.1-musl-generic-Debug-libc skipped
├─ run test c-import-aarch64-linux.4.19...6.5.7-none-generic-Debug skipped
├─ run test c-import-aarch64-linux.4.19...6.5.7-musl-generic-Debug-libc skipped
├─ run test c-import-aarch64-linux.4.19...6.5.7-gnu.2.28-generic-Debug-libc skipped
├─ run test c-import-aarch64-windows.win8_1...win10_fe-gnu-generic-Debug-libc skipped
├─ run test c-import-arm-linux.4.19...6.5.7-none-generic-Debug skipped
├─ run test c-import-arm-linux.4.19...6.5.7-musleabihf-generic-Debug-libc skipped
├─ run test c-import-powerpc-linux.4.19...6.5.7-none-ppc-Debug skipped
├─ run test c-import-powerpc-linux.4.19...6.5.7-musl-ppc-Debug-libc skipped
├─ run test c-import-powerpc64le-linux.4.19...6.5.7-none-ppc64le-Debug skipped
├─ run test c-import-powerpc64le-linux.4.19...6.5.7-musl-ppc64le-Debug-libc skipped
├─ run test c-import-powerpc64le-linux.4.19...6.5.7-gnu.2.28-ppc64le-Debug-libc skipped
├─ run test c-import-x86_64-macos.11.7.1...14.1-none-x86_64-Debug skipped
├─ run test c-import-aarch64-macos.11.7.1...14.1-none-generic-Debug skipped
├─ run test c-import-x86-windows.win8_1...win10_fe-msvc-pentium4-Debug skipped
├─ run test c-import-x86_64-windows.win8_1...win10_fe-msvc-x86_64-Debug skipped
├─ run test c-import-x86-windows.win8_1...win10_fe-gnu-pentium4-Debug-libc skipped
└─ run test c-import-x86_64-windows.win8_1...win10_fe-gnu-x86_64-Debug-libc skipped
error: the following build command failed with exit code 1:
/home/user/zig/tmp2/zig-0.13.0/.zig-cache/o/3dc828832e7ba548cb0b16811ef9081d/build /home/user/zig/tmp2/zig-0.13.0/build/stage3/bin/zig /home/user/zig/tmp2/zig-0.13.0 /home/user/zig/tmp2/zig-0.13.0/.zig-cache /home/user/.cache/zig --seed 0x9db1ccb6 -Zce32b8ddac35c603 test-c-import -j1
Running the failed command manually:
$ /home/user/zig/tmp2/zig-0.13.0/build/stage3/bin/zig test -fno-llvm -fno-lld -fPIC -ODebug -target x86_64-linux-none -mcpu x86_64_v2 -I /home/user/zig/tmp2/zig-0.13.0/test/c_import -Mroot=/home/user/zig/tmp2/zig-0.13.0/test/c_import.zig --cache-dir /home/user/zig/tmp2/zig-0.13.0/.zig-cache --global-cache-dir /home/user/.cache/zig --name test --zig-lib-dir /home/user/zig/tmp2/zig-0.13.0/lib --listen=-
error: unable to create compilation: FileBusy
This was discovered in a Debian Bookworm amd64 container with llvm-toolchain-18 libraries installed (which are newer than those that come with Bookworm by default).
Expected Behavior
I expected the test either to be skipped or to succeed.