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

Support aarch64-linux for docker on macos #53

Merged
merged 1 commit into from
Oct 7, 2023
Merged

Support aarch64-linux for docker on macos #53

merged 1 commit into from
Oct 7, 2023

Conversation

rob-odwyer
Copy link
Contributor

This adds a build configuration for aarch64-linux, which is used when running a Linux docker container on a aarch64 Mac.

A different docker image base is needed to get a aarch64 cross-compiler, and there's a small tradeoff in terms of GCC compatibility from using a newer image in this case (ubuntu:16:04 vs centos:7).

I also fixed an issue that had appeared with the release build - the directory for JAVA_HOME in the docker image was too specific and changed along with the package being upgraded. It should be using a more generic symlinked directory now.

@kawamuray kawamuray self-requested a review October 5, 2023 11:55
@kawamuray
Copy link
Owner

I'm just curious do we had to use docker based build for aarch64/linux if we give up old glibc compatibility?

@rob-odwyer
Copy link
Contributor Author

rob-odwyer commented Oct 5, 2023

@kawamuray I think we don't need to use the docker based build - but one reason to use this would be to test locally against an image used in production. In that case you might have an image with an old glibc that still needs the compatibility.

@rob-odwyer
Copy link
Contributor Author

I also should mention that I based some of this on the wasmtime project's build system again - they also use an ubuntu:16.04 container to build for aarch64-linux:

https://github.com/bytecodealliance/wasmtime/tree/main/ci/docker

@kawamuray
Copy link
Owner

Understood, thanks :)
LGTM!

@kawamuray kawamuray merged commit 020f3b3 into kawamuray:master Oct 7, 2023
6 checks passed
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.

2 participants