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 -x' fails due to unused '-mno-thumb' argument passed to clang #30457

Closed
ssrlxl opened this issue Feb 28, 2019 · 4 comments
Labels
FrozenDueToAge mobile Android, iOS, and x/mobile NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@ssrlxl
Copy link

ssrlxl commented Feb 28, 2019

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

$ go version
go version go1.12 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
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/shaoshengrong/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/shaoshengrong/code/go/"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
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/kc/cg92l_vj04n2h70mw6clq22w0000gn/T/go-buil

What did you do?

exec : gomobile bind -x
error: clang: error: argument unused during compilation: '-mno-thumb' [-Werror,-Wunused-command-line-argument]

What did you expect to see?

exec : gomobile bind -x
error: clang: error: argument unused during compilation: '-mno-thumb' [-Werror,-Wunused-command-line-argument]

What did you see instead?

exec : gomobile bind -x
error: clang: error: argument unused during compilation: '-mno-thumb' [-Werror,-Wunused-command-line-argument]

@bcmills
Copy link
Contributor

bcmills commented Feb 28, 2019

Possibly related to #30415?

@bcmills bcmills changed the title gomobile build android error x/mobile: 'gomobile bind -x' fails due to unused '-mno-thumb' argument passed to clang Feb 28, 2019
@gopherbot gopherbot added this to the Unreleased milestone Feb 28, 2019
@gopherbot gopherbot added the mobile Android, iOS, and x/mobile label Feb 28, 2019
@bcmills
Copy link
Contributor

bcmills commented Feb 28, 2019

CC @eliasnaur @hyangah

@eliasnaur
Copy link
Contributor

I can't reproduce this on my macOS 10.14.1. Do you have NDK version r19b installed as well as run go get -u golang.org/x/mobile/cmd/...?

@bcmills bcmills added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. labels Feb 28, 2019
@gopherbot
Copy link

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@golang golang locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge mobile Android, iOS, and x/mobile NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

4 participants