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: error when running 'gomobile init' #17120

Closed
fanus opened this issue Sep 15, 2016 · 1 comment

Comments

Projects
None yet
4 participants
@fanus
Copy link

commented Sep 15, 2016

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

go version go1.7.1 linux/amd64

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

go env:

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/host/projects/golang-prototyping"
GORACE=""
GOROOT="/usr/lib/go"
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"

echo $PATH:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/host/projects/golang-prototyping/bin

What did you do?

cd /host/projects/golang-prototyping
export GOPATH=$PWD
export PATH=$PATH:$GOPATH/bin
go get golang.org/x/mobile/cmd/gomobile
gomobile init

~10 minutes later I got the error message

What did you expect to see?

No error message and then being able to run:
gomobile build -target=android hello.go

What did you see instead?

I received this error message.
gomobile: open /host/projects/golang-prototyping/pkg/gomobile/work-685604373/android-ndk-r12b/platforms/android-21/arch-arm64/usr/include/linux/netfilter/xt_connmark.h: file exists

Additional notes

I'm running this go version inside a Arch Linux Docker container. I installed go, go-tools, etc. (all dependencies) using pacman package manager. My host is Windows 10 64bit and my terminal is "Docker Quickstart Terminal" using VMware and not Hyper-V. Not sure if this is all relevant.

Thankful for you time 👍

@quentinmit quentinmit modified the milestone: Unreleased Oct 4, 2016

@gopherbot gopherbot added the mobile label Jul 20, 2017

@eliasnaur

This comment has been minimized.

Copy link
Contributor

commented Mar 16, 2018

Gomobile doesn't download the NDK anymore.

@eliasnaur eliasnaur closed this Mar 16, 2018

@golang golang locked and limited conversation to collaborators Mar 16, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.