You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got this problem when i use gomobile. gomobile bind -target=android
gomobile: go build -buildmode=c-shared -o=/tmp/gomobile-work-1834574251/android/src/main/jniLibs/armeabi-v7a/libgojni.so ./gobind failed: exit status 2
runtime/cgo
cgo: cannot parse $WORK/b047/cgo.o as ELF, Mach-O, PE or XCOFF
I got this problem when i use gomobile. gomobile bind -target=android
gomobile: go build -buildmode=c-shared -o=/tmp/gomobile-work-1834574251/android/src/main/jniLibs/armeabi-v7a/libgojni.so ./gobind failed: exit status 2
runtime/cgo
cgo: cannot parse $WORK/b047/cgo.o as ELF, Mach-O, PE or XCOFF
go env:
GO111MODULE="auto"
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/user/.cache/go-build"
GOENV="/home/user/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/user/Documents/project/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/user/Documents/project/go"
GOPRIVATE=""
GOPROXY="https://goproxy.io,direct"
GOROOT="/usr/local/go"
GOSUMDB="off"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.18"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
GOWORK=""
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 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2458979022=/tmp/go-build -gno-record-gcc-switches"
The text was updated successfully, but these errors were encountered: