Following this guide https://github.com/golang/go/wiki/GoArm#apple-silicon to build a Go binary for Apple Silicon.
I am building in macOS Catalina 10.15.7 with Xcode 12.1 I get the following error messages:
Anyone has any recommendations about building a Go binary for Apple Silicon?
I am building in macOS Catalina 10.15.7 with Xcode 12.1 I get the following error messages:
Code Block In file included from _cgo_export.c:3: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h:66: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/wait.h:109: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/signal.h:146: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_mcontext.h:31:2: error: architecture not supported fatal error: too many errors emitted, stopping now [-ferror-limit=]
Anyone has any recommendations about building a Go binary for Apple Silicon?