Closed neelkrish closed 7 months ago
it's failing to find the libclang_rt.builtins-x86_64.a
which is odd b/c install_build_dependencies.sh
should install the package containing the file libclang-rt-dev
. Can you verify that
1) your silifuzz repo is synced to the latest version
2) the debian
docker image isn't pinned in any way. You can change the command to docker run -it --tty --security-opt seccomp=unconfined --mount type=bind,source=${SILIFUZZ_SRC_DIR},target=/app debian:bookworm-slim /bin/bash -c "cd /app && ./install_build_dependencies.sh && bazel build ... && bazel test ...
to use the latest version of bookworm
which worked just now for me.
HTH
I verified that i have the latest version with the git pull. I used bookwork,
docker run -it --tty --security-opt seccomp=unconfined --mount type=bind,source=${SILIFUZZ_SRC_DIR},target=/app debian:bookworm-slim /bin/bash -c "cd /app && ./install_build_dependencies.sh && bazel build ... && bazel test ..."
I am still running into the below:
INFO: Analyzed 348 targets (112 packages loaded, 5025 targets configured).
INFO: Found 348 targets...
ERROR: /app/util/BUILD:492:8: Executing genrule //util:builtins_ar failed: (Exit 1): bash failed: error executing command (from target //util:builtins_ar) /bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; cp "$(/usr/lib/llvm-14/bin/clang --rtlib=compiler-rt -print-libgcc-file-name)" "bazel-out/k8-fastbuild/bin/util/libbuiltins.a"'
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
cp: cannot stat '/usr/lib/llvm-14/lib/clang/14.0.6/lib/linux/libclang_rt.builtins-x86_64.a': No such file or directory
INFO: Elapsed time: 32.655s, Critical Path: 1.71s
INFO: 812 processes: 789 internal, 23 processwrapper-sandbox.
FAILED: Build did NOT complete successfully
I keep running into below issues while running the docker as mentioned in https://github.com/google/silifuzz#prework-for-bazel
command: _docker run -it --tty --security-opt seccomp=unconfined --mount type=bind,source=${SILIFUZZ_SRC_DIR},target=/app debian /bin/bash -c "cd /app && ./install_builddependencies.sh && bazel build ... && bazel test ..."
Dir: SILIFUZZ_SRC_DIR
Error: