prometheus/alertmanager/provider/mem=/tmp/go-build945932654/b386/_pkg_.a packagefile github.com/prometheus/alertmanager/silence=/tmp/go-build945932654/b314/_pkg_.a packagefile github.com/prometheus/alertmanager/template=/tmp/go-build945932654/b317/_pkg_.a packagefile github.com/prometheus/alertmanager/timeinterval=/tmp/go-build945932654/b232/_pkg_.a packagefile github.com/prometheus/alertmanager/types=/tmp/go-build945932654/b304/_pkg_.a packagefile github.com/prometheus/alertmanager/ui=/tmp/go-build945932654/b387/_pkg_.a packagefile github.com/prometheus/client_golang/prometheus=/tmp/go-build945932654/b067/_pkg_.a packagefile github.com/prometheus/client_golang/prometheus/promhttp=/tmp/go-build945932654/b388/_pkg_.a packagefile github.com/prometheus/common/model=/tmp/go-build945932654/b177/_pkg_.a packagefile github.com/prometheus/common/promlog=/tmp/go-build945932654/b394/_pkg_.a packagefile github.com/prometheus/common/promlog/flag=/tmp/go-build945932654/b395/_pkg_.a packagefile github.com/prometheus/common/route=/tmp/go-build945932654/b321/_pkg_.a packagefile github.com/prometheus/common/version=/tmp/go-build945932654/b323/_pkg_.a packagefile github.com/prometheus/exporter-toolkit/web=/tmp/go-build945932654/b399/_pkg_.a packagefile github.com/prometheus/exporter-toolkit/web/kingpinflag=/tmp/go-build945932654/b405/_pkg_.a packagefile gopkg.in/alecthomas/kingpin.v2=/tmp/go-build945932654/b406/_pkg_.a packagefile net=/tmp/go-build945932654/b115/_pkg_.a packagefile net/http=/tmp/go-build945932654/b069/_pkg_.a packagefile net/url=/tmp/go-build945932654/b122/_pkg_.a packagefile os=/tmp/go-build945932654/b040/_pkg_.a packagefile os/signal=/tmp/go-build945932654/b196/_pkg_.a packagefile path/filepath=/tmp/go-build945932654/b123/_pkg_.a packagefile runtime=/tmp/go-build945932654/b009/_pkg_.a packagefile strings=/tmp/go-build945932654/b054/_pkg_.a packagefile sync=/tmp/go-build945932654/b021/_pkg_.a packagefile syscall=/tmp/go-build945932654/b025/_pkg_.a packagefile time=/tmp/go-build945932654/b024/_pkg_.a packagefile runtime/cgo=/tmp/go-build945932654/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 Pcs1WfuCGsJfS-oK-1sS/Pcs1WfuCGsJfS-oK-1sS -goversion go1.22.2 -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 RPM build warnings: RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.5XKy9F (%build) %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.5XKy9F (%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