rules_cuda icon indicating copy to clipboard operation
rules_cuda copied to clipboard

Issues with `--experimental_use_hermetic_linux_sandbox`

Open hofbi opened this issue 2 years ago • 2 comments
trafficstars

I am observing the known issue about cc1plus: fatal error: /tmp/tmpxft_00000002_00000019-2.cpp: No such file or directory reported here. To prevent this, I want to use --experimental_use_hermetic_linux_sandbox but I am running in further issues such as

failed: (Exit 1): generate-xml.sh failed: error executing command

Any recommendations how to solve this or what to set for --sandbox_add_mount_pair

hofbi avatar Oct 20 '23 10:10 hofbi

It seems some other rules do not support hermetic linux sandbox, maybe use --strategy or --strategy_regexp to override the default behavior for that rule's action? Or better, fix that rule.

Is this one https://togithub.com/bazelbuild/bazel/issues/12579 related?

cloudhan avatar Oct 20 '23 15:10 cloudhan

I found the issue you mentioned as well. As a side note, I also use --incompatible_strict_action_env

hofbi avatar Oct 20 '23 17:10 hofbi