[pkg-go] Bug#1004303: raft-boltdb FTBFS with riscv

Ileana Dumitrescu ileanadumi95 at protonmail.com
Mon Jan 24 15:37:38 GMT 2022


Package: golang-github-hashicorp-raft-boltdb
Version: 0.0~git20171010.6e5ba93-3
Tags: FTBFS

raft-boltdb fails to build on riscv architecture. This package is dependent on boltdb, which is incompatible with riscv. Example build log is shown below. bbolt is an updated fork of boltdb that does support riscv, but raft-boltdb has a build dependency on boltdb. I created an issue on the raft-boltdb upstream github page (https://github.com/hashicorp/raft-boltdb/issues/27). This FTBFS still occurs with the latest upstream release 2.2.0. See #982931 for another package impacted by this incompatibility with riscv.

dpkg-buildpackage: info: source package golang-github-hashicorp-raft-boltdb
dpkg-buildpackage: info: source version 0.0~git20171010.6e5ba93-3
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Alexandre Viau <aviau at debian.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture riscv64
 fakeroot debian/rules clean
dh clean --buildsystem=golang --with=golang
dh: warning: Compatibility levels before 10 are deprecated (level 9 in use)
   dh_auto_clean -O--buildsystem=golang
dh_auto_clean: warning: Compatibility levels before 10 are deprecated (level 9 in use)
   dh_clean -O--buildsystem=golang
dh_clean: warning: Compatibility levels before 10 are deprecated (level 9 in use)
 dpkg-source -b .
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building golang-github-hashicorp-raft-boltdb using existing ./golang-github-hashicorp-raft-boltdb_0.0~git20171010.6e5ba93.orig.tar.xz
dpkg-source: info: building golang-github-hashicorp-raft-boltdb in golang-github-hashicorp-raft-boltdb_0.0~git20171010.6e5ba93-3.debian.tar.xz
dpkg-source: info: building golang-github-hashicorp-raft-boltdb in golang-github-hashicorp-raft-boltdb_0.0~git20171010.6e5ba93-3.dsc
 debian/rules build
dh build --buildsystem=golang --with=golang
dh: warning: Compatibility levels before 10 are deprecated (level 9 in use)
   dh_update_autotools_config -O--buildsystem=golang
   dh_auto_configure -O--buildsystem=golang
dh_auto_configure: warning: Compatibility levels before 10 are deprecated (level 9 in use)
   dh_auto_build -O--buildsystem=golang
dh_auto_build: warning: Compatibility levels before 10 are deprecated (level 9 in use)
	cd obj-riscv64-linux-gnu && go install -trimpath -v -p 1 github.com/hashicorp/raft-boltdb
internal/unsafeheader
internal/abi
internal/cpu
internal/bytealg
internal/goexperiment
runtime/internal/atomic
runtime/internal/sys
runtime/internal/math
runtime
internal/reflectlite
errors
internal/race
sync/atomic
sync
io
unicode
unicode/utf8
bytes
math/bits
math
internal/itoa
strconv
reflect
encoding/binary
sort
internal/fmtsort
internal/oserror
syscall
internal/syscall/unix
time
internal/poll
internal/syscall/execenv
internal/testlog
path
io/fs
os
fmt
hash
hash/fnv
log
strings
runtime/debug
github.com/boltdb/bolt
# github.com/boltdb/bolt
src/github.com/boltdb/bolt/bolt_unix.go:62:14: [maxMapSize]byte used as value
src/github.com/boltdb/bolt/bolt_unix.go:62:15: undefined: maxMapSize
src/github.com/boltdb/bolt/bucket.go:135:15: undefined: brokenUnaligned
src/github.com/boltdb/bolt/db.go:101:12: [maxMapSize]byte used as value
src/github.com/boltdb/bolt/db.go:101:13: undefined: maxMapSize
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/freelist.go:169:18: [maxAllocSize]pgid used as value
src/github.com/boltdb/bolt/freelist.go:169:19: undefined: maxAllocSize
src/github.com/boltdb/bolt/freelist.go:169:18: too many errors
bufio
encoding
encoding/gob
go/token
encoding/base64
unicode/utf16
encoding/json
html
path/filepath
net/url
text/template/parse
text/template
html/template
context
vendor/golang.org/x/net/dns/dnsmessage
internal/nettrace
internal/singleflight
runtime/cgo
net
compress/flate
hash/crc32
compress/gzip
container/list
crypto/internal/subtle
crypto/subtle
crypto/cipher
crypto/aes
math/rand
math/big
crypto/rand
crypto
crypto/des
crypto/elliptic/internal/fiat
crypto/elliptic
crypto/internal/randutil
crypto/sha512
encoding/asn1
vendor/golang.org/x/crypto/cryptobyte/asn1
vendor/golang.org/x/crypto/cryptobyte
crypto/ecdsa
crypto/ed25519/internal/edwards25519/field
crypto/ed25519/internal/edwards25519
crypto/ed25519
crypto/hmac
crypto/md5
crypto/rc4
crypto/rsa
crypto/sha1
crypto/sha256
crypto/dsa
encoding/hex
crypto/x509/pkix
encoding/pem
crypto/x509
vendor/golang.org/x/crypto/internal/subtle
vendor/golang.org/x/crypto/chacha20
vendor/golang.org/x/crypto/poly1305
vendor/golang.org/x/crypto/chacha20poly1305
vendor/golang.org/x/crypto/curve25519
vendor/golang.org/x/crypto/hkdf
crypto/tls
vendor/golang.org/x/text/transform
vendor/golang.org/x/text/unicode/bidi
vendor/golang.org/x/text/secure/bidirule
vendor/golang.org/x/text/unicode/norm
vendor/golang.org/x/net/idna
net/textproto
vendor/golang.org/x/net/http/httpguts
vendor/golang.org/x/net/http/httpproxy
vendor/golang.org/x/net/http2/hpack
io/ioutil
mime
mime/quotedprintable
mime/multipart
net/http/httptrace
net/http/internal
net/http/internal/ascii
net/http
net/rpc
github.com/hashicorp/go-msgpack/codec
github.com/hashicorp/golang-lru/simplelru
github.com/hashicorp/go-immutable-radix
os/signal
github.com/armon/go-metrics
golang.org/x/sys/internal/unsafeheader
golang.org/x/sys/unix
github.com/mattn/go-isatty
github.com/mattn/go-colorable
github.com/fatih/color
regexp/syntax
regexp
github.com/hashicorp/go-hclog
hash/crc64
flag
internal/sysinfo
runtime/trace
testing
github.com/hashicorp/raft
dh_auto_build: error: cd obj-riscv64-linux-gnu && go install -trimpath -v -p 1 github.com/hashicorp/raft-boltdb returned exit code 2
make: *** [debian/rules:7: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the Pkg-go-maintainers mailing list