Re: [go-nuts] go build for mips

2017-08-10 Thread lucasw
Sorry for my confused responses before. The thing was my hardware board lacked fpu, so that's why I could not make it work a simple hello world compiled with: GOOS=linux GOARCH=mips go build hello.go because the go compiler did not emmit softfloat. For other people who are facing the same

Re: [go-nuts] go build for mips

2017-07-03 Thread lucasw
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

Re: [go-nuts] go build for mips

2017-06-22 Thread lucasw
I'm building on linux amd64 system and want to execute the go binary on mips arch. Go1.8 The binary is successfully compiled, but when I execute it on my specific architecture (mips), I got an illegal instruction. The file information I provided is about the go binary compiled. It's a hello

Re: [go-nuts] go build for mips

2017-06-22 Thread lucasw
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