Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/pytorch.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS_SP2-x86_64-1752582030.026139/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/pytorch.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 :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead warning: bogus date in %changelog: Thu Jul 11 2025 Xiaoshuang Wang <1790571317@qq.com> - 2.7.0-1 Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/pytorch-2.7.0-1.src.rpm RPM build warnings: bogus date in %changelog: Thu Jul 11 2025 Xiaoshuang Wang <1790571317@qq.com> - 2.7.0-1 Child return code was: 0 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/pytorch.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS_SP2-x86_64-1752582030.026139/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/pytorch.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 :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead warning: bogus date in %changelog: Thu Jul 11 2025 Xiaoshuang Wang <1790571317@qq.com> - 2.7.0-1 Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/pytorch-2.7.0-1.src.rpm RPM build warnings: bogus date in %changelog: Thu Jul 11 2025 Xiaoshuang Wang <1790571317@qq.com> - 2.7.0-1 Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/pytorch.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS_SP2-x86_64-1752582030.026139/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/pytorch.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 warning: bogus date in %changelog: Thu Jul 11 2025 Xiaoshuang Wang <1790571317@qq.com> - 2.7.0-1 Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ZpfmlJ + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf pytorch-v2.7.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/pytorch-v2.7.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd pytorch-v2.7.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-remove-nccl-check.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.y2DfU9 + umask 022 + cd /builddir/build/BUILD + cd pytorch-v2.7.0 + export USE_CUDA=0 + USE_CUDA=0 + export USE_NCCL=0 + USE_NCCL=0 + export USE_SYSTEM_NCCL=0 + USE_SYSTEM_NCCL=0 + export 'CFLAGS+= -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict -fPIC' + CFLAGS+=' -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict -fPIC' + export 'CXXFLAGS+= -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict -fPIC' + CXXFLAGS+=' -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict -fPIC' + CFLAGS=' -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict -fPIC' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' + /usr/bin/python3 -mpip wheel --verbose --progress-bar off --disable-pip-version-check --use-pep517 --no-build-isolation --no-deps --wheel-dir ./build . /usr/bin/python3: No module named pip error: Bad exit status from /var/tmp/rpm-tmp.y2DfU9 (%build) bogus date in %changelog: Thu Jul 11 2025 Xiaoshuang Wang <1790571317@qq.com> - 2.7.0-1 Bad exit status from /var/tmp/rpm-tmp.y2DfU9 (%build) RPM build warnings: RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/pytorch.spec\n', 1)] 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 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 --target x86_64 --nodeps /builddir/build/SPECS/pytorch.spec