rnal /usr/lib/golang/pkg/tool/linux_riscv64/compile -o $WORK/b154/_pkg_.a -trimpath "$WORK/b154=>" -p github.com/syncthing/syncthing/vendor/github.com/prometheus/client_golang/prometheus/internal -complete -buildid 1NKSYe82J8Qo-ow4xwrN/1NKSYe82J8Qo-ow4xwrN -goversion go1.15.11 -D "" -importcfg $WORK/b154/importcfg -pack -c=4 ./metric.go github.com/syncthing/syncthing/vendor/github.com/prometheus/common/expfmt mkdir -p $WORK/b156/ cat >$WORK/b156/importcfg << 'EOF' # internal # import config importmap github.com/golang/protobuf/proto=github.com/syncthing/syncthing/vendor/github.com/golang/protobuf/proto importmap github.com/golang/protobuf/ptypes=github.com/syncthing/syncthing/vendor/github.com/golang/protobuf/ptypes importmap github.com/matttproud/golang_protobuf_extensions/pbutil=github.com/syncthing/syncthing/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil importmap github.com/prometheus/client_model/go=github.com/syncthing/syncthing/vendor/github.com/prometheus/client_model/go importmap github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg=github.com/syncthing/syncthing/vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg importmap github.com/prometheus/common/model=github.com/syncthing/syncthing/vendor/github.com/prometheus/common/model packagefile bufio=$WORK/b059/_pkg_.a packagefile bytes=$WORK/b002/_pkg_.a packagefile fmt=$WORK/b040/_pkg_.a packagefile github.com/syncthing/syncthing/vendor/github.com/golang/protobuf/proto=$WORK/b115/_pkg_.a packagefile github.com/syncthing/syncthing/vendor/github.com/golang/protobuf/ptypes=$WORK/b147/_pkg_.a packagefile github.com/syncthing/syncthing/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil=$WORK/b157/_pkg_.a packagefile github.com/syncthing/syncthing/vendor/github.com/prometheus/client_model/go=$WORK/b155/_pkg_.a packagefile github.com/syncthing/syncthing/vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg=$WORK/b158/_pkg_.a packagefile github.com/syncthing/syncthing/vendor/github.com/prometheus/common/model=$WORK/b159/_pkg_.a packagefile io=$WORK/b013/_pkg_.a packagefile io/ioutil=$WORK/b072/_pkg_.a packagefile math=$WORK/b028/_pkg_.a packagefile mime=$WORK/b107/_pkg_.a packagefile net/http=$WORK/b097/_pkg_.a packagefile strconv=$WORK/b027/_pkg_.a packagefile strings=$WORK/b049/_pkg_.a packagefile sync=$WORK/b014/_pkg_.a EOF cd /builddir/build/BUILD/syncthing/_build/src/github.com/syncthing/syncthing/vendor/github.com/prometheus/common/expfmt /usr/lib/golang/pkg/tool/linux_riscv64/compile -o $WORK/b156/_pkg_.a -trimpath "$WORK/b156=>" -p github.com/syncthing/syncthing/vendor/github.com/prometheus/common/expfmt -complete -buildid FBa8eeaVaU6Ys7h1O8LA/FBa8eeaVaU6Ys7h1O8LA -goversion go1.15.11 -D "" -importcfg $WORK/b156/importcfg -pack -c=4 ./decode.go ./encode.go ./expfmt.go ./openmetrics_create.go ./text_create.go ./text_parse.go /usr/lib/golang/pkg/tool/linux_riscv64/buildid -w $WORK/b154/_pkg_.a # internal cp $WORK/b154/_pkg_.a /builddir/.cache/go-build/26/260d91bd855bbdf3fd3b6171c665e10210c1f29f0b2d98190637f3595d02a549-d # internal /usr/lib/golang/pkg/tool/linux_riscv64/buildid -w $WORK/b156/_pkg_.a # internal cp $WORK/b156/_pkg_.a /builddir/.cache/go-build/85/85ecdba6947b3b6fd6eb2ba468034996134499ccaaaae31fbfecf8be652acff2-d # internal error: Bad exit status from /var/tmp/rpm-tmp.qWF09S (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.qWF09S (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, 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/syncthing.spec