prometheus/alertmanager/provider/mem=/tmp/go-build488237770/b386/_pkg_.a packagefile github.com/prometheus/alertmanager/silence=/tmp/go-build488237770/b314/_pkg_.a packagefile github.com/prometheus/alertmanager/template=/tmp/go-build488237770/b317/_pkg_.a packagefile github.com/prometheus/alertmanager/timeinterval=/tmp/go-build488237770/b232/_pkg_.a packagefile github.com/prometheus/alertmanager/types=/tmp/go-build488237770/b304/_pkg_.a packagefile github.com/prometheus/alertmanager/ui=/tmp/go-build488237770/b387/_pkg_.a packagefile github.com/prometheus/client_golang/prometheus=/tmp/go-build488237770/b067/_pkg_.a packagefile github.com/prometheus/client_golang/prometheus/promhttp=/tmp/go-build488237770/b388/_pkg_.a packagefile github.com/prometheus/common/model=/tmp/go-build488237770/b177/_pkg_.a packagefile github.com/prometheus/common/promlog=/tmp/go-build488237770/b394/_pkg_.a packagefile github.com/prometheus/common/promlog/flag=/tmp/go-build488237770/b395/_pkg_.a packagefile github.com/prometheus/common/route=/tmp/go-build488237770/b321/_pkg_.a packagefile github.com/prometheus/common/version=/tmp/go-build488237770/b323/_pkg_.a packagefile github.com/prometheus/exporter-toolkit/web=/tmp/go-build488237770/b399/_pkg_.a packagefile github.com/prometheus/exporter-toolkit/web/kingpinflag=/tmp/go-build488237770/b405/_pkg_.a packagefile gopkg.in/alecthomas/kingpin.v2=/tmp/go-build488237770/b406/_pkg_.a packagefile net=/tmp/go-build488237770/b115/_pkg_.a packagefile net/http=/tmp/go-build488237770/b069/_pkg_.a packagefile net/url=/tmp/go-build488237770/b122/_pkg_.a packagefile os=/tmp/go-build488237770/b040/_pkg_.a packagefile os/signal=/tmp/go-build488237770/b196/_pkg_.a packagefile path/filepath=/tmp/go-build488237770/b123/_pkg_.a packagefile runtime=/tmp/go-build488237770/b009/_pkg_.a packagefile strings=/tmp/go-build488237770/b054/_pkg_.a packagefile sync=/tmp/go-build488237770/b021/_pkg_.a packagefile syscall=/tmp/go-build488237770/b025/_pkg_.a packagefile time=/tmp/go-build488237770/b024/_pkg_.a packagefile runtime/cgo=/tmp/go-build488237770/b121/_pkg_.a EOF /usr/lib/golang/pkg/tool/linux_riscv64/compile -o $WORK/b001/_pkg_.a -trimpath "$WORK/b001=>" -p main -complete -installsuffix shared -buildid UJKkmLxz6hktTxxS5Aj6/UJKkmLxz6hktTxxS5Aj6 -goversion go1.22.0 -c=4 -shared -nolocalimports -importcfg $WORK/b001/importcfg -pack ./_build/src/github.com/prometheus/alertmanager/cmd/alertmanager/main.go # github.com/prometheus/alertmanager/cmd/alertmanager _build/src/github.com/prometheus/alertmanager/cmd/alertmanager/main.go:194:37: not enough arguments in call to webflag.AddFlags have (*"gopkg.in/alecthomas/kingpin.v2".Application) want (*"github.com/alecthomas/kingpin/v2".Application, string) _build/src/github.com/prometheus/alertmanager/cmd/alertmanager/main.go:216:23: cannot use kingpin.CommandLine (variable of type *"gopkg.in/alecthomas/kingpin.v2".Application) as *"github.com/alecthomas/kingpin/v2".Application value in argument to promlogflag.AddFlags _build/src/github.com/prometheus/alertmanager/cmd/alertmanager/main.go:519:37: cannot use *webConfig (variable of type web.FlagConfig) as *web.FlagConfig value in argument to web.ListenAndServe error: Bad exit status from /var/tmp/rpm-tmp.KW6mFw (%build) RPM build warnings: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.KW6mFw (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/golang-github-prometheus-alertmanager.spec