thanos: [ARM cpu] pkg/store/cache.go:100:23: constant 1000000000000 overflows int

Hey, I just go get’ed the project a few mins ago and tried to install it. But I ran into an error. Full output below.

pi@NanoPi-M3:~/go/src/github.com/improbable-eng/thanos$ make
>> fetching goimports
>> fetching promu
>> fetching dep
>> dep ensure
>> formatting code
>> building binaries
 >   thanos
# github.com/improbable-eng/thanos/pkg/store
pkg/store/cache.go:100:23: constant 1000000000000 overflows int
!! command failed: build -o /home/pi/go/src/github.com/improbable-eng/thanos/thanos -ldflags -X github.com/improbable-eng/thanos/vendor/github.com/prometheus/common/version.Version=v0.0.1 -X github.com/improbable-eng/thanos/vendor/github.com/prometheus/common/version.Revision=64207e6985c210e75367e132f3fb40ed19226f47 -X github.com/improbable-eng/thanos/vendor/github.com/prometheus/common/version.Branch=master -X github.com/improbable-eng/thanos/vendor/github.com/prometheus/common/version.BuildUser=pi@NanoPi-M3 -X github.com/improbable-eng/thanos/vendor/github.com/prometheus/common/version.BuildDate=20180601-12:39:58  -extldflags '-static' -a -tags netgo github.com/improbable-eng/thanos/cmd/thanos: exit status 2
Makefile:21: recipe for target 'build' failed
make: *** [build] Error 1

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 19 (11 by maintainers)

Most upvoted comments

Can try to fix this in future days. Basically instead of math.MaxInt64 we need int64(math.MaxInt64) to be able to compile on 32 bit system 👀

ah, thanks @pharaujo will make it bit easier for me to test 👍

Considering what parts of thanos one could want to run on a Raspberry Pi (or other low end hardware) - would it make things easier to do a build with only the sidecar functionality for 32bit?

I would love to run a thanos sidecar on some sensor-node-raspberries, but the rest is on 64bit hardware anyway.