Badger build failed for GOOS=linux,arm

What version of Go are you using (go version)?

$ go version
go version go1.14.6

What operating system are you using?


What version of Badger are you using?


Does this issue reproduce with the latest master?


Steps to Reproduce the issue

under windows, using cross-platform compile:
set GOOS=linux
set GOARCH=arm

What Badger options were set?

opt.ValueLogLoadingMode = options.FileIO

What did you do?

Try to build my application to an arm/Linux binary

What did you expect to see?

it compiled 4 weeks ago without any issues

What did you see instead?

…\\dgraph-io\badger\value.go:50:5: constant 4294967295 overflows int

Hey @duckybsd,

Thanks for filing the issue. Can you please confirm if you are using 32-bit windows?

Badger build has been failing on 32 bit machines for a while and there is an open issue about it Fix badger builds on 32 bit machines .

As for this crash, this should be a simple change as this integer is overflowing on 32 bit machines

We’re looking for contributions so feel free to send a PR.

I am using windows 10 64 bits and try to do a cross compile my application to Linux/arm 32 bits binary

1 Like