kaspad icon indicating copy to clipboard operation
kaspad copied to clipboard

cannot be build on 32-bit system

Open PSLLSP opened this issue 1 year ago • 0 comments

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)

PSLLSP avatar Dec 08 '23 15:12 PSLLSP