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: Go1.15beta1 cannot generate Objective-c bindings because hardcoded GOARCH=arm configuration is used to load packages #39575
Comments
Go 1.15 has removed support for |
@davecheney Thanks for your reply. The previous title didn't describe the issue properly. I just tried to generate objective-c bindings.
|
@davecheney Could you help to review this issue again? I didn't mean it should support darwin/arm. It's just an error message. Now I have changed the issue title. Thanks |
Please reopen the issue and edit the description as appropriate |
It seems I am not allowed to reopen this issue. |
I've reopened it but I'm not sure I understand the problem. Are you saying that gomobile requires darwin/arm support in all cases even when not building for darwin/arm? That would be unfortunate. CC @hyangah |
@ianlancetaylor Your understanding is correct. |
Confirmed. I'll take a look.
|
Change https://golang.org/cl/241717 mentions this issue: |
Thanks for the reply. This change can fix this issue. |
@libnat If that issue you found is an issue right now, please open a separate issue to track it. If it's introduced by that CL, please leave a review comment on it. @diegomontoya Only the darwin 32-bit ports are deprecated in Go 1.15. See https://tip.golang.org/doc/go1.15#darwin. |
Use the patch at https://golang.org/cl/241717 with Go 1.15beta1 gomobile bind -target=ios FAILS (same unsupported GOOS ARCH combo dawin/arm) The patch only addressed the specifics of passing -target=ios/arm64 and not the entire -target=ios build set. Something is wrong in go1.15bet1 causing =ios/amd64 compile inserting the macos build flag which xcode rejects. |
I'll try to create another CL. |
Change https://golang.org/cl/243477 mentions this issue: |
Go 1.15 no longer supports darwin/arm. This CL fixes by replacing 'allArchs' variable with a function taking a target OS, and excludes 'arm' when the target OS is iOS. Updates golang/go#39575 Change-Id: I0623ed4cda2c679d2762fd80a7919f24dd5ce016 Reviewed-on: https://go-review.googlesource.com/c/mobile/+/243477 Run-TryBot: Hajime Hoshi <hajimehoshi@gmail.com> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Go 1.15 no longer supports darwin/arm. arm64 is still supported by Android and iOS. Updates golang/go#39575 Change-Id: I91f09477ae68de148e4d63eef38d7d28f553d16c Reviewed-on: https://go-review.googlesource.com/c/mobile/+/241717 Run-TryBot: Hajime Hoshi <hajimehoshi@gmail.com> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
I think we can close this issue (I don't have a right to do this :-) |
Unfortunately still not fixed. I checked the patch set and the IOS allArchs code is wrong to include 386 target.
go1.15 also deprecated i386 for darwin. As result, I am getting "darwin/386" wrong GOOS/ARCH error when target=ios. Build system:
|
I really think the buildbot needs a updated test. This should not have passed buildbot ci imo. |
That's a little odd since |
Change https://golang.org/cl/243837 mentions this issue: |
My bad, the |
Change https://golang.org/cl/243838 mentions this issue: |
This is a remaining task for golang/go#39575. Updates golang/go#39575 Change-Id: I10c021a9349461a7a773d4e93e80601b906741b2 Reviewed-on: https://go-review.googlesource.com/c/mobile/+/243837 Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Go 1.15 no longer supports darwin/386 and supports only arm64 and amd64 for darwin. Updates golang/go#39575 Change-Id: I89e43f195f87baf5ea647da40614c579fbe45f88 Reviewed-on: https://go-review.googlesource.com/c/mobile/+/243838 Run-TryBot: Hajime Hoshi <hajimehoshi@gmail.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
@diegomontoya Does the latest commit work fine for you? |
@hajimehoshi Thank you for the changes. Everything goes well if the target is
Could you have a look at this? Please let me know if I should create a new issue. |
@libnat I see. Could you file another issue? Thanks! |
@hajimehoshi Fine. I created another issue: #40390 |
Go 1.15 no longer supports darwin/arm. This CL fixes by replacing 'allArchs' variable with a function taking a target OS, and excludes 'arm' when the target OS is iOS. Updates golang/go#39575 Change-Id: I0623ed4cda2c679d2762fd80a7919f24dd5ce016 Reviewed-on: https://go-review.googlesource.com/c/mobile/+/243477 Run-TryBot: Hajime Hoshi <hajimehoshi@gmail.com> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Go 1.15 no longer supports darwin/arm. arm64 is still supported by Android and iOS. Updates golang/go#39575 Change-Id: I91f09477ae68de148e4d63eef38d7d28f553d16c Reviewed-on: https://go-review.googlesource.com/c/mobile/+/241717 Run-TryBot: Hajime Hoshi <hajimehoshi@gmail.com> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This is a remaining task for golang/go#39575. Updates golang/go#39575 Change-Id: I10c021a9349461a7a773d4e93e80601b906741b2 Reviewed-on: https://go-review.googlesource.com/c/mobile/+/243837 Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Go 1.15 no longer supports darwin/386 and supports only arm64 and amd64 for darwin. Updates golang/go#39575 Change-Id: I89e43f195f87baf5ea647da40614c579fbe45f88 Reviewed-on: https://go-review.googlesource.com/c/mobile/+/243838 Run-TryBot: Hajime Hoshi <hajimehoshi@gmail.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Go 1.15 no longer supports darwin/arm. This CL fixes by replacing 'allArchs' variable with a function taking a target OS, and excludes 'arm' when the target OS is iOS. Updates golang/go#39575 Change-Id: I0623ed4cda2c679d2762fd80a7919f24dd5ce016 Reviewed-on: https://go-review.googlesource.com/c/mobile/+/243477 Run-TryBot: Hajime Hoshi <hajimehoshi@gmail.com> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Go 1.15 no longer supports darwin/arm. arm64 is still supported by Android and iOS. Updates golang/go#39575 Change-Id: I91f09477ae68de148e4d63eef38d7d28f553d16c Reviewed-on: https://go-review.googlesource.com/c/mobile/+/241717 Run-TryBot: Hajime Hoshi <hajimehoshi@gmail.com> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This is a remaining task for golang/go#39575. Updates golang/go#39575 Change-Id: I10c021a9349461a7a773d4e93e80601b906741b2 Reviewed-on: https://go-review.googlesource.com/c/mobile/+/243837 Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Go 1.15 no longer supports darwin/386 and supports only arm64 and amd64 for darwin. Updates golang/go#39575 Change-Id: I89e43f195f87baf5ea647da40614c579fbe45f88 Reviewed-on: https://go-review.googlesource.com/c/mobile/+/243838 Run-TryBot: Hajime Hoshi <hajimehoshi@gmail.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Go 1.15 no longer supports darwin/arm. This CL fixes by replacing 'allArchs' variable with a function taking a target OS, and excludes 'arm' when the target OS is iOS. Updates golang/go#39575 Change-Id: I0623ed4cda2c679d2762fd80a7919f24dd5ce016 Reviewed-on: https://go-review.googlesource.com/c/mobile/+/243477 Run-TryBot: Hajime Hoshi <hajimehoshi@gmail.com> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Go 1.15 no longer supports darwin/arm. arm64 is still supported by Android and iOS. Updates golang/go#39575 Change-Id: I91f09477ae68de148e4d63eef38d7d28f553d16c Reviewed-on: https://go-review.googlesource.com/c/mobile/+/241717 Run-TryBot: Hajime Hoshi <hajimehoshi@gmail.com> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This is a remaining task for golang/go#39575. Updates golang/go#39575 Change-Id: I10c021a9349461a7a773d4e93e80601b906741b2 Reviewed-on: https://go-review.googlesource.com/c/mobile/+/243837 Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Go 1.15 no longer supports darwin/386 and supports only arm64 and amd64 for darwin. Updates golang/go#39575 Change-Id: I89e43f195f87baf5ea647da40614c579fbe45f88 Reviewed-on: https://go-review.googlesource.com/c/mobile/+/243838 Run-TryBot: Hajime Hoshi <hajimehoshi@gmail.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
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?
Tried three ways, all failed with the same error
gomobile bind -v -target=ios .
gomobile bind -v -target=ios/arm64 .
GOARCH=arm64 gomobile bind -v -target=ios .
What did you expect to see?
Generate objective-c framework
What did you see instead?
gomobile: go [-e -json -compiled=true -test=false -export=false -deps=false -find=true -tags=ios -- mypkg]: exit status 2: cmd/go: unsupported GOOS/GOARCH pair darwin/arm
The text was updated successfully, but these errors were encountered: