[pkg-go] Bug#954565: golang-github-grpc-ecosystem-go-grpc-prometheus: FTBFS: dh_auto_test: error: cd build_ && go test -vet=off -v -p 4 github.com/grpc-ecosystem/go-grpc-prometheus github.com/grpc-ecosystem/go-grpc-prometheus/packages/grpcstatus returned exit code 2

Lucas Nussbaum lucas at debian.org
Sun Mar 22 08:18:07 GMT 2020


Source: golang-github-grpc-ecosystem-go-grpc-prometheus
Version: 1.2.0+git20191002.6af20e3-2
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20200321 ftbfs-bullseye

Hi,

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

Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_configure
> 	install -d build_
> 	Copy go.sum -> build_/src/github.com/grpc-ecosystem/go-grpc-prometheus/go.sum
> 	Copy server.go -> build_/src/github.com/grpc-ecosystem/go-grpc-prometheus/server.go
> 	Copy server_metrics.go -> build_/src/github.com/grpc-ecosystem/go-grpc-prometheus/server_metrics.go
> 	Copy go.mod -> build_/src/github.com/grpc-ecosystem/go-grpc-prometheus/go.mod
> 	Copy metric_options.go -> build_/src/github.com/grpc-ecosystem/go-grpc-prometheus/metric_options.go
> 	Copy server_test.go -> build_/src/github.com/grpc-ecosystem/go-grpc-prometheus/server_test.go
> 	Copy client_reporter.go -> build_/src/github.com/grpc-ecosystem/go-grpc-prometheus/client_reporter.go
> 	Copy client_test.go -> build_/src/github.com/grpc-ecosystem/go-grpc-prometheus/client_test.go
> 	Copy client_metrics.go -> build_/src/github.com/grpc-ecosystem/go-grpc-prometheus/client_metrics.go
> 	Copy client.go -> build_/src/github.com/grpc-ecosystem/go-grpc-prometheus/client.go
> 	Copy server_reporter.go -> build_/src/github.com/grpc-ecosystem/go-grpc-prometheus/server_reporter.go
> 	Copy util.go -> build_/src/github.com/grpc-ecosystem/go-grpc-prometheus/util.go
> 	Copy examples/grpc-server-with-prometheus/server/server.go -> build_/src/github.com/grpc-ecosystem/go-grpc-prometheus/examples/grpc-server-with-prometheus/server/server.go
> 	Copy examples/grpc-server-with-prometheus/client/client.go -> build_/src/github.com/grpc-ecosystem/go-grpc-prometheus/examples/grpc-server-with-prometheus/client/client.go
> 	Copy examples/grpc-server-with-prometheus/protobuf/service.proto -> build_/src/github.com/grpc-ecosystem/go-grpc-prometheus/examples/grpc-server-with-prometheus/protobuf/service.proto
> 	Copy examples/grpc-server-with-prometheus/protobuf/service.pb.go -> build_/src/github.com/grpc-ecosystem/go-grpc-prometheus/examples/grpc-server-with-prometheus/protobuf/service.pb.go
> 	Copy examples/testproto/test.proto -> build_/src/github.com/grpc-ecosystem/go-grpc-prometheus/examples/testproto/test.proto
> 	Copy examples/testproto/test.pb.go -> build_/src/github.com/grpc-ecosystem/go-grpc-prometheus/examples/testproto/test.pb.go
> 	Copy packages/grpcstatus/native_unwrap1.12-.go -> build_/src/github.com/grpc-ecosystem/go-grpc-prometheus/packages/grpcstatus/native_unwrap1.12-.go
> 	Copy packages/grpcstatus/native_unwrap1.13+.go -> build_/src/github.com/grpc-ecosystem/go-grpc-prometheus/packages/grpcstatus/native_unwrap1.13+.go
> 	Copy packages/grpcstatus/grpcstatus1.13+_test.go -> build_/src/github.com/grpc-ecosystem/go-grpc-prometheus/packages/grpcstatus/grpcstatus1.13+_test.go
> 	Copy packages/grpcstatus/grpcstatus.go -> build_/src/github.com/grpc-ecosystem/go-grpc-prometheus/packages/grpcstatus/grpcstatus.go
> 	Copy packages/grpcstatus/grpcstatus_test.go -> build_/src/github.com/grpc-ecosystem/go-grpc-prometheus/packages/grpcstatus/grpcstatus_test.go
> 	Symlink /usr/share/gocode/src/cloud.google.com -> build_/src/cloud.google.com
> 	Symlink /usr/share/gocode/src/code.google.com -> build_/src/code.google.com
> 	Symlink /usr/share/gocode/src/github.com/alecthomas -> build_/src/github.com/alecthomas
> 	Symlink /usr/share/gocode/src/github.com/beorn7 -> build_/src/github.com/beorn7
> 	Symlink /usr/share/gocode/src/github.com/cespare -> build_/src/github.com/cespare
> 	Symlink /usr/share/gocode/src/github.com/davecgh -> build_/src/github.com/davecgh
> 	Symlink /usr/share/gocode/src/github.com/dgrijalva -> build_/src/github.com/dgrijalva
> 	Symlink /usr/share/gocode/src/github.com/go-check -> build_/src/github.com/go-check
> 	Symlink /usr/share/gocode/src/github.com/go-kit -> build_/src/github.com/go-kit
> 	Symlink /usr/share/gocode/src/github.com/go-logfmt -> build_/src/github.com/go-logfmt
> 	Symlink /usr/share/gocode/src/github.com/go-stack -> build_/src/github.com/go-stack
> 	Symlink /usr/share/gocode/src/github.com/golang -> build_/src/github.com/golang
> 	Symlink /usr/share/gocode/src/github.com/google -> build_/src/github.com/google
> 	Symlink /usr/share/gocode/src/github.com/jpillora -> build_/src/github.com/jpillora
> 	Symlink /usr/share/gocode/src/github.com/json-iterator -> build_/src/github.com/json-iterator
> 	Symlink /usr/share/gocode/src/github.com/julienschmidt -> build_/src/github.com/julienschmidt
> 	Symlink /usr/share/gocode/src/github.com/kr -> build_/src/github.com/kr
> 	Symlink /usr/share/gocode/src/github.com/matttproud -> build_/src/github.com/matttproud
> 	Symlink /usr/share/gocode/src/github.com/modern-go -> build_/src/github.com/modern-go
> 	Symlink /usr/share/gocode/src/github.com/mwitkow -> build_/src/github.com/mwitkow
> 	Symlink /usr/share/gocode/src/github.com/opentracing -> build_/src/github.com/opentracing
> 	Symlink /usr/share/gocode/src/github.com/pkg -> build_/src/github.com/pkg
> 	Symlink /usr/share/gocode/src/github.com/pmezard -> build_/src/github.com/pmezard
> 	Symlink /usr/share/gocode/src/github.com/prometheus -> build_/src/github.com/prometheus
> 	Symlink /usr/share/gocode/src/github.com/Sirupsen -> build_/src/github.com/Sirupsen
> 	Symlink /usr/share/gocode/src/github.com/sirupsen -> build_/src/github.com/sirupsen
> 	Symlink /usr/share/gocode/src/github.com/stretchr -> build_/src/github.com/stretchr
> 	Symlink /usr/share/gocode/src/golang.org -> build_/src/golang.org
> 	Symlink /usr/share/gocode/src/google.golang.org -> build_/src/google.golang.org
> 	Symlink /usr/share/gocode/src/gopkg.in -> build_/src/gopkg.in
> 	Symlink /usr/share/gocode/src/launchpad.net -> build_/src/launchpad.net
> # Rebuild protobuf.
> ( cd /<<PKGBUILDDIR>>/build_/src/github.com/grpc-ecosystem/go-grpc-prometheus/examples/testproto; \
>     protoc -I. \
>         -I/<<PKGBUILDDIR>>/build_/src \
>         --go_out=plugins=grpc:. \
>         test.proto; \
> )
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    dh_auto_build -O--buildsystem=golang -O--builddirectory=/<<BUILDDIR>>/golang-github-grpc-ecosystem-go-grpc-prometheus-1.2.0\+git20191002.6af20e3/build_
> 	cd build_ && go version
> go version go1.14.1 linux/amd64
> 	cd build_ && go env
> GO111MODULE="off"
> GOARCH="amd64"
> GOBIN=""
> GOCACHE="/<<PKGBUILDDIR>>/build_/go-build"
> GOENV="/sbuild-nonexistent/.config/go/env"
> GOEXE=""
> GOFLAGS=""
> GOHOSTARCH="amd64"
> GOHOSTOS="linux"
> GOINSECURE=""
> GONOPROXY=""
> GONOSUMDB=""
> GOOS="linux"
> GOPATH="/<<PKGBUILDDIR>>/build_"
> GOPRIVATE=""
> GOPROXY="off"
> GOROOT="/usr/lib/go-1.14"
> GOSUMDB="sum.golang.org"
> GOTMPDIR=""
> GOTOOLDIR="/usr/lib/go-1.14/pkg/tool/linux_amd64"
> GCCGO="gccgo"
> AR="ar"
> CC="gcc"
> CXX="g++"
> CGO_ENABLED="1"
> GOMOD=""
> CGO_CFLAGS="-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security"
> CGO_CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2"
> CGO_CXXFLAGS="-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security"
> CGO_FFLAGS="-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong"
> CGO_LDFLAGS="-Wl,-z,relro"
> PKG_CONFIG="pkg-config"
> GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build073403072=/tmp/go-build -gno-record-gcc-switches"
> 	cd build_ && go install -trimpath -v -p 4 github.com/grpc-ecosystem/go-grpc-prometheus github.com/grpc-ecosystem/go-grpc-prometheus/packages/grpcstatus
> runtime/internal/sys
> internal/race
> runtime/internal/atomic
> internal/cpu
> sync/atomic
> runtime/internal/math
> math/bits
> unicode/utf8
> internal/bytealg
> unicode
> internal/testlog
> math
> encoding
> unicode/utf16
> runtime
> container/list
> crypto/internal/subtle
> crypto/subtle
> vendor/golang.org/x/crypto/cryptobyte/asn1
> internal/nettrace
> runtime/cgo
> vendor/golang.org/x/crypto/internal/subtle
> internal/reflectlite
> sync
> internal/singleflight
> google.golang.org/grpc/internal/grpcsync
> math/rand
> errors
> sort
> internal/oserror
> io
> strconv
> syscall
> vendor/golang.org/x/net/dns/dnsmessage
> bytes
> reflect
> bufio
> strings
> hash
> time
> internal/syscall/unix
> hash/crc32
> crypto
> crypto/internal/randutil
> crypto/hmac
> crypto/rc4
> vendor/golang.org/x/crypto/hkdf
> vendor/golang.org/x/text/transform
> path
> github.com/beorn7/perks/quantile
> github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg
> context
> internal/poll
> regexp/syntax
> html
> text/tabwriter
> internal/fmtsort
> os
> encoding/binary
> google.golang.org/grpc/internal/grpcrand
> google.golang.org/grpc/encoding
> google.golang.org/grpc/internal/backoff
> golang.org/x/text/transform
> regexp
> encoding/base64
> crypto/cipher
> crypto/sha512
> fmt
> path/filepath
> crypto/aes
> crypto/des
> crypto/ed25519/internal/edwards25519
> io/ioutil
> crypto/md5
> crypto/sha1
> google.golang.org/grpc/codes
> encoding/json
> log
> compress/flate
> math/big
> google.golang.org/grpc/grpclog
> google.golang.org/grpc/connectivity
> google.golang.org/grpc/internal
> compress/gzip
> crypto/sha256
> github.com/golang/protobuf/proto
> encoding/hex
> encoding/pem
> net
> net/url
> vendor/golang.org/x/crypto/chacha20
> crypto/rand
> crypto/elliptic
> encoding/asn1
> crypto/ed25519
> crypto/ecdsa
> crypto/rsa
> crypto/dsa
> crypto/x509/pkix
> vendor/golang.org/x/crypto/cryptobyte
> vendor/golang.org/x/crypto/poly1305
> vendor/golang.org/x/sys/cpu
> github.com/golang/protobuf/ptypes/any
> github.com/golang/protobuf/ptypes/duration
> github.com/golang/protobuf/ptypes/timestamp
> google.golang.org/genproto/googleapis/rpc/status
> vendor/golang.org/x/crypto/chacha20poly1305
> github.com/golang/protobuf/ptypes
> vendor/golang.org/x/crypto/curve25519
> google.golang.org/grpc/status
> vendor/golang.org/x/text/unicode/bidi
> github.com/grpc-ecosystem/go-grpc-prometheus/packages/grpcstatus
> vendor/golang.org/x/text/unicode/norm
> vendor/golang.org/x/net/http2/hpack
> vendor/golang.org/x/text/secure/bidirule
> mime
> mime/quotedprintable
> net/http/internal
> github.com/cespare/xxhash
> github.com/prometheus/client_model/go
> vendor/golang.org/x/net/idna
> github.com/prometheus/client_golang/prometheus/internal
> github.com/matttproud/golang_protobuf_extensions/pbutil
> github.com/prometheus/common/model
> github.com/prometheus/procfs/internal/fs
> github.com/prometheus/procfs/internal/util
> runtime/debug
> golang.org/x/net/internal/timeseries
> text/template/parse
> google.golang.org/grpc/metadata
> google.golang.org/grpc/serviceconfig
> google.golang.org/grpc/encoding/proto
> google.golang.org/grpc/resolver
> google.golang.org/grpc/internal/balancerload
> google.golang.org/grpc/binarylog/grpc_binarylog_v1
> golang.org/x/sys/unix
> google.golang.org/grpc/internal/envconfig
> text/template
> golang.org/x/text/unicode/bidi
> crypto/x509
> net/textproto
> vendor/golang.org/x/net/http/httpguts
> vendor/golang.org/x/net/http/httpproxy
> mime/multipart
> github.com/prometheus/procfs
> html/template
> google.golang.org/grpc/credentials/internal
> google.golang.org/grpc/internal/binarylog
> crypto/tls
> golang.org/x/text/secure/bidirule
> golang.org/x/text/unicode/norm
> golang.org/x/net/http2/hpack
> google.golang.org/grpc/internal/syscall
> google.golang.org/grpc/keepalive
> google.golang.org/grpc/stats
> google.golang.org/grpc/tap
> google.golang.org/grpc/naming
> golang.org/x/net/idna
> google.golang.org/grpc/resolver/dns
> google.golang.org/grpc/resolver/passthrough
> golang.org/x/net/http/httpguts
> google.golang.org/grpc/credentials
> net/http/httptrace
> net/http
> google.golang.org/grpc/peer
> google.golang.org/grpc/balancer
> google.golang.org/grpc/internal/channelz
> google.golang.org/grpc/balancer/base
> google.golang.org/grpc/balancer/roundrobin
> expvar
> golang.org/x/net/trace
> github.com/prometheus/common/expfmt
> golang.org/x/net/http2
> net/http/httputil
> github.com/prometheus/client_golang/prometheus
> google.golang.org/grpc/internal/transport
> google.golang.org/grpc
> github.com/grpc-ecosystem/go-grpc-prometheus
>    dh_auto_test -O--buildsystem=golang -O--builddirectory=/<<BUILDDIR>>/golang-github-grpc-ecosystem-go-grpc-prometheus-1.2.0\+git20191002.6af20e3/build_
> 	cd build_ && go test -vet=off -v -p 4 github.com/grpc-ecosystem/go-grpc-prometheus github.com/grpc-ecosystem/go-grpc-prometheus/packages/grpcstatus
> # github.com/grpc-ecosystem/go-grpc-prometheus/examples/testproto
> src/github.com/grpc-ecosystem/go-grpc-prometheus/examples/testproto/test.pb.go:194:7: undefined: grpc.ClientConnInterface
> src/github.com/grpc-ecosystem/go-grpc-prometheus/examples/testproto/test.pb.go:198:11: undefined: grpc.SupportPackageIsVersion6
> src/github.com/grpc-ecosystem/go-grpc-prometheus/examples/testproto/test.pb.go:211:5: undefined: grpc.ClientConnInterface
> src/github.com/grpc-ecosystem/go-grpc-prometheus/examples/testproto/test.pb.go:214:30: undefined: grpc.ClientConnInterface
> FAIL	github.com/grpc-ecosystem/go-grpc-prometheus [build failed]
> === RUN   TestNativeErrorUnwrapping
> --- PASS: TestNativeErrorUnwrapping (0.00s)
> === RUN   TestErrorUnwrapping
> --- PASS: TestErrorUnwrapping (0.00s)
> PASS
> ok  	github.com/grpc-ecosystem/go-grpc-prometheus/packages/grpcstatus	0.011s
> FAIL
> dh_auto_test: error: cd build_ && go test -vet=off -v -p 4 github.com/grpc-ecosystem/go-grpc-prometheus github.com/grpc-ecosystem/go-grpc-prometheus/packages/grpcstatus returned exit code 2

The full build log is available from:
   http://qa-logs.debian.net/2020/03/21/golang-github-grpc-ecosystem-go-grpc-prometheus_1.2.0+git20191002.6af20e3-2_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