Skip to content

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

Closed
@v3u3i87

Description

@v3u3i87

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?

Activity

changed the title [-]gomobile bind reports an error and cannot be executed[/-] [+]x/mobile: cmd/gomobile bind reports an error and cannot be executed[/+] on Dec 11, 2020
added this to the Unreleased milestone on Dec 11, 2020
odeke-em

odeke-em commented on Dec 11, 2020

@odeke-em
Member

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

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

eliasnaur

eliasnaur commented on Dec 11, 2020

@eliasnaur
Contributor

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

v3u3i87

v3u3i87 commented on Dec 11, 2020

@v3u3i87
Author

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

toothrot

toothrot commented on Dec 11, 2020

@toothrot
Contributor

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

locked and limited conversation to collaborators on Dec 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @toothrot@eliasnaur@v3u3i87@odeke-em@gopherbot

        Issue actions

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