gojay icon indicating copy to clipboard operation
gojay copied to clipboard

Failing unit tests on i686 architecture (RISC-V): constant ... overflows int

Open Hellseher opened this issue 1 year ago • 0 comments

Hi,

During package review requiring to update Kubo (IPfs) in Guix, I've faced with an issue when I try to build github.com/francoispqt/[email protected] on i686-linux machine:

# github.com/francoispqt/gojay [github.com/francoispqt/gojay.test]
src/github.com/francoispqt/gojay/decode_array_test.go:32:43: constant 43567788543 overflows int
src/github.com/francoispqt/gojay/decode_array_test.go:37:43: constant 43567788543 overflows int
src/github.com/francoispqt/gojay/decode_array_test.go:53:43: constant 43567788543 overflows int
src/github.com/francoispqt/gojay/decode_array_test.go:58:43: constant 43567788543 overflows int
src/github.com/francoispqt/gojay/decode_array_test.go:65:43: constant 43567788543 overflows int
src/github.com/francoispqt/gojay/decode_number_int_test.go:71:4: constant 9223372036854775807 overflows int
src/github.com/francoispqt/gojay/decode_number_int_test.go:139:4: constant 50100000000 overflows int
src/github.com/francoispqt/gojay/decode_number_int_test.go:373:4: constant 9223372036854775807 overflows int
src/github.com/francoispqt/gojay/decode_number_int_test.go:441:4: constant 50100000000 overflows int
src/github.com/francoispqt/gojay/encode_number_test.go:32:16: constant 9223372036854775807 overflows int
src/github.com/francoispqt/gojay/encode_number_test.go:32:16: too many errors
FAIL    github.com/francoispqt/gojay [build failed]
FAIL

To reproduce the issue:

guix time-machine --commit=42b4580f6bfcaab009a56e679bd6f3c408ef03c9 -- \
    build --system=i686-linux go-github-com-francoispqt-gojay

Thanks, Oleg

Hellseher avatar Apr 14 '24 13:04 Hellseher