Skip to content

[question] compile a source for mips #16210

@MrDini123

Description

@MrDini123

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?
    go version go1.2.1 linux/amd64
  2. What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH=""
GORACE=""
GOROOT="/usr/lib/go"
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
TERM="dumb"
CC="gcc"
GOGCCFLAGS="-g -O2 -fPIC -m64 -pthread"
CXX="g++"
CGO_ENABLED="1"
  1. What did you do?
    If possible, provide a recipe for reproducing the error.
    A complete runnable program is good.
    A link on play.golang.org is best.
  2. What did you expect to see?
  3. What did you see instead?

Hi!

I have a mipsel router (mips32) with TomatoUSB and I have a 4g dongle, which uses hi-link. And I found this source, So I want to compile it using cross-compiler on my ubuntu PC.

But when I try to get it, it says:

# env GOOS=linux GOARCH=mips go get https://github.com/knq/hilink
2016/06/29 16:59:45 unsupported GOARCH mips

So how Can I compile it?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions