Closed kevinelliott closed 5 years ago
Can you give some details about the processor, system and os you're building this on?
docker buildx, which does arm/v7, arm64, and amd64. No problems with the amd64.
Can you provide the output for each of the following commands?
uname -a
cat /etc/os-release
go version
go env
#31 [linux/arm64 builder 2/6] RUN uname -a
#31 0.306 Linux buildkitsandbox 4.9.184-linuxkit #1 SMP Tue Jul 2 22:58:16 UTC 2019 aarch64 Linux
#32 [linux/arm64 builder 3/6] RUN cat /etc/os-release
#32 0.218 NAME="Alpine Linux"
#32 0.218 ID=alpine
#32 0.218 VERSION_ID=3.9.4
#32 0.218 PRETTY_NAME="Alpine Linux v3.9"
#32 0.218 HOME_URL="https://alpinelinux.org/"
#32 0.218 BUG_REPORT_URL="https://bugs.alpinelinux.org/"
#33 [linux/arm64 builder 4/6] RUN go version
#33 0.493 go version go1.11.5 linux/arm64
#34 [linux/arm64 builder 5/6] RUN go env
#34 1.179 GOARCH="arm64"
#34 1.181 GOBIN=""
#34 1.181 GOCACHE="/root/.cache/go-build"
#34 1.181 GOEXE=""
#34 1.181 GOFLAGS=""
#34 1.182 GOHOSTARCH="arm64"
#34 1.183 GOHOSTOS="linux"
#34 1.183 GOOS="linux"
#34 1.183 GOPATH="/root/go"
#34 1.183 GOPROXY=""
#34 1.184 GORACE=""
#34 1.185 GOROOT="/usr/lib/go"
#34 1.185 GOTMPDIR=""
#34 1.185 GOTOOLDIR="/usr/lib/go/pkg/tool/linux_arm64"
#34 1.185 GCCGO="gccgo"
#34 1.186 CC="gcc"
#34 1.186 CXX="g++"
#34 1.187 CGO_ENABLED="1"
#34 1.188 GOMOD=""
#34 1.188 CGO_CFLAGS="-g -O2"
#34 1.188 CGO_CPPFLAGS=""
#34 1.188 CGO_CXXFLAGS="-g -O2"
#34 1.189 CGO_FFLAGS="-g -O2"
#34 1.189 CGO_LDFLAGS="-g -O2"
#34 1.189 PKG_CONFIG="pkg-config"
#34 1.190 GOGCCFLAGS="-fPIC -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build734129006=/tmp/go-build -gno-record-gcc-switches"
At the moment I'm unable to reproduce your error. I've attempted to do so using alpine linux on an RPi3 with no luck.
In any case, this appears to be an issue with your build environment rather than an issue with rtlamr. Since go will happily cross-compile from and to any architecture and OS, I would recommend building rtlamr on a known-working build environment for the target system you're interested in as follows starting in the rtlamr source directory:
GOOS=linux GOARCH=arm64 go build -v .