Original post

env
CGO_ENABLED=1
GOOS=linux
GOARCH=arm
GOARM=7
CC=arm-fsl-linux-gnueabi-gcc
CXX=arm-fsl-linux-gnueabi-g++
go build -o xxxxxx .

there is some wrong with it and tips
“ARM external linker must be gold (issue #15696), but is not: collect2 version 4.6.2 20110630 (prerelease) (ARM GNU/Linux with ELF)” everytime

could anybody else can help me, thanks a lot

Make sure you have OS up-to-date https://github.com/golang/go/issues/15696
Are you compiling on Raspberry PI 2?

absolutely not, I use it on i.mx6 platform, a Embedded chip with arm

what os do you have? do you use tinygo?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.