Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/prometheus.spec'], chrootPath='/home/lib/mock/dist-ocs23-loongarch64-build-193113-12945/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=983gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/prometheus.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/prometheus-2.42.0-4.ocs23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/prometheus.spec'], chrootPath='/home/lib/mock/dist-ocs23-loongarch64-build-193113-12945/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=983gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/prometheus.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.mcW1SS + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf prometheus-2.42.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/v2.42.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd prometheus-2.42.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/vendor.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cd /builddir/build/BUILD + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/v2.42.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd prometheus-2.42.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/web-ui-2.42.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-Do-not-force-the-pure-Go-name-resolver.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0002-Default-settings.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.vxkHvl + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd prometheus-2.42.0 + GOPATH=/builddir/build/BUILD/go + promu build -v Using config file: .promu.yml Running command: build [-v] Building binary: prometheus > prometheus Building binary: go build -o prometheus -ldflags -X github.com/prometheus/common/version.Version=2.42.0 -X github.com/prometheus/common/version.Revision=non-git -X github.com/prometheus/common/version.Branch=non-git -X github.com/prometheus/common/version.BuildUser=mockbuild@builder1.loongarch64.stream.opencloudos.tech -X github.com/prometheus/common/version.BuildDate=20240627-02:56:10 -extldflags '-static' -mod=vendor -a -tags builtinassets github.com/prometheus/prometheus/cmd/prometheus + go build -o prometheus -ldflags -X github.com/prometheus/common/version.Version=2.42.0 -X github.com/prometheus/common/version.Revision=non-git -X github.com/prometheus/common/version.Branch=non-git -X github.com/prometheus/common/version.BuildUser=mockbuild@builder1.loongarch64.stream.opencloudos.tech -X github.com/prometheus/common/version.BuildDate=20240627-02:56:10 -extldflags '-static' -mod=vendor -a -tags builtinassets github.com/prometheus/prometheus/cmd/prometheus # github.com/prometheus/prometheus/util/runtime util/runtime/limits_default.go:27:23: cannot use syscall.RLIM_INFINITY (untyped int constant 18446744073709551615) as int64 value in variable declaration (overflows) !! exit status 1 command failed: build -o prometheus -ldflags -X github.com/prometheus/common/version.Version=2.42.0 -X github.com/prometheus/common/version.Revision=non-git -X github.com/prometheus/common/version.Branch=non-git -X github.com/prometheus/common/version.BuildUser=mockbuild@builder1.loongarch64.stream.opencloudos.tech -X github.com/prometheus/common/version.BuildDate=20240627-02:56:10 -extldflags '-static' -mod=vendor -a -tags builtinassets github.com/prometheus/prometheus/cmd/prometheus github.com/prometheus/promu/cmd.buildBinary /builddir/build/BUILD/promu-0.15.0/cmd/build.go:90 github.com/prometheus/promu/cmd.buildAll /builddir/build/BUILD/promu-0.15.0/cmd/build.go:96 github.com/prometheus/promu/cmd.runBuild /builddir/build/BUILD/promu-0.15.0/cmd/build.go:134 github.com/prometheus/promu/cmd.Execute /builddir/build/BUILD/promu-0.15.0/cmd/promu.go:121 main.main /builddir/build/BUILD/promu-0.15.0/main.go:20 runtime.main /usr/lib/golang/src/runtime/proc.go:267 runtime.goexit /usr/lib/golang/src/runtime/asm_loong64.s:648 error: Bad exit status from /var/tmp/rpm-tmp.vxkHvl (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.vxkHvl (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/prometheus.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.10/site-packages/mockbuild/util.py", line 598, 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 --noclean --target loongarch64 --nodeps /builddir/build/SPECS/prometheus.spec