-
Notifications
You must be signed in to change notification settings - Fork 248
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
Support for arm64 / aarch64 #212
Comments
Sorry. I will continue to check it with amd64/aarch64 later today in a Docker container. Are there more speicfic details to take into account? Sorry again. |
Thanks. I can confirm that if I modify the following Envoy will build on aarch64. diff --git a/~/Library/rules_foreign_cc/tools/build_defs/shell_toolchain//toolchains/toolchain_mappings.bzl b/~/Library/envoyproxy/moderation/rules_foreign_cc/tools/build_defs/shell_toolchain/toolchains/toolchain_mappings.bzl
index af9647e..42fa81a 100644
--- a/~/Library/rules_foreign_cc/tools/build_defs/shell_toolchain//toolchains/toolchain_mappings.bzl
+++ b/~/Library/envoyproxy/moderation/rules_foreign_cc/tools/build_defs/shell_toolchain/toolchains/toolchain_mappings.bzl
@@ -11,7 +11,7 @@ TOOLCHAIN_MAPPINGS = [
_ToolchainMapping(
exec_compatible_with = [
"@bazel_tools//platforms:linux",
- "@bazel_tools//platforms:x86_64",
+ "@bazel_tools//platforms:aarch64",
],
file = "@rules_foreign_cc//tools/build_defs/shell_toolchain/toolchains/impl:linux_commands.bzl",
), I'll try using |
I just provided the possibility to introduce custom ToolchainMappings: #214. Currently I am experimenting with the amd64/alpine container, should I select some better variant? |
I just tested the latest commit and it works on |
Done in #215. |
Cool, thank you! |
Can I close the issue then? |
Yes - thanks again for the quick turnaround. |
Envoy Proxy just implemented
rules_foreign_cc
today with PR envoyproxy/envoy#5218. My builds for Linux x86_64 and macOS are working fine. However my arm64 / aarch64 builds are failing with the following error.ERROR: While resolving toolchains for target //bazel/foreign_cc:zlib: no matching toolchains found for types @rules_foreign_cc//tools/build_defs/shell_toolchain/toolchains:shell_commands
It looks like only Linux, Windows and macOS are supported on the x86_64 architecture after looking at https://github.com/bazelbuild/rules_foreign_cc/blob/master/tools/build_defs/shell_toolchain/toolchains/toolchain_mappings.bzl
/cc @htuch
The text was updated successfully, but these errors were encountered: