Compile a package mips32 platform

Hi!

I have a router running TomatoUSB and a 4g stick. And I want to use this, but for this, I have to install the hi-link program, which is written in go lang.

I have an openwrt-go gccgo, but I Cannot compile it, because it says the following:

# env CC=mipsel-openwrt-linux-gcc GOPATH=/home/pisti/go/ GOGCCFLAGS="-g -O2 -fPIC -m32 -pthread" go get -compiler=gccgo -u github.com/knq/hilink
# github.com/fatih/structs
gccgo: error: unrecognized command line option '-m64'

What Can I Do?

Thanks!

Ps.: Sorry for my bad English…

And when I specify the 386 GOARCH, it says the following:

root@KStudio:/home/pisti/go/src/github.com/fatih/structs# env CC=mipsel-openwrt-linux-gcc GOPATH=/home/pisti/go/ GOGCCFLAGS="-g -O2 -fPIC -m32 -pthread" GOARCH="386" go build -compiler=gccgo
# github.com/fatih/structs
gccgo: error: unrecognized command line option '-m32'

What shall I Do?

Thanks again! :slight_smile:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.