-
Notifications
You must be signed in to change notification settings - Fork 483
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
Unable to compile go-algorand on M1 #4362
Comments
We'll take a look, but I think there were some dependency updates needed for golang 1.18 support. (Officially supported is still 1.17.9.) |
When I brought this up originally in discord, I had the exact same issues when I tried 1.17. |
same problem here. also tried with 1.17 |
This is still broken - did new attempt to today w/ master at 4631571 and got:
|
I finally spent some more time trying to track this down and determined the issue was one of a prior amd64 version of 'make' being at fault (likely from MigrationAssistant ported homebrew install - going from prior Intel MB to M1 MB). Looking at debug build output showed that amd64 version of libsodium was being built instead of arm64, and the build then failing because CGO was looking for import in arm build directory (and it wasn't present). |
Subject of the issue
I'm unable to build go-algorand on the mac M1.
My understanding is that some on the team can do this, but it's never worked for me, ever.
I used to build it all the time on prior Intel mac so I'm familiar with the process and familiar with Go.
Your environment
Steps to reproduce
This version is not compatible with M1s. I don't know how this succeeds for the team on a clean environment.
Installing the latest version manually works fine though, ie:
go install github.com/go-swagger/go-swagger/cmd/swagger@HEAD
Getting past that, it then fails on:
Fetching HEAD of oapi-codegen doesn't fix the issue.
If I continue on and just try to build w/ make, it builds quite a bit but ultimately fails here:
The text was updated successfully, but these errors were encountered: