Skip to content

cmd/compile: mips: running error SIGILL: illegal instruction  #30879

@shownb

Description

@shownb

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions