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 init fails to download ndk on x86 host #18522

Closed
justmax437 opened this issue Jan 5, 2017 · 5 comments

Comments

Projects
None yet
6 participants
@justmax437
Copy link

commented Jan 5, 2017

Please answer these questions before submitting your issue. Thanks!

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

go version go1.7.4 linux/386

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

GOARCH="386"
GOBIN=""
GOEXE=""
GOHOSTARCH="386"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/max/dev/workspace/go"
GORACE=""
GOROOT="/home/max/dev/go"
GOTOOLDIR="/home/max/dev/go/pkg/tool/linux_386"
CC="gcc"
GOGCCFLAGS="-fPIC -m32 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build501597397=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"

What did you do?

I'm trying to install gomobile using https://github.com/golang/go/wiki/Mobile as a manual.
Running (gomobile init) ends up with error message:
"gomobile: error fetching https://dl.google.com/go/mobile/gomobile-ndk-r12b-linux-x86.tar.gz, status: 404 Not Found"

Looks like it just can't find proper ndk to download. Is there any known fix or workaround for this?

@justmax437 justmax437 changed the title x/mobile: x/mobile: gomobile fails to download ndk on x86 host Jan 5, 2017

@justmax437 justmax437 changed the title x/mobile: gomobile fails to download ndk on x86 host x/mobile: gomobile init fails to download ndk on x86 host Jan 5, 2017

@bradfitz bradfitz added this to the Unreleased milestone Jan 5, 2017

@mvdan

This comment has been minimized.

Copy link
Member

commented Jan 5, 2017

To the best of my knowledge, the NDK dropped 32-bit support on Linux quite a few releases ago. They still seem to offer 32-bit builds for Windows, though.

@rakyll

This comment has been minimized.

Copy link
Member

commented Jan 5, 2017

32-bit Linux is not supported anymore. We should die with a proper error message saying it is not supported.

@justmax437

This comment has been minimized.

Copy link
Author

commented Jan 5, 2017

@rakyll
No way to get it to work with an outdated ndk for 386?
Something like "linux/386 ndk is outdated and is not supported by gomobile anymore. Use with caution"

@rakyll

This comment has been minimized.

Copy link
Member

commented Jan 8, 2017

There is no way to override the NDK location right now, but you should be able to override CC, CXX, CGO_CFLAGS, CGO_CPPFLAGS and CGO_LDFLAGS individually to target an earlier version of NDK toolchain.

@gopherbot

This comment has been minimized.

Copy link

commented Jan 17, 2017

CL https://golang.org/cl/35173 mentions this issue.

@golang golang locked and limited conversation to collaborators Jan 17, 2018

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.