kaspanet / kaspad

Kaspad was the reference full node Kaspa implementation written in Go (golang), now rewritten in Rust: https://github.com/kaspanet/rusty-kaspa
ISC License
450 stars 232 forks source link

cannot be build on 32-bit system #2248

Closed PSLLSP closed 1 month ago

PSLLSP commented 10 months ago

kaspad is written in GO, so it could be portable to most systems. But it seems that it is not compatible with 32-bit system because some integers are defines as int and not as int32, int64, uint32, uint64, etc...

Tested on Debian 12, i686

$ go version
go version go1.19.8 linux/386

$ cd kaspad

$ go install . ./cmd/...
# github.com/kaspanet/kaspad/util/bech32
util/bech32/bech32.go:28:23: cannot use 0x98f2bc8e61 (untyped int constant 656907472481) as int value in array or slice literal (overflows)
util/bech32/bech32.go:28:37: cannot use 0x79b76d99e2 (untyped int constant 522768456162) as int value in array or slice literal (overflows)
util/bech32/bech32.go:28:51: cannot use 0xf33e5fb3c4 (untyped int constant 1044723512260) as int value in array or slice literal (overflows)
util/bech32/bech32.go:28:65: cannot use 0xae2eabe2a8 (untyped int constant 748107326120) as int value in array or slice literal (overflows)
util/bech32/bech32.go:28:79: cannot use 0x1e4f43e470 (untyped int constant 130178868336) as int value in array or slice literal (overflows)
util/bech32/bech32.go:286:27: 0x07ffffffff (untyped int constant 34359738367) overflows int

# github.com/kaspanet/kaspad/cmd/kaspawallet/libkaspawallet/bip32
cmd/kaspawallet/libkaspawallet/bip32/path.go:51:14: hardenedIndexStart (untyped int constant 2147483648) overflows int
cmd/kaspawallet/libkaspawallet/bip32/path.go:52:63: cannot use hardenedIndexStart (untyped int constant 2147483648) as int value in argument to errors.Errorf (overflows)
someone235 commented 1 month ago

The go implementation is deprecated: Any pull requests or issues that will be opened in this repository will be closed without treatment, except for issues or pull requests related to the kaspawallet, which remains maintained. In any other case, please use the Rust implementation instead.