You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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/[email protected]/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.
The text was updated successfully, but these errors were encountered:
The value for orgID is parsed into a signed integer by Atoi. While integers on 64bit platforms are large enough to hold uint32, this is not the case on 32bit platforms. The maximum value of uint32 fits into a signed int64, but not into a signed int32.
The fix would be to replace line 28 in flag_parsers.go linked above:
orgID, err := strconv.ParseUint(parts[0], 10, 32)
Patching the file locally may be a workaround to build this project on 32bit RaspberryPi. I was able to compile after patching.
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:
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.
The text was updated successfully, but these errors were encountered: