[pkg-go] Bug#871330: prometheus-alertmanager: FTBFS: src/github.com/prometheus/alertmanager/api/api.go:91: undefined: route.Context

Lucas Nussbaum lucas at debian.org
Mon Aug 7 15:59:18 UTC 2017


Source: prometheus-alertmanager
Version: 0.5.1+ds-7
Severity: serious
Tags: buster sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20170807 qa-ftbfs
Justification: FTBFS on amd64

Hi,

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

Relevant part (hopefully):
> make[1]: Entering directory '/<<BUILDDIR>>/prometheus-alertmanager-0.5.1+ds'
> dh_auto_build -- -ldflags " -X github.com/prometheus/common/version.Version=0.5.1+ds -X github.com/prometheus/common/version.Revision=0.5.1+ds-7 -X github.com/prometheus/common/version.Branch=debian/sid -X github.com/prometheus/common/version.BuildUser=pkg-go-maintainers at lists.alioth.debian.org -X github.com/prometheus/common/version.BuildDate=20170116-03:56:46 -X github.com/prometheus/common/version.GoVersion=go1.8.3"
> 	cd build
> 	go install -gcflags=\"-trimpath=/<<BUILDDIR>>/prometheus-alertmanager-0.5.1\+ds/build/src\" -asmflags=\"-trimpath=/<<BUILDDIR>>/prometheus-alertmanager-0.5.1\+ds/build/src\" -v -p 1 -ldflags " -X github.com/prometheus/common/version.Version=0.5.1+ds -X github.com/prometheus/common/version.Revision=0.5.1+ds-7 -X github.com/prometheus/common/version.Branch=debian/sid -X github.com/prometheus/common/version.BuildUser=pkg-go-maintainers at lists.alioth.debian.org -X github.com/prometheus/common/version.BuildDate=20170116-03:56:46 -X github.com/prometheus/common/version.GoVersion=go1.8.3" github.com/prometheus/alertmanager/api github.com/prometheus/alertmanager/cmd/alertmanager github.com/prometheus/alertmanager/config github.com/prometheus/alertmanager/dispatch github.com/prometheus/alertmanager/examples/webhook github.com/prometheus/alertmanager/inhibit github.com/prometheus/alertmanager/nflog github.com/prometheus/alertmanager/nflog/nflogpb github.com/prometheus/alertmanager/notify github.com/prometheus/alertmanager/provider github.com/prometheus/alertmanager/provider/mem github.com/prometheus/alertmanager/silence github.com/prometheus/alertmanager/silence/silencepb github.com/prometheus/alertmanager/template github.com/prometheus/alertmanager/template/internal/deftmpl github.com/prometheus/alertmanager/test github.com/prometheus/alertmanager/types github.com/prometheus/alertmanager/ui github.com/prometheus/alertmanager/vendor/github.com/prometheus/client_golang/api/alertmanager
> github.com/golang/protobuf/proto
> github.com/golang/protobuf/ptypes/any
> github.com/golang/protobuf/ptypes/duration
> github.com/golang/protobuf/ptypes/timestamp
> github.com/golang/protobuf/ptypes
> github.com/prometheus/common/model
> gopkg.in/yaml.v2
> github.com/prometheus/alertmanager/config
> github.com/cenkalti/backoff
> github.com/prometheus/alertmanager/types
> github.com/prometheus/alertmanager/provider
> github.com/sirupsen/logrus
> github.com/prometheus/common/log
> github.com/prometheus/alertmanager/inhibit
> github.com/matttproud/golang_protobuf_extensions/pbutil
> github.com/prometheus/alertmanager/nflog/nflogpb
> github.com/beorn7/perks/quantile
> github.com/prometheus/client_model/go
> github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg
> github.com/prometheus/common/expfmt
> github.com/prometheus/procfs/xfs
> github.com/prometheus/procfs
> github.com/prometheus/client_golang/prometheus
> golang.org/x/crypto/curve25519
> golang.org/x/crypto/poly1305
> golang.org/x/crypto/salsa20/salsa
> golang.org/x/crypto/nacl/secretbox
> golang.org/x/crypto/nacl/box
> github.com/weaveworks/mesh
> github.com/prometheus/alertmanager/nflog
> github.com/prometheus/alertmanager/silence/silencepb
> github.com/satori/go.uuid
> github.com/prometheus/alertmanager/silence
> github.com/prometheus/alertmanager/template
> golang.org/x/net/context
> golang.org/x/net/context/ctxhttp
> github.com/prometheus/alertmanager/notify
> github.com/prometheus/alertmanager/dispatch
> github.com/julienschmidt/httprouter
> github.com/prometheus/common/route
> github.com/prometheus/common/version
> github.com/prometheus/alertmanager/api
> # github.com/prometheus/alertmanager/api
> src/github.com/prometheus/alertmanager/api/api.go:91: undefined: route.Context
> github.com/prometheus/alertmanager/provider/mem
> github.com/prometheus/alertmanager/ui
> github.com/prometheus/alertmanager/examples/webhook
> github.com/prometheus/alertmanager/template/internal/deftmpl
> github.com/prometheus/alertmanager/vendor/github.com/prometheus/client_golang/api/alertmanager
> github.com/prometheus/alertmanager/test
> dh_auto_build: go install -gcflags=\"-trimpath=/<<BUILDDIR>>/prometheus-alertmanager-0.5.1\+ds/build/src\" -asmflags=\"-trimpath=/<<BUILDDIR>>/prometheus-alertmanager-0.5.1\+ds/build/src\" -v -p 1 -ldflags " -X github.com/prometheus/common/version.Version=0.5.1+ds -X github.com/prometheus/common/version.Revision=0.5.1+ds-7 -X github.com/prometheus/common/version.Branch=debian/sid -X github.com/prometheus/common/version.BuildUser=pkg-go-maintainers at lists.alioth.debian.org -X github.com/prometheus/common/version.BuildDate=20170116-03:56:46 -X github.com/prometheus/common/version.GoVersion=go1.8.3" github.com/prometheus/alertmanager/api github.com/prometheus/alertmanager/cmd/alertmanager github.com/prometheus/alertmanager/config github.com/prometheus/alertmanager/dispatch github.com/prometheus/alertmanager/examples/webhook github.com/prometheus/alertmanager/inhibit github.com/prometheus/alertmanager/nflog github.com/prometheus/alertmanager/nflog/nflogpb github.com/prometheus/alertmanager/notify github.com/prometheus/alertmanager/provider github.com/prometheus/alertmanager/provider/mem github.com/prometheus/alertmanager/silence github.com/prometheus/alertmanager/silence/silencepb github.com/prometheus/alertmanager/template github.com/prometheus/alertmanager/template/internal/deftmpl github.com/prometheus/alertmanager/test github.com/prometheus/alertmanager/types github.com/prometheus/alertmanager/ui github.com/prometheus/alertmanager/vendor/github.com/prometheus/client_golang/api/alertmanager returned exit code 2
> 	cd /<<BUILDDIR>>/prometheus-alertmanager-0.5.1+ds
> debian/rules:48: recipe for target 'override_dh_auto_build' failed
> make[1]: *** [override_dh_auto_build] Error 2

The full build log is available from:
   http://aws-logs.debian.net/2017/08/07/prometheus-alertmanager_0.5.1+ds-7_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