On Thu, Jun 22, 2017 at 11:32:27AM -0700, Nathan Kerr wrote: > > > > I try to build a simple hello world with > > cgo_enabled=1 goarch=mips goos=linux go build hello.go | Result: > > illegal instruction
They need to be captitals: $ GOARCH=mips GOOS=linux go build > > > > 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. > > > > If anyone could give me a hint, I would be grateful. > > > > Thanks, > > Lucas. > > > > > > On Thursday, June 22, 2017 at 11:37:08 AM UTC-3, Ian Lance Taylor wrote: > >> > >> On Wed, Jun 21, 2017 at 7:48 PM, lucas.w...@gmail.com > >> <luc...@kryptus.com> wrote: > >> > > >> > Since go1.8 added support for mips32, why can't build a simple hello > >> world > >> > for a mips architecture system? > >> > > >> > I successfully build programs for arm architecture, but could not do > >> the > >> > same for mips. > >> > >> Tell us precisely what you did and precisely what happened. > >> > >> 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. -- 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.