[pkg-go] Bug#975230: golang-pault-go-ykpiv: FTBFS: src/pault.ag/go/ykpiv/ykpiv.go:539:12: _Ctype_struct_ykpiv_state can't be allocated in Go; it is incomplete (or unallocatable)

Lucas Nussbaum lucas at debian.org
Thu Nov 19 09:52:55 GMT 2020


Source: golang-pault-go-ykpiv
Version: 1.3.1-1
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201119 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> dpkg-buildpackage
> -----------------
> 
> Command: dpkg-buildpackage -us -uc -sa -rfakeroot
> dpkg-buildpackage: info: source package golang-pault-go-ykpiv
> dpkg-buildpackage: info: source version 1.3.1-1
> dpkg-buildpackage: info: source distribution unstable
> dpkg-buildpackage: info: source changed by Nilesh Patra <npatra974 at gmail.com>
>  dpkg-source --before-build .
> dpkg-buildpackage: info: host architecture amd64
>  debian/rules clean
> dh clean --buildsystem=golang --with=golang
>    dh_auto_clean -O--buildsystem=golang
>    dh_autoreconf_clean -O--buildsystem=golang
>    dh_clean -O--buildsystem=golang
>  dpkg-source -b .
> dpkg-source: info: using source format '3.0 (quilt)'
> dpkg-source: info: building golang-pault-go-ykpiv using existing ./golang-pault-go-ykpiv_1.3.1.orig.tar.gz
> dpkg-source: info: building golang-pault-go-ykpiv in golang-pault-go-ykpiv_1.3.1-1.debian.tar.xz
> dpkg-source: info: building golang-pault-go-ykpiv in golang-pault-go-ykpiv_1.3.1-1.dsc
>  debian/rules binary
> dh binary --buildsystem=golang --with=golang
>    dh_update_autotools_config -O--buildsystem=golang
>    dh_autoreconf -O--buildsystem=golang
>    dh_auto_configure -O--buildsystem=golang
>    dh_auto_build -O--buildsystem=golang
> 	cd obj-x86_64-linux-gnu && go install -trimpath -v -p 4 pault.ag/go/ykpiv pault.ag/go/ykpiv/cmd/ykls pault.ag/go/ykpiv/internal/bytearray pault.ag/go/ykpiv/internal/pkcs1v15
> internal/unsafeheader
> internal/cpu
> runtime/internal/atomic
> runtime/internal/sys
> internal/race
> runtime/internal/math
> sync/atomic
> unicode
> unicode/utf8
> internal/bytealg
> math/bits
> crypto/internal/subtle
> math
> crypto/subtle
> internal/testlog
> runtime
> unicode/utf16
> vendor/golang.org/x/crypto/cryptobyte/asn1
> container/list
> internal/nettrace
> runtime/cgo
> vendor/golang.org/x/crypto/internal/subtle
> internal/reflectlite
> sync
> internal/singleflight
> math/rand
> errors
> sort
> io
> internal/oserror
> strconv
> vendor/golang.org/x/net/dns/dnsmessage
> syscall
> bytes
> hash
> crypto
> reflect
> strings
> crypto/internal/randutil
> crypto/hmac
> crypto/rc4
> vendor/golang.org/x/crypto/hkdf
> internal/syscall/unix
> time
> internal/syscall/execenv
> bufio
> golang.org/x/crypto/pbkdf2
> context
> internal/poll
> os
> internal/fmtsort
> encoding/binary
> crypto/sha512
> crypto/ed25519/internal/edwards25519
> crypto/cipher
> fmt
> crypto/aes
> crypto/des
> crypto/md5
> crypto/sha1
> crypto/sha256
> encoding/base64
> encoding/pem
> path/filepath
> math/big
> encoding/hex
> net
> net/url
> io/ioutil
> vendor/golang.org/x/crypto/chacha20
> vendor/golang.org/x/crypto/poly1305
> vendor/golang.org/x/sys/cpu
> vendor/golang.org/x/crypto/curve25519
> vendor/golang.org/x/crypto/chacha20poly1305
> pault.ag/go/ykpiv/internal/pkcs1v15
> crypto/rand
> encoding/asn1
> crypto/elliptic
> crypto/rsa
> crypto/ed25519
> vendor/golang.org/x/crypto/cryptobyte
> crypto/dsa
> crypto/x509/pkix
> pault.ag/go/ykpiv/internal/bytearray
> crypto/ecdsa
> crypto/x509
> crypto/tls
> pault.ag/go/ykpiv
> # pault.ag/go/ykpiv
> src/pault.ag/go/ykpiv/ykpiv.go:539:12: _Ctype_struct_ykpiv_state can't be allocated in Go; it is incomplete (or unallocatable)
> src/pault.ag/go/ykpiv/ykpiv.go:569:11: _Ctype_struct_ykpiv_state can't be allocated in Go; it is incomplete (or unallocatable)
> dh_auto_build: error: cd obj-x86_64-linux-gnu && go install -trimpath -v -p 4 pault.ag/go/ykpiv pault.ag/go/ykpiv/cmd/ykls pault.ag/go/ykpiv/internal/bytearray pault.ag/go/ykpiv/internal/pkcs1v15 returned exit code 2
> make: *** [debian/rules:4: binary] Error 25

The full build log is available from:
   http://qa-logs.debian.net/2020/11/19/golang-pault-go-ykpiv_1.3.1-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Pkg-go-maintainers mailing list