x/mobile: build error after upgrade go to 1.12 #30637
Closed
Labels
Milestone
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! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: