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
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
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
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,
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
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:
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
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
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.
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.
10 matches
Mail list logo