Golang binary for Conduit

Home Forums Conduit: mLinux Model Golang binary for Conduit

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14419
    Zia Syed
    Participant

    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

    #14448
    Jeff Hatch
    Keymaster

    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

    #14528
    Zia Syed
    Participant

    I had to rebuild Golang compiler with ARM5 support and now it works.

    Thanks.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.