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: gomobile bind fails to find cgo library #38428

Closed
YounseoRyu opened this issue Apr 14, 2020 · 1 comment
Closed

x/mobile: gomobile bind fails to find cgo library #38428

YounseoRyu opened this issue Apr 14, 2020 · 1 comment
Labels
Milestone

Comments

@YounseoRyu
Copy link

@YounseoRyu YounseoRyu commented Apr 14, 2020

It seems like gomobile bind command cannot find CGO libraries.
I enabled CGO, and still, the issue remains the same.
I would really appreciate it if someone could help me with this matter.

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

$ go version
go version go1.14.1 darwin/amd64

Does this issue reproduce with the latest release?

Yes

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

go env Output

$ go env

GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/younseo/Library/Caches/go-build"
GOENV="/Users/younseo/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/younseo/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/opt/go/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/opt/go/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/yq/4rz_9mts3w725cccjrp66pxm0000gn/T/go-build490416867=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

$gomobile bind -target ios
$gomobile bind -target android

What did you expect to see?

*.arr, *.jar, Framework files being generated

What did you see instead?

gomobile bind failed to find cgo libraries.
Screen Shot 2020-04-13 at 7 46 06 PM

@YounseoRyu YounseoRyu changed the title gomobile bind fail to find cgo library gomobile bind fails to find CGo library Apr 14, 2020
@YounseoRyu YounseoRyu changed the title gomobile bind fails to find CGo library gomobile bind fails to find cgo library Apr 14, 2020
@YounseoRyu YounseoRyu changed the title gomobile bind fails to find cgo library x/mobile: gomobile bind fails to find cgo library Apr 14, 2020
@gopherbot gopherbot added this to the Unreleased milestone Apr 14, 2020
@gopherbot gopherbot added the mobile label Apr 14, 2020
@andybons
Copy link
Member

@andybons andybons commented Apr 14, 2020

Hi there,

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.

For asking questions, see:

Please ask the question on one of the above forums.

(Quoted from https://golang.org/wiki/Questions)

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

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.