Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with --experimental_use_hermetic_linux_sandbox #183

Open
hofbi opened this issue Oct 20, 2023 · 2 comments
Open

Issues with --experimental_use_hermetic_linux_sandbox #183

hofbi opened this issue Oct 20, 2023 · 2 comments

Comments

@hofbi
Copy link
Contributor

hofbi commented Oct 20, 2023

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

@cloudhan
Copy link
Collaborator

cloudhan commented Oct 20, 2023

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?

@hofbi
Copy link
Contributor Author

hofbi commented Oct 20, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants