Sorry for not replying sooner. Building with CGO_ENABLED=1 GOARCH=mips GOOS=linux go build hello.go I got an Illegal Instruction running on my mips board.
I used a debugger to find out what was going on but it did not gave better answers why the illegal instruction was occuring. I was able to run it by recompiling the kernel with floating point emulation activated. Thanks, Lucas. On Thursday, June 22, 2017 at 6:36:37 PM UTC-3, kty...@gmail.com wrote: > > This can be related to issue #18162 > If you compile a normal go program for mips32 with the current compiler > and run it on hardware without FPU, this is the error message you see. > The preferred solution is for the compiler to emmit soft float code. It > has been implemented but did not make it into go-1.9. > As a work around, if you can recompile the kernel, you can add floating > point emulation to the kernel. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.