duckybsd
(duckybsd)
1
What version of Go are you using (go version
)?
$ go version
go version go1.14.6
What operating system are you using?
Windows
What version of Badger are you using?
v2
Does this issue reproduce with the latest master?
yes
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?
…\github.com\dgraph-io\badger\value.go:50:5: constant 4294967295 overflows int
ahsan
(Ahsan Barkati)
2
Hey @duckybsd,
Thanks for filing the issue. Can you please confirm if you are using 32-bit windows?
ibrahim
(Ibrahim Jarif)
3
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.
duckybsd
(duckybsd)
4
I am using windows 10 64 bits and try to do a cross compile my application to Linux/arm 32 bits binary
1 Like