Compile fails on 32-bit ARM architecture
gregoryleblanc opened this issue · 2 comments
gregoryleblanc commented
grafana support sent me an email telling me that my v4 instance will be upgraded to v5, so I am trying to build a new version of carbon-relay-ng (first installed/updated around a year ago).
I can't get carbon-relay-ng to build on a 32-bit raspbian OS. I'm getting the following output at build time:
$ make
cd ui/web && go-bindata -pkg web admin_http_assets/...
find . -name '*.go' | grep -v '^\.\/vendor' | xargs gofmt -w -s
CGO_ENABLED=0 go build -ldflags "-X main.Version=1.2-1-g375f430" ./cmd/carbon-relay-ng
# github.com/grafana/metrictank/util
../../../../pkg/mod/github.com/grafana/metrictank@v1.0.1-0.20210114150051-52835b9a8775/util/flag_parsers.go:32:27: math.MaxUint32 (untyped int constant 4294967295) overflows int
make: *** [Makefile:7: build] Error 2
$
My go version is:
$ go version go version go1.18.1 linux/arm
uname information:
$ uname -a Linux raspberrypi 5.10.52-v7+ #1441 SMP Tue Aug 3 18:10:09 BST 2021 armv7l GNU/Linux
I also tried building metrictank pulled from git, but it returns the same error. I don't think that line in metrictank has been changed in years, so maybe I'm barking up the wrong tree.