karalabe/xgo

Cross compiling linux/mips with softfloat

MattLok opened this issue · 3 comments

I'm trying to compile a go binary that uses some of the go-ethereum package. I've been running into a lot of issues trying to get my program running on a mips device. Running the following generates an "Illegal Instruction" error on device:

xgo --deps=https://gmplib.org/download/gmp/gmp-6.0.0a.tar.bz2 --targets=linux/mips --ldflags '-extldflags "-static"' ./
Before I was including the go-ethereum library in my application I was able to successfully compile and run the binary with the following build command:

env GOOS=linux GOARCH=mips GOMIPS=softfloat go build -a
How do I pass xgo the GOMIPS=softfloat argument?

Thank you!

Any update on this? I'm having a similar issue where I want to pass in GOMIPS=softfloat

Sorry Chris, still no update, haven't uncovered a solution for this problem yet. @karalabe is this even a possibility with the xgo tool ?

@MattLok Did you solved this problem? I am compiling mips with softfloat too.