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: attempting to build native package with gomobile build mobile example fails with exit status 2 #30415
Comments
See android/ndk#920. It seems the builtin compilers introduced in r19b are broken on Windows. One workaround is to use revision 8b05ea26b5669e5f52084ab001b8e49ec8877955 of gomobile which does not contain the change to use the new compilers. |
Change https://golang.org/cl/164177 mentions this issue: |
For folks like me who are still learning golang and it's nuances, what's the simplest way to use that revision of gomobile? Would I be cherry picking a specific revision from the repo and rebuilding, or is there a simpler way? |
You can apply my fix posted above or simply wait; it will probably be reviewed and merged soon enough and then a simple "go get -u golang.org/x/mobile/cmd/..." will do. |
@bubthegreat please try again with the newest gomobile. Use |
It looks good now. |
Verified working - thanks! |
Fixes golang/go#30415 Change-Id: I6cda312f465e05d28601432845c3c3d0f7a85605 Reviewed-on: https://go-review.googlesource.com/c/164177 Run-TryBot: Elias Naur <mail@eliasnaur.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Fixes golang/go#30415 Change-Id: I6cda312f465e05d28601432845c3c3d0f7a85605 Reviewed-on: https://go-review.googlesource.com/c/164177 Run-TryBot: Elias Naur <mail@eliasnaur.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
After installing and configuring android studio per their setup instructions, adding the SDK environment variables, and installing the additional dependencies (CMAKE, NDK, LLDB, platforms for 7.0+), attempts to run through the native package build steps fail with deprecation warnings.
What version of Go are you using (
go version
)?Attempted in 1.11.4 and latest 1.12 (As of 2/26/2019)
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputAndroid SDK Info:
What did you do?
After updating to 1.12:
What did you expect to see?
Successful build of the example mobile application.
What did you see instead?
Errors when attempting to build.
The text was updated successfully, but these errors were encountered: