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

x/mobile/cmd/gomobile: install on mac OS Sierra 10.12 #23236

Closed
michaelmenon opened this issue Dec 24, 2017 · 2 comments
Closed

x/mobile/cmd/gomobile: install on mac OS Sierra 10.12 #23236

michaelmenon opened this issue Dec 24, 2017 · 2 comments

Comments

@michaelmenon
Copy link

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

1.7.1

Does this issue reproduce with the latest release?

What operating system and processor architecture are you using (go env)?

macOS Sierra 10.12

What did you do?

If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.

I am trying to install gomobile on mac OS Sierra 10.12. I have go version 1.7.1 installed.

After doing the steps given below :

  1. go get golang.org/x/mobile/cmd/gomobile

  2. gomobile init

I get the following errors
gomobile init
gomobile: go install -pkgdir=/usr/local/mobgo/pkg/gomobile/pkg_darwin_arm std failed: exit status 2

internal/poll

../go/src/internal/poll/fd_mutex.go:194:6: missing function body
../go/src/internal/poll/fd_mutex.go:195:6: missing function body
../go/src/internal/poll/fd_poll_runtime.go:17:6: missing function body
../go/src/internal/poll/fd_poll_runtime.go:19:6: missing function body
../go/src/internal/poll/fd_poll_runtime.go:20:6: missing function body
../go/src/internal/poll/fd_poll_runtime.go:21:6: missing function body
../go/src/internal/poll/fd_poll_runtime.go:22:6: missing function body
../go/src/internal/poll/fd_poll_runtime.go:23:6: missing function body
../go/src/internal/poll/fd_poll_runtime.go:24:6: missing function body
../go/src/internal/poll/fd_poll_runtime.go:25:6: missing function body
../go/src/internal/poll/fd_poll_runtime.go:25:6: too many errors

What did you expect to see?

What did you see instead?

@AlexRouSg
Copy link
Contributor

https://github.com/golang/go/wiki/Mobile
You need at least 1.7.4 for Sierra, update your go version.

@michaelmenon
Copy link
Author

Thanks very much, i fixed it by upgrading my go to go1.9.2

@mikioh mikioh changed the title gomobile install on mac OS Sierra 10.12 x/mobile/cmd/gomobile: install on mac OS Sierra 10.12 Dec 27, 2017
@golang golang locked and limited conversation to collaborators Dec 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants