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
ERROR: /home/aj/tweag.io/clodl/tests/BUILD:109:15: output 'scanelf' was not created
ERROR: /home/aj/tweag.io/clodl/tests/BUILD:109:15: Action bash failed: not all outputs were created or valid
Target //:clotestbin-cc failed to build
bazel-out/k8-opt-exec-ST-879f06706572/bin/external/io_tweag_clodl/copy-closure: line 76: paths["$lib"]: unbound variable
This looks like a bug. It would need to be investigated why paths is undefined for the given lib, before deciding a remedy. This is the location of the failure. paths maps library names to their paths, and it is computed by calling to ldd. The missing $lib is coming from the needed array, which is computed by scanelf.
ERROR: /home/aj/tweag.io/clodl/tests/BUILD:109:15: output 'scanelf' was not created
I can reproduce this in the nix-shell if I remove pax-utils from the dependencies. Which hints to me that this is caused by scanelf being missing from the path. This is mentioned as a requirement in the readme, but I'd expect the build to fail in a more telling way when scanelf is missing, so it would be another thing to improve. I think the error comes from executing this action.
Describe the bug
Fresh
bazel build //:clotestbin-cc
failsTo Reproduce
cd tests
bazel build //:clotestbin-cc
Expected behavior
The target is corecctly built
Environment
Additional context
The text was updated successfully, but these errors were encountered: