You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FAILED: Build did NOT complete successfully
//lib/tests/tar:test_change_owner FAILED TO BUILD
//lib/tests/tar:test_compress FAILED TO BUILD
//lib/tests/tar:test_custom_mtree FAILED TO BUILD
//lib/tests/tar:test_dirs FAILED TO BUILD
//lib/tests/tar:test_flags FAILED TO BUILD
Error trace
ERROR: /tmp/tmp.N2umfVRb5Rwork/lib/tests/tar/BUILD.bazel:16:8: Executing genrule //lib/tests/tar:tar_genrule failed: (Exit 127): bash failed: error executing command (from target //lib/tests/tar:tar_genrule) /bin/bash -c ... (remaining 1 argument skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
external/bsd_tar_linux_amd64/usr/bin/bsdtar: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory
ERROR: /tmp/tmp.N2umfVRb5Rwork/lib/tests/tar/BUILD.bazel:70:4: Tar lib/tests/tar/3.tgz failed: (Exit 127): bsdtar.sh failed: error executing command (from target //lib/tests/tar:tar_compress) external/bsd_tar_linux_amd64/bsdtar.sh --create --gzip --file bazel-out/k8-opt/bin/lib/tests/tar/3.tgz @bazel-out/k8-opt/bin/lib/tests/tar/_tar_compress.mtree.txt
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
external/bsd_tar_linux_amd64/usr/bin/bsdtar: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory
ERROR: /tmp/tmp.N2umfVRb5Rwork/lib/tests/tar/BUILD.bazel:277:4: Tar lib/tests/tar/8.tar failed: (Exit 127): bsdtar.sh failed: error executing command (from target //lib/tests/tar:tar_change_owner) external/bsd_tar_linux_amd64/bsdtar.sh --create --file bazel-out/k8-opt/bin/lib/tests/tar/8.tar @bazel-out/k8-opt/bin/lib/tests/tar/mtree8.mutated
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
external/bsd_tar_linux_amd64/usr/bin/bsdtar: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory
ERROR: /tmp/tmp.N2umfVRb5Rwork/lib/tests/tar/BUILD.bazel:181:4: Tar lib/tests/tar/6.tar failed: (Exit 127): bsdtar.sh failed: error executing command (from target //lib/tests/tar:tar_runfiles) external/bsd_tar_linux_amd64/bsdtar.sh --create --file bazel-out/k8-opt/bin/lib/tests/tar/6.tar @bazel-out/k8-opt/bin/lib/tests/tar/_tar_runfiles.mtree.txt
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
external/bsd_tar_linux_amd64/usr/bin/bsdtar: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory
ERROR: /tmp/tmp.N2umfVRb5Rwork/lib/tests/tar/BUILD.bazel:51:4: Tar lib/tests/tar/tar_custom_mtree.tar failed: (Exit 127): bsdtar.sh failed: error executing command (from target //lib/tests/tar:tar_custom_mtree) external/bsd_tar_linux_amd64/bsdtar.sh --create --file bazel-out/k8-opt/bin/lib/tests/tar/tar_custom_mtree.tar @bazel-out/k8-opt/bin/lib/tests/tar/_tar_custom_mtree.mtree.txt
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
external/bsd_tar_linux_amd64/usr/bin/bsdtar: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory
ERROR: /tmp/tmp.N2umfVRb5Rwork/lib/tests/tar/BUILD.bazel:91:4: Tar lib/tests/tar/4.tar failed: (Exit 127): bsdtar.sh failed: error executing command (from target //lib/tests/tar:tar_flags) external/bsd_tar_linux_amd64/bsdtar.sh --create --exclude-vcs --file bazel-out/k8-opt/bin/lib/tests/tar/4.tar @bazel-out/k8-opt/bin/lib/tests/tar/_tar_flags.mtree.txt
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
external/bsd_tar_linux_amd64/usr/bin/bsdtar: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory
ERROR: /tmp/tmp.N2umfVRb5Rwork/lib/tests/tar/BUILD.bazel:147:4: Tar lib/tests/tar/5.tar failed: (Exit 127): bsdtar.sh failed: error executing command (from target //lib/tests/tar:tar_strip_prefix) external/bsd_tar_linux_amd64/bsdtar.sh --create --file bazel-out/k8-opt/bin/lib/tests/tar/5.tar @bazel-out/k8-opt/bin/lib/tests/tar/mtree5.stripped
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
external/bsd_tar_linux_amd64/usr/bin/bsdtar: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory
INFO: From Copying directory external_test_repo/test_a:
hardlink bazel-out/k8-opt/bin/external/external_test_repo/test_a/test_a2 => bazel-out/k8-opt/bin/lib/tests/copy_directory/external_dir/test_a2
hardlink bazel-out/k8-opt/bin/external/external_test_repo/test_a/test_a => bazel-out/k8-opt/bin/lib/tests/copy_directory/external_dir/test_a
INFO: From Copying directory lib/tests/copy_directory_bin_action/d:
copy lib/tests/copy_directory_bin_action/d/1 => bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d2/1
copy lib/tests/copy_directory_bin_action/d/2 => bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d2/2
copy lib/tests/copy_directory_bin_action/d/d/1 => bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d2/d/s1
copy lib/tests/copy_directory_bin_action/d/d/2 => bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d2/d/s2
copy lib/tests/copy_directory_bin_action/d/d/2 => bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d2/d/2
copy lib/tests/copy_directory_bin_action/d/d/1 => bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d2/d/1
copy lib/tests/copy_directory_bin_action/d/d/1 => bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d2/ds/1
copy lib/tests/copy_directory_bin_action/d/d/2 => bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d2/ds/2
copy lib/tests/copy_directory_bin_action/d/1 => bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d2/s1
copy lib/tests/copy_directory_bin_action/d/2 => bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d2/s2
copy lib/tests/copy_directory_bin_action/d/d/1 => bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d2/ds/s1
copy lib/tests/copy_directory_bin_action/d/d/2 => bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d2/ds/s2
INFO: From Copying directory lib/tests/copy_directory_bin_action/d2:
hardlink bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d2/1 => bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d3/1
hardlink bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d2/2 => bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d3/2
hardlink bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d2/d/1 => bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d3/d/1
hardlink bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d2/d/2 => bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d3/d/2
hardlink bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d2/d/s1 => bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d3/d/s1
hardlink bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d2/d/s2 => bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d3/d/s2
hardlink bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d2/ds/1 => bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d3/ds/1
hardlink bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d2/ds/2 => bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d3/ds/2
hardlink bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d2/ds/s1 => bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d3/ds/s1
hardlink bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d2/s2 => bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d3/s2
hardlink bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d2/ds/s2 => bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d3/ds/s2
hardlink bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d2/s1 => bazel-out/k8-opt/bin/lib/tests/copy_directory_bin_action/d3/s1
ERROR: /tmp/tmp.N2umfVRb5Rwork/lib/tests/tar/BUILD.bazel:224:4: Tar lib/tests/tar/7.tar failed: (Exit 127): bsdtar.sh failed: error executing command (from target //lib/tests/tar:dirs) external/bsd_tar_linux_amd64/bsdtar.sh --create --file bazel-out/k8-opt/bin/lib/tests/tar/7.tar @bazel-out/k8-opt/bin/lib/tests/tar/_dirs.mtree.txt
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
external/bsd_tar_linux_amd64/usr/bin/bsdtar: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory
Any other information?
No response
The text was updated successfully, but these errors were encountered:
What happened?
The tar rules failed to find libbz2.so.1.0.
Version
Development (host) and target OS/architectures:
Fedora 39 Workstation
Uname: 6.6.3-200.fc39.x86_64
Output of
bazel --version
:aspect 5.8.5
bazel 6.4.0
Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:workspace
Language(s) and/or frameworks involved:
java
running
test //..
. in this repositoryHow to reproduce
I first discovered this in my own repo, but was able to reproduce it by running the test suite for this repo.
Clone the repo
git clone https://github.com/aspect-build/bazel-lib.git .
Run tests
Failed tests
FAILED: Build did NOT complete successfully //lib/tests/tar:test_change_owner FAILED TO BUILD //lib/tests/tar:test_compress FAILED TO BUILD //lib/tests/tar:test_custom_mtree FAILED TO BUILD //lib/tests/tar:test_dirs FAILED TO BUILD //lib/tests/tar:test_flags FAILED TO BUILD
Error trace
Any other information?
No response
The text was updated successfully, but these errors were encountered: