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

Update cross compile toolchains #12069

Merged
merged 17 commits into from Mar 7, 2023
Merged

Conversation

prestonvanloon
Copy link
Member

What type of PR is this?

Other

What does this PR do? Why is it needed?

rbe_autoconfig from bazel-toolchains has been deprecated since bazel 4 and is no longer supported. The canonical way is now to use the rbe_configs_gen CLI tool. This PR updates the cross compilation toolchains to use new configs generated by that CLI tool and updates the README instructions for maintaining these configs.

Which issues(s) does this PR fix?

This removes some annoying warnings that bazel was showing on every build.

Other notes for review

Comment on lines -47 to -50
build:docker-sandbox --host_javabase=@rbe_ubuntu_clang//java:jdk
build:docker-sandbox --javabase=@rbe_ubuntu_clang//java:jdk
build:docker-sandbox --host_java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8
build:docker-sandbox --java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These flags were deprecated in bazel 5.0.0. See bazelbuild/bazel#7849

Comment on lines -17 to +59
| target | linux_amd64 | linux_arm64 | osx_amd64 | osx_arm64 | windows_amd64 |
|------------------|-------------------|------------------|-----------------|-----------------|-----------------------------------|
| target | linux_amd64 | linux_arm64 | osx_amd64 | osx_arm64 | windows_amd64 |
|------------------|--------------------------------------------------------------------|--------------------------------------------|------------------------------------|------------------------------------|------------------------------------|
| `//beacon-chain` | :heavy_check_mark: docker-sandbox and RBE, supported locally only | :heavy_check_mark: docker-sandbox and RBE | :heavy_check_mark: docker-sandbox | :heavy_check_mark: docker-sandbox | :heavy_check_mark: docker-sandbox |
| `//validator` | :heavy_check_mark: docker-sandbox and RBE | :heavy_check_mark: docker-sandbox and RBE | :heavy_check_mark: docker-sandbox | :heavy_check_mark: docker-sandbox | :heavy_check_mark: |
| `//validator` | :heavy_check_mark: docker-sandbox and RBE | :heavy_check_mark: docker-sandbox and RBE | :heavy_check_mark: docker-sandbox | :heavy_check_mark: docker-sandbox | :heavy_check_mark: |
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting changes here, it looks good on widescreen, i promise!

Comment on lines +68 to +70
|-------------------------------|----------------------------|-----------------------------|---------------------------|---------------------------|-------------------------------|
| Local run | `linux_amd64` | `linux_arm64` | `osx_amd64` | `osx_arm64` | `windows_amd64` |
| Docker sandbox | `linux_amd64_docker` | `linux_arm64_docker` | `osx_amd64_docker` | `osx_arm64_docker` | `windows_amd64_docker ` |
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting changes here, it looks good on widescreen, i promise!

@@ -0,0 +1,202 @@

Apache License
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This Apache license was generated by the cli tool. I think it's OK to leave it.

@prestonvanloon
Copy link
Member Author

Need to test cross compiled binaries work on the various platforms. Will test tomorrow.

@prestonvanloon prestonvanloon marked this pull request as ready for review March 6, 2023 16:16
@prestonvanloon prestonvanloon requested a review from a team as a code owner March 6, 2023 16:16
@prestonvanloon
Copy link
Member Author

Confirmed basic sanity checks of darwin_amd64 and windows_amd64. Cross compile appears to be working as it did before these changes.

@prylabs-bulldozer prylabs-bulldozer bot merged commit 4356cbc into develop Mar 7, 2023
@delete-merged-branch delete-merged-branch bot deleted the update-tools-crosschain branch March 7, 2023 20:09
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.

None yet

2 participants