-
Notifications
You must be signed in to change notification settings - Fork 18k
x/mobile/cmd/gomobile: gomobile bind fails a package importing gl #24941
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
CC @eliasnaur |
Have you rebuilt the gomobile commands? (go install golang.org/x/mobile/cmd/...) I get
Which is caused by CL 99777 that again adds GOOS=android to gomobile bind -target=android builds. |
Yeah I did |
Change https://golang.org/cl/108336 mentions this issue: |
Can you test CL 108336? |
Yeah that worked. Thanks! |
A previous CL switched gobind to use the "source" importer so go files using cgo can be type checked. However, CGO_ENABLED=1 also have to be passed in for such files not be ignored. Also add -tags ios to the gomobile test output missing from CL 99777. Fixes golang/go#24941 Change-Id: I868469af3061b82ab592899e365a8a90a0333e58 Reviewed-on: https://go-review.googlesource.com/108336 Reviewed-by: Hyang-Ah Hana Kim <[email protected]>
A previous CL switched gobind to use the "source" importer so go files using cgo can be type checked. However, CGO_ENABLED=1 also have to be passed in for such files not be ignored. Also add -tags ios to the gomobile test output missing from CL 99777. Fixes golang/go#24941 Change-Id: I868469af3061b82ab592899e365a8a90a0333e58 Reviewed-on: https://go-review.googlesource.com/108336 Reviewed-by: Hyang-Ah Hana Kim <[email protected]>
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
)?What did you do?
What did you expect to see?
Building succeeds.
What did you see instead?
Building fails with this error:
The text was updated successfully, but these errors were encountered: