-
Notifications
You must be signed in to change notification settings - Fork 478
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
Release builds for arm64 #2466
Comments
Possibly helpful with the CGO cross-compilation: https://dh1tw.de/2019/12/cross-compiling-golang-cgo-projects/ |
+1 on this. I want to build an arm64 ubuntu deb file on my amd64 ubuntu linux machine (eg, cross compile). I also want to build an arm64 windows10 msi on my amd64 ubuntu linux machine. Since it seems all of this is written in go, and go has apparently been ported to windows golang/go#36439 this shouldn't be "hard". (Full disclosure: I'm a Microsoft employee.) |
@RobertHenry6bev typically it's easy to cross-compile Go programs -- except if you use CGO, which we do for SQLite. Then you need a C toolchain that can support cross-compilation. What's your use case for this cross-compilation? |
@zwass what is your opinion on using something like https://github.com/ebitengine/purego to solve the dependency on the C toolchain? Not sure how big a refactoring this would be, but it should solve the cross-compilation issues present here. |
Goal
Some users would like to deploy Fleet on arm64 processors (eg. AWS Graviton).
How?
Attempted cross-compilation in #2429 -- it doesn't work out of the box. Not sure if it can be configured to work or this would require actually building on an arm64 machine.
The text was updated successfully, but these errors were encountered: