-
Notifications
You must be signed in to change notification settings - Fork 18k
x/mobile: build error after upgrade go to 1.12 #30637
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
Comments
same error |
build success! |
Thank you for this report @xfxdev and welcome to the Go project! Thank you @helperShang for checking too. |
Thanks @helperShang and @odeke-em, after perform the update, it's ok to build library for iOS. But still failed to build for Android:
|
Alright, thanks for the update. I shall kindly page @eliasnaur |
Change https://golang.org/cl/165937 mentions this issue: |
Gomobile requires NDK r19b but didn't detect the NDK version well enough. If you upgrade your NDK, the error should go away. |
@eliasnaur After upgrade the NDK, it works now. Thanks very much! |
Look for the compiler directly, not just the existence of the directory containing. Fixes golang/go#30637 Change-Id: Iae4429406da8622e7085bf3701c0f84d5c95d2fd Reviewed-on: https://go-review.googlesource.com/c/mobile/+/165937 TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Look for the compiler directly, not just the existence of the directory containing. Fixes golang/go#30637 Change-Id: Iae4429406da8622e7085bf3701c0f84d5c95d2fd Reviewed-on: https://go-review.googlesource.com/c/mobile/+/165937 TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
After upgrade go version to 1.12, will failed to build library for ios/android:
gomobile bind -target=ios golang.org/x/mobile/example/bind/hello
What did you expect to see?
Success
What did you see instead?
gomobile: /Users/xfx/Development/workspace/project/go/bin/gobind -lang=go,objc -outdir=/var/folders/cc/l57g5px96sx4b5cnhq6bf2qh0000gn/T/gomobile-work-547367462 -tags=ios golang.org/x/mobile/example/bind/hello failed: exit status 1
type-checking package "golang.org/x/mobile/example/bind/hello" failed (/Users/xfx/Development/workspace/project/go/src/golang.org/x/mobile/example/bind/hello/hello.go:8:8: could not import fmt (type-checking package "fmt" failed (/usr/local/opt/go/libexec/src/fmt/print.go:9:2: could not import internal/fmtsort (type-checking package "internal/fmtsort" failed (/usr/local/opt/go/libexec/src/internal/fmtsort/sort.go:12:2: could not import reflect (type-checking package "reflect" failed (/usr/local/opt/go/libexec/src/reflect/type.go:19:2: could not import runtime (type-checking package "runtime" failed (/usr/local/opt/go/libexec/src/runtime/mem_bsd.go:16:6: sysAlloc redeclared in this block)))))))))
The text was updated successfully, but these errors were encountered: