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

Re: [go-nuts] go build for mips

2017-06-22 Thread Ian Lance Taylor
On Thu, Jun 22, 2017 at 9:19 AM, 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,

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 Harmen
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:

Re: [go-nuts] go build for mips

2017-06-22 Thread Nathan Kerr
What system are you building on (OS and architecture)? What version of Go are you using? Is the result of running go build an illegal instruction? What file did you provide information for? What is in hello.go? On Thursday, June 22, 2017 at 6:19:47 PM UTC+2, luc...@kryptus.com wrote: > > I

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

Re: [go-nuts] go build for mips

2017-06-22 Thread Ian Lance Taylor
On Wed, Jun 21, 2017 at 7:48 PM, lucas.wiechm...@gmail.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.

[go-nuts] go build for mips

2017-06-22 Thread lucas.wiechm...@gmail.com
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. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group.