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

Use exec_tools instead of tools for better RBE compatibility #4837

Merged
merged 1 commit into from
Jul 5, 2022

Conversation

kjlubick
Copy link
Contributor

I was running into issues building with Bazel on my Mac using a Linux RBE worker. The reason was that Bazel was uploading the Host platform's (Mac) Python executables and not the Execution Platform (Linux)'s Python executables. Thus, I was seeing an error like:
OSError: [Errno 8] Exec format error

The tools attribute of genrules corresponds to the Host platform, but this is largely incorrect when using RBE. exec_tools matches the execution platform, which is what is desired here. If building without RBE, the Host and Execution platform will be the same, and the difference between exec_tools and tools will not matter.

@s-perron s-perron self-requested a review July 4, 2022 13:07
@s-perron s-perron self-assigned this Jul 4, 2022
@s-perron s-perron merged commit 6803cc5 into KhronosGroup:master Jul 5, 2022
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

Successfully merging this pull request may close these issues.

3 participants