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-1752224872.064419/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-1752224872.064419/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-1752224872.064419/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.2wdznD + 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 . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Fdovrm + umask 022 + cd /builddir/build/BUILD + cd pytorch-v2.7.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 . Processing /builddir/build/BUILD/pytorch-v2.7.0 Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) Building wheel torch-2.7.0a0+gitUnknown -- Building version 2.7.0a0+gitUnknown Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in main() File "/usr/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel return hook(metadata_directory, config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/setuptools/build_meta.py", line 380, in prepare_metadata_for_build_wheel self.run_setup() File "/usr/lib/python3.11/site-packages/setuptools/build_meta.py", line 488, in run_setup self).run_setup(setup_script=setup_script) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/setuptools/build_meta.py", line 338, in run_setup exec(code, locals()) File "", line 1503, in File "", line 1170, in main File "", line 490, in build_deps File "/builddir/build/BUILD/pytorch-v2.7.0/tools/build_pytorch_libs.py", line 122, in build_pytorch checkout_nccl() File "/builddir/build/BUILD/pytorch-v2.7.0/tools/build_pytorch_libs.py", line 102, in checkout_nccl release_tag = read_nccl_pin() ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/pytorch-v2.7.0/tools/build_pytorch_libs.py", line 97, in read_nccl_pin with open(nccl_pin_path) as f: ^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/builddir/build/BUILD/pytorch-v2.7.0/.ci/docker/ci_commit_pins/nccl-cu12.txt' error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. full command: /usr/bin/python3 /usr/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmph03ank4o cwd: /builddir/build/BUILD/pytorch-v2.7.0 Preparing metadata (pyproject.toml): finished with status 'error' error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. error: Bad exit status from /var/tmp/rpm-tmp.Fdovrm (%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.Fdovrm (%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