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

build guardiand on an ARM mac M1 machine #4031

Open
kakucodes opened this issue Jul 22, 2024 · 4 comments
Open

build guardiand on an ARM mac M1 machine #4031

kakucodes opened this issue Jul 22, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@kakucodes
Copy link
Collaborator

Description

guardiand and wormholed are both not able to be built on arm64 macbooks.
while this is not an urgent issue i wanted to create discussion around it as it does increase dx friction.

in the meantime max gave a workaround here which can be used in a pinch for the guardiand binary

Recommendation

@evan-gray
Copy link
Contributor

The guardian software is only supported on Linux. You may find developing with https://code.visualstudio.com/docs/devcontainers/containers to be useful on other operating systems. Some contributors use WSL on Windows, but as mentioned elsewhere there are several other ecosystem features not supported on ARM, such as building production cosmwasm contracts (which must be built with amd64). While you can run amd64 code/containers on M-series processors, it is significantly slower.

@kcsongor
Copy link
Contributor

it would be nice to be able to build at least development binaries on macs. one of the issues is that the celo bls package version that the guardian depends on is not supported on M1, but they seem to have patched that celo-org/celo-bls-go#22

@johnsaigle
Copy link
Contributor

FWIW I use the following flags for running tests locally on an arm64 machine:

go test -ldflags '-extldflags "-Wl,-ld_classic " ' ./...

Contrast with the flags used for amd64 builds:

https://github.com/wormhole-foundation/wormhole/blob/main/node/Makefile#L1C1-L2C76

@evan-gray
Copy link
Contributor

FWIW I use the following flags for running tests locally on an arm64 machine:

go test -ldflags '-extldflags "-Wl,-ld_classic " ' ./...

Contrast with the flags used for amd64 builds:

https://github.com/wormhole-foundation/wormhole/blob/main/node/Makefile#L1C1-L2C76

@johnsaigle maybe PR this up to the makefile for like make test-arm or something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants