What version of Go are you using (go version)?
$ go version
go version go1.12 linux/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
$ go env
build on : amd64 linux,
runing on:mips16 Linux version 2.6.30.9
What did you do?
file
package main
import (
"fmt"
)
func main() {
fmt.Printf("see me you win")
}
build command:
i have tried
GOOS=linux GOARCH=mips GOMIPS=softfloat go build -a test.go
GOOS=linux GOARCH=mipsle GOMIPS=softfloat go build -a test.go
i run in the target:
mips output like
Illegal instruction
mipsle output like that
./test: line 1: syntax error: "(" unexpected
it seems like that the softfloat don't work.
but i tested the ./test in other openwrt router(closed fpu) it works.
What did you expect to see?
i expect i can see "see me you win" in the target router.
What did you see instead?
Illegal instruction
What version of Go are you using (
go version)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env)?$ go env
build on : amd64 linux,
runing on:mips16 Linux version 2.6.30.9
What did you do?
file
build command:
i have tried
GOOS=linux GOARCH=mips GOMIPS=softfloat go build -a test.go
GOOS=linux GOARCH=mipsle GOMIPS=softfloat go build -a test.go
i run in the target:
mips output like
mipsle output like that
it seems like that the softfloat don't work.
but i tested the ./test in other openwrt router(closed fpu) it works.
What did you expect to see?
i expect i can see "see me you win" in the target router.
What did you see instead?
Illegal instruction