Skip to content
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 bind reports an error and cannot be executed #43136

Closed
v3u3i87 opened this issue Dec 11, 2020 · 4 comments
Closed

x/mobile: cmd/gomobile bind reports an error and cannot be executed #43136

v3u3i87 opened this issue Dec 11, 2020 · 4 comments
Labels
Milestone

Comments

@v3u3i87
Copy link

@v3u3i87 v3u3i87 commented Dec 11, 2020

What version of Go are you using (go version)?

$ go version
go version go1.15.5 darwin/amd64

Does this issue reproduce with the latest release?

What operating system and processor architecture are you using (go env)?

GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/Users/q/Library/Caches/go-build" GOENV="/Users/q/Library/Application Support/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOINSECURE="" GOMODCACHE="/Users/q/go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="darwin" GOPATH="/Users/q/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/usr/local/Cellar/go/1.15.5/libexec" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/local/Cellar/go/1.15.5/libexec/pkg/tool/darwin_amd64" GCCGO="gccgo" AR="ar" CC="clang" CXX="clang++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/sc/0b0pydt90bv3vn17vpz6029h0000gn/T/go-build735052660=/tmp/go-build -gno-record-gcc-switches -fno-common"
$ go env

What did you do?

gomobile bind -target=ios hello

gomobile: darwin-arm64: go build -tags ios -buildmode=c-archive -o /var/folders/sc/0b0pydt90bv3vn17vpz6029h0000gn/T/gomobile-work-029196412/hello-arm64.a ./gobind failed: exit status 1
go build runtime/cgo: invalid flag in go:cgo_ldflag: -fembed-bitcode

What did you expect to see?

I hope it can be compiled successfully, but cannot be compiled successfully now

What did you see instead?

@odeke-em odeke-em changed the title gomobile bind reports an error and cannot be executed x/mobile: cmd/gomobile bind reports an error and cannot be executed Dec 11, 2020
@gopherbot gopherbot added this to the Unreleased milestone Dec 11, 2020
@odeke-em
Copy link
Member

@odeke-em odeke-em commented Dec 11, 2020

Thank you @v3u3i87 for the question and welcome to the Go project!

Kindly cc-ing @eliasnaur @hyangah to take a look.

@eliasnaur
Copy link
Contributor

@eliasnaur eliasnaur commented Dec 11, 2020

Could be a duplicate of #42567. Can you try Go 1.15.6?

@v3u3i87
Copy link
Author

@v3u3i87 v3u3i87 commented Dec 11, 2020

Could be a duplicate of #42567. Can you try Go 1.15.6?
@eliasnaur
ok,Thank you

@toothrot
Copy link
Contributor

@toothrot toothrot commented Dec 11, 2020

Closing as a dupe of #42565. Please comment if the latest released version of Go does not work.

@toothrot toothrot closed this Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants