Mock Version: 2.12 Mock Version: 2.12 Mock Version: 2.12 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/intel-extension-for-pytorch.spec'], chrootPath='/var/lib/mock/dist-an8-ai-build-92147-45404/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=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/intel-extension-for-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 Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/intel-extension-for-pytorch-1.10-1.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/intel-extension-for-pytorch.spec'], chrootPath='/var/lib/mock/dist-an8-ai-build-92147-45404/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=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/intel-extension-for-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 Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.3BRWui + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf intel-extension-for-pytorch + /usr/bin/gzip -dc /builddir/build/SOURCES/intel-extension-for-pytorch.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd intel-extension-for-pytorch + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/0001-fix-for-build-on-Anolis-OS-8.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0001-avoid-duplicate-definitions.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.WTSpDi + umask 022 + cd /builddir/build/BUILD + cd intel-extension-for-pytorch + scl enable gcc-toolset-11 - + '[' enable = load -o enable = unload ']' + /usr/bin/scl enable gcc-toolset-11 - /usr/lib64/python3.6/site-packages/torch/package/_directory_reader.py:17: UserWarning: Failed to initialize NumPy: No module named 'numpy' (Triggered internally at /builddir/build/BUILD/pytorch-1.10.1/torch/csrc/utils/tensor_numpy.cpp:68.) _dtype_to_storage = {data_type(0).dtype: data_type for data_type in _storages} Unable to import torch from the local environment. Traceback (most recent call last): File "setup.py", line 101, in raise e File "setup.py", line 97, in import torch File "/usr/lib64/python3.6/site-packages/torch/__init__.py", line 643, in from .functional import * # noqa: F403 File "/usr/lib64/python3.6/site-packages/torch/functional.py", line 6, in import torch.nn.functional as F File "/usr/lib64/python3.6/site-packages/torch/nn/__init__.py", line 1, in from .modules import * # noqa: F403 File "/usr/lib64/python3.6/site-packages/torch/nn/modules/__init__.py", line 2, in from .linear import Identity, Linear, Bilinear, LazyLinear File "/usr/lib64/python3.6/site-packages/torch/nn/modules/linear.py", line 6, in from .. import functional as F File "/usr/lib64/python3.6/site-packages/torch/nn/functional.py", line 11, in from .._jit_internal import boolean_dispatch, _overload, BroadcastingList1, BroadcastingList2, BroadcastingList3 File "/usr/lib64/python3.6/site-packages/torch/_jit_internal.py", line 34, in from typing_extensions import Final ModuleNotFoundError: No module named 'typing_extensions' error: Bad exit status from /var/tmp/rpm-tmp.WTSpDi (%build) Bad exit status from /var/tmp/rpm-tmp.WTSpDi (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 600, 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/intel-extension-for-pytorch.spec