[pkg-go] Bug#1010306: consul FTBFS with riscv

Ileana Dumitrescu ileanadumi95 at protonmail.com
Thu Apr 28 14:45:03 BST 2022

Package: consul
Version: 1.8.7+dfsg1-5

consul FTBFS for riscv because of its dependency on raft-boltdb, which has a dependency on boltdb, which does not have support for riscv. boltdb has since been forked to coreos/bbolt which does have support for riscv, but the dependencies in consul and raft-boltdb have not been updated. The upstream for raft-boltdb needs to be updated to replace the dependency on boltdb to bbolt. See #1004303 for the bug report on raft-boltdb [1]. I also wrote an issue on the raft-boltdb github page a few months ago [2]. Build log cutout below is where the issue occurs.

# github.com/boltdb/bolt
src/github.com/boltdb/bolt/db.go:101:13: undeclared name maxMapSize for array length
src/github.com/boltdb/bolt/db.go:317:12: undefined: maxMapSize
src/github.com/boltdb/bolt/db.go:335:10: undefined: maxMapSize
src/github.com/boltdb/bolt/db.go:336:8: undefined: maxMapSize
src/github.com/boltdb/bolt/db.go:795:2: pos declared but not used
src/github.com/boltdb/bolt/bolt_unix.go:62:15: undeclared name maxMapSize for array length
src/github.com/boltdb/bolt/bucket.go:135:15: undefined: brokenUnaligned
src/github.com/boltdb/bolt/freelist.go:166:2: idx declared but not used
src/github.com/boltdb/bolt/freelist.go:169:19: undeclared name maxAllocSize for array length
src/github.com/boltdb/bolt/freelist.go:176:14: undeclared name maxAllocSize for array length
src/github.com/boltdb/bolt/freelist.go:166:2: too many errors

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004303
[2] https://github.com/hashicorp/raft-boltdb/issues/27

More information about the Pkg-go-maintainers mailing list