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 failed for Darwin/arm64 #5

Closed
emar-kar opened this issue Apr 18, 2021 · 2 comments
Closed

build failed for Darwin/arm64 #5

emar-kar opened this issue Apr 18, 2021 · 2 comments

Comments

@emar-kar
Copy link

Build failed without any explanation.

2021-04-18T20:22:55.9499410Z An error occurred during build: exit status 2
2021-04-18T20:22:55.9504744Z exit status 1

@emar-kar
Copy link
Author

emar-kar commented Apr 20, 2021

I didn't encounter this error on my local machine:
image

From Go 1.16 release notes.

Go 1.16 adds support of 64-bit ARM architecture on macOS (also known as Apple Silicon) with GOOS=darwin, 
GOARCH=arm64. Like the darwin/amd64 port, the darwin/arm64 port supports cgo, internal and external linking, 
c-archive, c-shared, and pie build modes, and the race detector.

The iOS port, which was previously darwin/arm64, has been renamed to ios/arm64. GOOS=ios implies 
the darwin build tag, just as GOOS=android implies the linux build tag. This change should be transparent 
to anyone using gomobile to build iOS apps.

Nevertheless, those flags should build binary for iOS platform without any error. I would like to test action with the local build on linux system and try to get the exact error. But, from what I can gather it can depends on Go version.

ADDITION

Failed build

@williampiv
Copy link

Tested with a newer version of Golang (and Debian), and can confirm that does fix this issue. Was PR #9 , closed since #8 is already there.

@emar-kar emar-kar closed this as completed Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants