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

Release builds for arm64 #2466

Open
zwass opened this issue Oct 9, 2021 · 3 comments
Open

Release builds for arm64 #2466

zwass opened this issue Oct 9, 2021 · 3 comments

Comments

@zwass
Copy link
Member

zwass commented Oct 9, 2021

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.

@zwass zwass added the idea label Oct 9, 2021
@zwass
Copy link
Member Author

zwass commented Oct 15, 2021

Possibly helpful with the CGO cross-compilation: https://dh1tw.de/2019/12/cross-compiling-golang-cgo-projects/

@RobertHenry6bev
Copy link
Contributor

+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.)

@zwass
Copy link
Member Author

zwass commented Feb 22, 2022

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants