On Thu, Jun 22, 2017 at 9:19 AM,  <luc...@kryptus.com> wrote:
> I try to build a simple hello world with
> cgo_enabled=1 goarch=mips goos=linux go build hello.go    | Result: illegal
> instruction
>
> file information: ELF 32-bit MSB executable, MIPS, MIPS32 version 1 (SYSV),
> statically linked, not stripped
>
> Also, tried to build with another compile (CC=/path/to/Compiler) instead the
> one go uses. Also illegal instruction
> on my router tp-linkwdr3500.

Please show us precisely what you did.  Don't transcribe--that just
leads to confusion like the use of lower case when you meant upper
case.  Cut and paste from the terminal.

Please show us precisely what happened.  What was the exact and
complete output of running the program on the MIPS board?

Try running the program on the MIPS board using a debugger to find out
exactly what the illegal instruction was.

Ian

-- 
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.

Reply via email to