D: [iurt_root_command] chroot sh: line 4: [: -j8: integer expression expected sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/golang-github-prometheus-client-1.12.2-2.mga9.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.guass0 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf client_golang-1.12.2 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/client_golang-1.12.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd client_golang-1.12.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -fr /home/pterjan/rpmbuild/BUILD/client_golang-1.12.2/vendor + [[ ! -e /home/pterjan/rpmbuild/BUILD/client_golang-1.12.2/_build/bin ]] + install -m 0755 -vd /home/pterjan/rpmbuild/BUILD/client_golang-1.12.2/_build/bin install: creating directory '/home/pterjan/rpmbuild/BUILD/client_golang-1.12.2/_build' install: creating directory '/home/pterjan/rpmbuild/BUILD/client_golang-1.12.2/_build/bin' + export GOPATH=/home/pterjan/rpmbuild/BUILD/client_golang-1.12.2/_build:/usr/share/gocode + GOPATH=/home/pterjan/rpmbuild/BUILD/client_golang-1.12.2/_build:/usr/share/gocode + [[ ! -e /home/pterjan/rpmbuild/BUILD/client_golang-1.12.2/_build/src/github.com/prometheus/client_golang ]] ++ dirname /home/pterjan/rpmbuild/BUILD/client_golang-1.12.2/_build/src/github.com/prometheus/client_golang + install -m 0755 -vd /home/pterjan/rpmbuild/BUILD/client_golang-1.12.2/_build/src/github.com/prometheus install: creating directory '/home/pterjan/rpmbuild/BUILD/client_golang-1.12.2/_build/src' install: creating directory '/home/pterjan/rpmbuild/BUILD/client_golang-1.12.2/_build/src/github.com' install: creating directory '/home/pterjan/rpmbuild/BUILD/client_golang-1.12.2/_build/src/github.com/prometheus' + ln -fs /home/pterjan/rpmbuild/BUILD/client_golang-1.12.2 /home/pterjan/rpmbuild/BUILD/client_golang-1.12.2/_build/src/github.com/prometheus/client_golang + cd /home/pterjan/rpmbuild/BUILD/client_golang-1.12.2/_build/src/github.com/prometheus/client_golang + echo 'Patch #0 (client_golang-1.12.2-fix-tests.patch):' Patch #0 (client_golang-1.12.2-fix-tests.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file .go-version patching file Makefile patching file prometheus/gen_go_collector_metrics_set.go patching file prometheus/go_collector_latest_test.go patching file prometheus/go_collector_metrics_go119_test.go + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%generate_buildrequires): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.28y0Xd + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd client_golang-1.12.2 + GOPATH=/home/pterjan/rpmbuild/BUILD/client_golang-1.12.2/_build:/usr/share/gocode + GO111MODULE=off + golist --imported --package-path github.com/prometheus/client_golang --template 'golang({{.}})\n' --with-tests --skip-self + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%install): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.raoPqs + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' /home/pterjan/rpmbuild/BUILDROOT/golang-github-prometheus-client-1.12.2-2.mga9.x86_64 '!=' / ']' + rm -rf /home/pterjan/rpmbuild/BUILDROOT/golang-github-prometheus-client-1.12.2-2.mga9.x86_64 ++ dirname /home/pterjan/rpmbuild/BUILDROOT/golang-github-prometheus-client-1.12.2-2.mga9.x86_64 + mkdir -p /home/pterjan/rpmbuild/BUILDROOT + mkdir /home/pterjan/rpmbuild/BUILDROOT/golang-github-prometheus-client-1.12.2-2.mga9.x86_64 + cd client_golang-1.12.2 + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/client_golang-1.12.2/_build/src/github.com/prometheus/client_golang + IFS= + gosupfiles= + mapfile -t gosupfilesA + go-rpm-integration install -i github.com/prometheus/client_golang -b /home/pterjan/rpmbuild/BUILD/client_golang-1.12.2/_build/bin -s /home/pterjan/rpmbuild/BUILD/client_golang-1.12.2/_build -o golang-github-prometheus-client-devel.file-list -O /home/pterjan/rpmbuild/BUILD/client_golang-1.12.2 -V 1.12.2-2.mga9 -p /home/pterjan/rpmbuild/BUILDROOT/golang-github-prometheus-client-1.12.2-2.mga9.x86_64 -g /usr/share/gocode -r '.*example.*' Installing: github.com/prometheus/client_golang + IFS= +++ realpath -e --relative-base=. examples CODE_OF_CONDUCT.md CONTRIBUTING.md MAINTAINERS.md SECURITY.md CHANGELOG.md README.md README-prometheus.md +++ sort -u realpath: README-prometheus.md: No such file or directory ++ listfiles_include='CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md MAINTAINERS.md README.md SECURITY.md examples' ++ echo 'CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md MAINTAINERS.md README.md SECURITY.md examples' + godocs='CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md MAINTAINERS.md README.md SECURITY.md examples' + [[ -n CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md MAINTAINERS.md README.md SECURITY.md examples ]] + IFS= + read -r f + echo %doc '"CHANGELOG.md"' + IFS= + read -r f + echo %doc '"CODE_OF_CONDUCT.md"' + IFS= + read -r f + echo %doc '"CONTRIBUTING.md"' + IFS= + read -r f + echo %doc '"MAINTAINERS.md"' + IFS= + read -r f + echo %doc '"README.md"' + IFS= + read -r f + echo %doc '"SECURITY.md"' + IFS= + read -r f + echo %doc '"examples"' + IFS= + read -r f + IFS= +++ realpath -e --relative-base=. LICENSE NOTICE +++ sort -u ++ listfiles_include='LICENSE NOTICE' ++ echo 'LICENSE NOTICE' + golicenses='LICENSE NOTICE' + [[ -n LICENSE NOTICE ]] + IFS= + read -r f + echo %license '"LICENSE"' + IFS= + read -r f + echo %license '"NOTICE"' + IFS= + read -r f + mv prometheus/README.md README-prometheus.md + /usr/lib/rpm/check-buildroot + '[' -n '' ']' + /usr/share/spec-helper/clean_files + '[' -n '' ']' + /usr/share/spec-helper/compress_files .xz + '[' -n '' ']' + /usr/share/spec-helper/relink_symlinks + '[' -n '' ']' + /usr/share/spec-helper/clean_perl + '[' -n '' ']' + /usr/share/spec-helper/lib_symlinks + '[' -n '' ']' + /usr/share/spec-helper/gprintify + '[' -n '' ']' + /usr/share/spec-helper/fix_mo + '[' -n '' ']' + /usr/share/spec-helper/fix_pamd + '[' -n '' ']' + /usr/share/spec-helper/remove_info_dir + '[' -n '' ']' + /usr/share/spec-helper/fix_eol + '[' -n '' ']' + /usr/share/spec-helper/check_desktop_files + '[' -n '' ']' + /usr/share/spec-helper/check_elf_files + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/redhat/brp-python-hardlink sh: line 4: [: -j8: integer expression expected Executing(%check): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.RBV0St + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd client_golang-1.12.2 + '[' 1 -eq 1 ']' + for test in "TestSummaryDecay" "TestMemStatsEquivalence" "TestBuckets" ++ grep -rl TestSummaryDecay + awk -i inplace '/^func.*TestSummaryDecay\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' prometheus/summary_test.go + for test in "TestSummaryDecay" "TestMemStatsEquivalence" "TestBuckets" ++ grep -rl TestMemStatsEquivalence + awk -i inplace '/^func.*TestMemStatsEquivalence\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' prometheus/go_collector_latest_test.go + for test in "TestSummaryDecay" "TestMemStatsEquivalence" "TestBuckets" ++ grep -rl TestBuckets + awk -i inplace '/^func.*TestBuckets\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' prometheus/histogram_test.go + LDFLAGS=' -X github.com/prometheus/client_golang/version=1.12.2' + GO_TEST_FLAGS='-buildmode pie -compiler gc' + GO_TEST_EXT_LD_FLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags ' + go-rpm-integration check -i github.com/prometheus/client_golang -b /home/pterjan/rpmbuild/BUILD/client_golang-1.12.2/_build/bin -s /home/pterjan/rpmbuild/BUILD/client_golang-1.12.2/_build -V 1.12.2-2.mga9 -p /home/pterjan/rpmbuild/BUILDROOT/golang-github-prometheus-client-1.12.2-2.mga9.x86_64 -g /usr/share/gocode -r '.*example.*' Testing in: /home/pterjan/rpmbuild/BUILD/client_golang-1.12.2/_build/src PATH: /home/pterjan/rpmbuild/BUILD/client_golang-1.12.2/_build/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/pterjan/.local/bin:/home/pterjan/bin GOPATH: /home/pterjan/rpmbuild/BUILD/client_golang-1.12.2/_build:/usr/share/gocode GO111MODULE: off command: go test -buildmode pie -compiler gc -ldflags " -X github.com/prometheus/client_golang/version=1.12.2 -extldflags ' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags '" testing: github.com/prometheus/client_golang github.com/prometheus/client_golang/api PASS ok github.com/prometheus/client_golang/api 0.003s github.com/prometheus/client_golang/api PASS ok github.com/prometheus/client_golang/api 0.004s github.com/prometheus/client_golang/api/prometheus/v1 PASS ok github.com/prometheus/client_golang/api/prometheus/v1 0.013s github.com/prometheus/client_golang/api/prometheus/v1 PASS ok github.com/prometheus/client_golang/api/prometheus/v1 0.012s github.com/prometheus/client_golang/prometheus # github.com/prometheus/client_golang/prometheus [github.com/prometheus/client_golang/prometheus.test] ./go_collector_latest_test.go:61:20: undefined: expectedRuntimeMetrics ./go_collector_latest_test.go:287:20: undefined: expectedRuntimeMetrics ./go_collector_latest_test.go:305:30: undefined: expectedRuntimeMetrics ./go_collector_latest_test.go:346:23: undefined: expectedRuntimeMetricsCardinality FAIL github.com/prometheus/client_golang/prometheus [build failed] error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.RBV0St (%check) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.RBV0St (%check) I: [iurt_root_command] ERROR: chroot