Golang binary for Conduit
- This topic has 2 replies, 2 voices, and was last updated 9 years, 1 month ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Forums › Conduit: mLinux Model › Golang binary for Conduit
Hi,
Has anyone attempted deploying Golang code on Conduit linux version?
We have an application written in Golang that we are trying to run on the Conduit, but we get “Illegal Instruction” error.
Any suggestion would be really appreciated.
Thanks,
Zia
Conduit
admin@mtcdt:~# uname -a
Linux mtcdt 3.12.27 #1 Thu May 26 17:41:16 CDT 2016 armv5tejl GNU/Linux
admin@mtcdt:~# ./test
Illegal instruction
Development Machine
GOOS=linux GOARM=5 GOARCH=arm go build test.go
-> % file test
test: ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, not stripped
Zia,
It appears that you are trying to build for ARM5 which is correct. You should probably talk to the Go people and make sure that they support ARM5. After ARM5 the instruction sets grew for the later architectures, especially with regard to the Thumb instructions.
Jeff
I had to rebuild Golang compiler with ARM5 support and now it works.
Thanks.