golang/leveldb

Int overflow on 32 bits arches

eclipseo opened this issue · 0 comments

Golang 1.12.6 on i686 and armv7:

Testing    in: /builddir/build/BUILD/leveldb-259d9253d71996b7778a3efb4144fe4892342b18/_build/src
         PATH: /builddir/build/BUILD/leveldb-259d9253d71996b7778a3efb4144fe4892342b18/_build/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin
       GOPATH: /builddir/build/BUILD/leveldb-259d9253d71996b7778a3efb4144fe4892342b18/_build:/usr/share/gocode
  GO111MODULE: off
      command: go test -buildmode pie -compiler gc -ldflags "-X github.com/golang/leveldb/version=0 -X github.com/golang/leveldb/version.commit=259d9253d71996b7778a3efb4144fe4892342b18 -extldflags '-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '"
      testing: github.com/golang/leveldb
github.com/golang/leveldb
PASS
ok  	github.com/golang/leveldb	0.128s
github.com/golang/leveldb/bloom
FAIL	github.com/golang/leveldb/bloom [build failed]
BUILDSTDERR: # github.com/golang/leveldb/bloom [github.com/golang/leveldb/bloom.test]
BUILDSTDERR: ./bloom.go:111:35: constant 3332679571 overflows int