Skip to content

x/mobile: no exported names in the package #48743

@tangxuesong6

Description

@tangxuesong6

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

go version go1.16.8 linux/amd64

Does this issue reproduce with the latest release?

yes, i ues both 1.16.8 and latest

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

GO111MODULE="off"
GOARCH="amd64"
GOBIN="/home/txs/go/bin"
GOCACHE="/home/txs/.cache/go-build"
GOENV="/home/txs/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/txs/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/txs/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/txs/Center/env/go1.16.8.linux-amd64/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/txs/Center/env/go1.16.8.linux-amd64/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.16.8"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
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 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build225390963=/tmp/go-build -gno-record-gcc-switches"

What did you do?

I want to build .aar for Android. LastDay i successed on my windows pc. So, Today i use my Ubuntu 21.04 to try again. got failed.

What did you expect to see?

output an aar file

What did you see instead?

When i exec gomobile bind -target=android hello on my shell, return gomobile: /home/txs/go/bin/gobind -lang=go,java -outdir=/tmp/gomobile-work-895177626 hello failed: exit status 1
no exported names in the package "hello"
no exported names in the package "hello"

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.WaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.mobileAndroid, iOS, and x/mobile

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions