chaisql / chai

Modern embedded SQL database
MIT License
1.56k stars 95 forks source link

Genji does not compile for 32-bit platforms #485

Closed Elara6331 closed 1 year ago

Elara6331 commented 1 year ago

What version of Genji are you using?

$ genji version
Genji v0.15.1
Genji CLI v0.15.1

What did you do?

Attempted to compile a program importing GenjiDB with GOARCH=386

What did you expect to see?

Successful compilation

What did you see instead?

# github.com/cockroachdb/pebble/internal/batchskl
../../.go/pkg/mod/github.com/cockroachdb/pebble@v0.0.0-20220708173837-d3484a60444e/internal/batchskl/skl.go:310:18: maxNodesSize (untyped int constant 4294967295) overflows int
../../.go/pkg/mod/github.com/cockroachdb/pebble@v0.0.0-20220708173837-d3484a60444e/internal/batchskl/skl.go:320:16: cannot use maxNodesSize (untyped int constant 4294967295) as int value in assignment (overflows)

This appears to be an issue with Pebble (cockroachdb/pebble#2120)

Elara6331 commented 1 year ago

This issue has been fixed by the merging of cockroachdb/pebble#2878