Mock Version: 2.12 Mock Version: 2.12 Mock Version: 2.12 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/pytorch.spec'], chrootPath='/var/lib/mock/dist-an8-ai-build-64382-36290/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 aarch64 --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 Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/pytorch-1.10.0-20211203.git3e457395.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/pytorch.spec'], chrootPath='/var/lib/mock/dist-an8-ai-build-64382-36290/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 aarch64 --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 Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Wf6P8n + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf pytorch + /usr/bin/xz -dc /builddir/build/SOURCES/pytorch.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd pytorch + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (pytorch-C.patch):' Patch #1 (pytorch-C.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .python --fuzz=0 patching file torch/CMakeLists.txt Hunk #1 succeeded at 239 (offset -8 lines). Patch #4 (pytorch-onednn.patch): + echo 'Patch #4 (pytorch-onednn.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .dnnl --fuzz=0 patching file aten/src/ATen/Version.cpp + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.XJznix + umask 022 + cd /builddir/build/BUILD + cd pytorch + sed -i -e 's|torch_cpu PUBLIC c10|torch_cpu PUBLIC c10 dnnl qnnpack gloo gloo_cuda|' caffe2/CMakeLists.txt + sed -i -e 's|USE_SYSTEM_BIND11|USE_SYSTEM_PYBIND11|g' cmake/Dependencies.cmake + rm -rf cmake/Modules/FindMKLDNN.cmake + echo 'set(DNNL_USE_NATIVE_ARCH ${USE_NATIVE_ARCH})' + echo 'set(CAFFE2_USE_MKLDNN ON)' + echo 'find_package(DNNL REQUIRED)' + echo 'set(MKLDNN_FOUND ON)' + sed -i -e '/Caffe2_PUBLIC_DEPENDENCY_LIBS caffe2::mkldnn/d' cmake/Dependencies.cmake + rm -rf 'third_party/pthreadpool/*' + touch third_party/pthreadpool/CMakeLists.txt + sed -i -e 's|NAMES openblas|NAMES openblaso openblas|' cmake/Modules/FindOpenBLAS.cmake + sed -i -e 's|USE_ZSTD|NOT_USE_ZSTD|g' cmake/Dependencies.cmake + sed -i -e 's|add_subdirectory(zstd)|list(APPEND Caffe2_PUBLIC_DEPENDENCY_LIBS zstd)|g' caffe2/share/contrib/CMakeLists.txt + sed -i -e 's|Caffe2_DEPENDENCY_LIBS onnx_proto onnx|Caffe2_DEPENDENCY_LIBS onnx_proto onnx onnx_optimizer|' cmake/Dependencies.cmake + mkdir -p third_party/tensorpipe + echo '' + sed -i '/add_dependencies(tensorpipe_agent tensorpipe)/d' caffe2/CMakeLists.txt + echo '' + echo 'set(NNPACK_FOUND TRUE)' + sed -i '/TARGET cpuinfo PROPERTY/d' cmake/Dependencies.cmake + sed -i '/APPEND Caffe2_DEPENDENCY_LIBS fp16/d' cmake/Dependencies.cmake + mkdir -p third_party/QNNPACK + echo '' + sed -i '/TARGET qnnpack PROPERTY/d' cmake/Dependencies.cmake + sed -i -e '/target_compile_options(qnnpack/d' cmake/Dependencies.cmake + mkdir -p third_party/psimd + echo '' + sed -i '/pytorch_qnnpack PRIVATE psimd/d' aten/src/ATen/native/quantized/cpu/qnnpack/CMakeLists.txt + sed -i '/NOT TARGET fxdiv/,/endif/d' caffe2/CMakeLists.txt + sed -i '/torch_cpu PRIVATE fxdiv/d' caffe2/CMakeLists.txt + sed -i '/pytorch_qnnpack PRIVATE fxdiv/d' aten/src/ATen/native/quantized/cpu/qnnpack/CMakeLists.txt + mkdir -p third_party/fbgemm + echo '' + sed -i '/(TARGET fbgemm/d' cmake/Dependencies.cmake + sed -i 's|caffe2_fakelowp_ops fbgemm cpuinfo|caffe2_fakelowp_ops|' caffe2/contrib/fakelowp/CMakeLists.txt + sed -i 's|caffe2_dnnlowp_avx2_ops fbgemm|caffe2_dnnlowp_avx2_ops|' caffe2/quantization/server/CMakeLists.txt + mkdir -p third_party/foxi + echo '' + mkdir -p third_party/fmt + echo 'find_package(fmt REQUIRED)' + echo 'add_library(libfmt INTERFACE)' + echo 'add_library(fmt::fmt-header-only ALIAS libfmt)' + echo 'target_link_libraries(libfmt INTERFACE fmt)' + sed -i '/fmt-header-only PROPERTIES/d' cmake/Dependencies.cmake + mkdir -p third_party/onnx-tensorrt + echo '' + sed -i /nvonnxparser_static/d cmake/Dependencies.cmake + sed -i 's|onnx_trt_library|nvonnxparser_static|g' cmake/Dependencies.cmake + mv -f cmake/Modules_CUDA_fix/FindCUDNN.cmake cmake/Modules + rm -rf cmake/Modules_CUDA_fix + find . -type d -name FindCUDA -exec rm -rf '{}' ';' + sed -i -e '/install/{:a;/COMPONENT/bb;N;ba;:b;/Modules_CUDA_fix/d;}' CMakeLists.txt + sed -i 's|RocksDB::rocksdb|RocksDB::rocksdb-shared|' modules/rocksdb/CMakeLists.txt + sed -i '/install(EXPORT Caffe2Targets/,/dev)/d' CMakeLists.txt + mkdir build + pushd build ~/build/BUILD/pytorch/build ~/build/BUILD/pytorch + export ONNX_ML=0 + ONNX_ML=0 + export BUILD_SPLIT_CUDA=ON + BUILD_SPLIT_CUDA=ON + export REL_WITH_DEB_INFO=1 + REL_WITH_DEB_INFO=1 + export PYTHON_EXECUTABLE=/usr/bin/python3.6 + PYTHON_EXECUTABLE=/usr/bin/python3.6 + export 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wno-sign-compare -Wno-deprecated-declarations -Wno-nonnull -DEIGEN_HAS_CXX11_MATH=1 -fpermissive' + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wno-sign-compare -Wno-deprecated-declarations -Wno-nonnull -DEIGEN_HAS_CXX11_MATH=1 -fpermissive' + export 'CXXFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wno-sign-compare -Wno-deprecated-declarations -Wno-nonnull -DEIGEN_HAS_CXX11_MATH=1 -fpermissive' + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wno-sign-compare -Wno-deprecated-declarations -Wno-nonnull -DEIGEN_HAS_CXX11_MATH=1 -fpermissive' + export LD_LIBRARY_PATH=/usr/local/cuda-11.5/lib64/ + LD_LIBRARY_PATH=/usr/local/cuda-11.5/lib64/ + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wno-sign-compare -Wno-deprecated-declarations -Wno-nonnull -DEIGEN_HAS_CXX11_MATH=1 -fpermissive' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wno-sign-compare -Wno-deprecated-declarations -Wno-nonnull -DEIGEN_HAS_CXX11_MATH=1 -fpermissive' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + /usr/bin/cmake -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON .. -Wno-dev -DCMAKE_SKIP_RPATH=ON -DCMAKE_VERBOSE_MAKEFILE=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_SKIP_RULE_DEPENDENCY=ON -DCMAKE_SUPPRESS_REGENERATION=ON -DUSE_CCACHE=OFF -DHAVE_SOVERSION=ON -DUSE_NATIVE_ARCH=OFF -DUSE_DISTRIBUTED=ON -DBUILD_DOCS=OFF -DBUILD_PYTHON=ON -DBUILD_CAFFE2=ON -DBUILD_BINARY=OFF -DBUILD_BENCHMARK=OFF -DBUILD_CUSTOM_PROTOBUF=OFF -DBUILDING_WITH_TORCH_LIBS=ON -DPYTHON_EXECUTABLE=/usr/bin/python3.6 -DPYBIND11_PYTHON_VERSION=3.6 -DCAFFE2_LINK_LOCAL_PROTOBUF=OFF -DONNX_ML=OFF -DUSE_GLOG=ON -DUSE_GFLAGS=ON -DUSE_OPENMP=ON -DUSE_KINETO=OFF -DUSE_BREAKPAD=OFF -DUSE_SYSTEM_ONNX=ON -DUSE_SYSTEM_GLOO=ON -DUSE_SYSTEM_PYBIND11=ON -DUSE_SYSTEM_EIGEN_INSTALL=ON -DBLAS=OpenBLAS -DUSE_MPI=OFF -DUSE_OBSERVERS=OFF -DUSE_ASAN=OFF -DUSE_ROCM=OFF -DUSE_MKLDNN=ON -DUSE_FBGEMM=OFF -DUSE_NNPACK=ON -DUSE_QNNPACK=ON -DUSE_PYTORCH_QNNPACK=ON -DUSE_SYSTEM_FP16=ON -DUSE_SYSTEM_PSIMD=ON -DUSE_SYSTEM_SLEEF=ON -DUSE_SYSTEM_FXDIV=ON -DUSE_SYSTEM_XNNPACK=ON -DUSE_SYSTEM_CPUINFO=ON -DUSE_SYSTEM_PTHREADPOOL=ON -DUSE_TENSORPIPE=ON -DUSE_FAKELOWP=OFF -DUSE_OPENCL=OFF -DUSE_GLOO=ON -DUSE_ZMQ=ON -DUSE_ZSTD=ON -DUSE_LMDB=ON -DUSE_REDIS=ON -DUSE_LEVELDB=ON -DUSE_ROCKSDB=OFF -DUSE_FFMPEG=OFF -DUSE_OPENCV=ON -DUSE_METAL=OFF -DUSE_TBB=OFF -DUSE_LLVM=OFF -DATEN_NO_TEST=ON -- The CXX compiler identification is GNU 8.3.1 -- The C compiler identification is GNU 8.3.1 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Performing Test COMPILER_WORKS -- Performing Test COMPILER_WORKS - Success -- Performing Test SUPPORT_GLIBCXX_USE_C99 -- Performing Test SUPPORT_GLIBCXX_USE_C99 - Success -- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED -- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED - Success -- std::exception_ptr is supported. -- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING -- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING - Failed -- Turning off deprecation warning due to glog. -- Performing Test C_HAS_AVX_1 -- Performing Test C_HAS_AVX_1 - Failed -- Performing Test C_HAS_AVX_2 -- Performing Test C_HAS_AVX_2 - Failed -- Performing Test C_HAS_AVX_3 -- Performing Test C_HAS_AVX_3 - Failed -- Performing Test C_HAS_AVX2_1 -- Performing Test C_HAS_AVX2_1 - Failed -- Performing Test C_HAS_AVX2_2 -- Performing Test C_HAS_AVX2_2 - Failed -- Performing Test C_HAS_AVX2_3 -- Performing Test C_HAS_AVX2_3 - Failed -- Performing Test C_HAS_AVX512_1 -- Performing Test C_HAS_AVX512_1 - Failed -- Performing Test C_HAS_AVX512_2 -- Performing Test C_HAS_AVX512_2 - Failed -- Performing Test C_HAS_AVX512_3 -- Performing Test C_HAS_AVX512_3 - Failed -- Performing Test CXX_HAS_AVX_1 -- Performing Test CXX_HAS_AVX_1 - Failed -- Performing Test CXX_HAS_AVX_2 -- Performing Test CXX_HAS_AVX_2 - Failed -- Performing Test CXX_HAS_AVX_3 -- Performing Test CXX_HAS_AVX_3 - Failed -- Performing Test CXX_HAS_AVX2_1 -- Performing Test CXX_HAS_AVX2_1 - Failed -- Performing Test CXX_HAS_AVX2_2 -- Performing Test CXX_HAS_AVX2_2 - Failed -- Performing Test CXX_HAS_AVX2_3 -- Performing Test CXX_HAS_AVX2_3 - Failed -- Performing Test CXX_HAS_AVX512_1 -- Performing Test CXX_HAS_AVX512_1 - Failed -- Performing Test CXX_HAS_AVX512_2 -- Performing Test CXX_HAS_AVX512_2 - Failed -- Performing Test CXX_HAS_AVX512_3 -- Performing Test CXX_HAS_AVX512_3 - Failed -- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS -- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS - Failed -- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY -- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY - Success -- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY -- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY - Success -- Performing Test COMPILER_SUPPORTS_RDYNAMIC -- Performing Test COMPILER_SUPPORTS_RDYNAMIC - Success CUDA_TOOLKIT_ROOT_DIR not found or specified -- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) CMake Warning at cmake/public/cuda.cmake:31 (message): Caffe2: CUDA cannot be found. Depending on whether you are building Caffe2 or a Caffe2 dependent library, the next warning / error will give you more info. Call Stack (most recent call first): cmake/Dependencies.cmake:43 (include) CMakeLists.txt:668 (include) CMake Warning at cmake/Dependencies.cmake:66 (message): Not compiling with CUDA. Suppress this warning with -DUSE_CUDA=OFF. Call Stack (most recent call first): CMakeLists.txt:668 (include) -- Check if compiler accepts -pthread -- Check if compiler accepts -pthread - yes -- Caffe2: Found protobuf with new-style protobuf targets. -- Caffe2 protobuf include directory: /usr/include -- Found Threads: TRUE -- Trying to find preferred BLAS backend of choice: OpenBLAS -- Found OpenBLAS libraries: /usr/lib64/libopenblaso.so -- Found OpenBLAS include: /usr/include/openblas -- Found pthreadpool: /usr/lib64/libpthreadpool.so Found cpuinfo: /usr/lib64/libcpuinfo.so -- The ASM compiler identification is GNU -- Found assembler: /usr/bin/cc -- Found XNNPACK: /usr/lib64/libXNNPACK.so -- Caffe2: Cannot find gflags automatically. Using legacy find. -- Found gflags: /usr/include -- Caffe2: Found gflags (include: /usr/include, library: /usr/lib64/libgflags.so) -- Caffe2: Cannot find glog automatically. Using legacy find. -- Found glog: /usr/include -- Caffe2: Found glog (include: /usr/include, library: /usr/lib64/libglog.so) CMake Warning at cmake/Dependencies.cmake:823 (message): Turning USE_FAKELOWP off as it depends on USE_FBGEMM. Call Stack (most recent call first): CMakeLists.txt:668 (include) -- Found LMDB: /usr/include -- Found lmdb (include: /usr/include, library: /usr/lib64/liblmdb.so) -- Found LevelDB: /usr/include -- Found LevelDB (include: /usr/include, library: /usr/lib64/libleveldb.so) -- Found Snappy: /usr/include -- Found Snappy (include: /usr/include, library: /usr/lib64/libsnappy.so) -- Found Numa: /usr/include -- Found Numa (include: /usr/include, library: /usr/lib64/libnuma.so) -- Found ZMQ: /usr/include -- Found ZMQ (include: /usr/include, library: /usr/lib64/libzmq.so) -- Found Hiredis: /usr/include -- Found Hiredis (include: /usr/include, library: /usr/lib64/libhiredis.so) -- OpenCV found (/usr/lib64/cmake/OpenCV) -- Found system Eigen at /usr/include/eigen3 -- Setting Python's include dir to /usr/include/python3.6m from sysconfig -- Setting Python's library to /usr/lib64/python3.6 -- Found PythonInterp: /usr/bin/python3.6 (found suitable version "3.6.8", minimum required is "3.0") -- Found PythonLibs: /usr/lib64/python3.6 (found suitable version "3.6.8", minimum required is "3.0") -- Found NumPy: /usr/lib64/python3.6/site-packages/numpy/core/include (found version "1.19.4") -- NumPy ver. 1.19.4 found (include: /usr/lib64/python3.6/site-packages/numpy/core/include) -- Found PythonInterp: /usr/bin/python3.6 (found suitable version "3.6.8", minimum required is "3.6") -- Found PythonLibs: python3.6m -- Performing Test HAS_FLTO -- Performing Test HAS_FLTO - Success -- Found pybind11: /usr/include (found version "2.8.1" ) -- pybind11 include dirs: /usr/include;/usr/include/python3.6m -- Adding OpenMP CXX_FLAGS: -fopenmp -- Will link against OpenMP libraries: /usr/lib/gcc/aarch64-redhat-linux/8/libgomp.so;/usr/lib64/libpthread.so CMake Warning at cmake/Dependencies.cmake:1319 (message): Not using CUDA/ROCM, so disabling USE_NCCL. Suppress this warning with -DUSE_NCCL=OFF. Call Stack (most recent call first): CMakeLists.txt:668 (include) Found gloo: /usr/lib64/libgloo.so -- Found onnx: /usr/lib64/libonnx.so /usr/lib64/libonnx_proto.so -- Could not find CUDA with FP16 support, compiling without torch.CudaHalfTensor -- Removing -DNDEBUG from compile flags CMake Warning at cmake/Dependencies.cmake:1677 (message): Not compiling with MAGMA. Suppress this warning with -DUSE_MAGMA=OFF. Call Stack (most recent call first): CMakeLists.txt:668 (include) -- Could not find hardware support for NEON on this machine. -- No OMAP3 processor on this machine. -- No OMAP4 processor on this machine. -- asimd/Neon found with compiler flag : -D__NEON__ -- Looking for cpuid.h -- Looking for cpuid.h - not found -- Performing Test NO_GCC_EBX_FPIC_BUG -- Performing Test NO_GCC_EBX_FPIC_BUG - Failed -- -- Performing Test C_VSX_FOUND -- Performing Test C_VSX_FOUND - Failed -- Performing Test CXX_VSX_FOUND -- Performing Test CXX_VSX_FOUND - Failed -- -- Looking for cheev_ -- Looking for cheev_ - found -- Looking for cgesdd_ -- Looking for cgesdd_ - found -- Found a library with LAPACK API (open). -- USE_CUDNN is set to 0. Compiling without cuDNN support -- MIOpen not found. Compiling without MIOpen support disabling CUDA because NOT USE_CUDA is set disabling ROCM because NOT USE_ROCM is set -- Looking for clock_gettime in rt -- Looking for clock_gettime in rt - found -- Looking for mmap -- Looking for mmap - found -- Looking for shm_open -- Looking for shm_open - found -- Looking for shm_unlink -- Looking for shm_unlink - found -- Looking for malloc_usable_size -- Looking for malloc_usable_size - found -- Performing Test C_HAS_THREAD -- Performing Test C_HAS_THREAD - Success -- GCC 8.3.1: Adding gcc and gcc_s libs to link line -- Performing Test HAS_WERROR_FORMAT -- Performing Test HAS_WERROR_FORMAT - Success -- Performing Test HAS_WERROR_CAST_FUNCTION_TYPE -- Performing Test HAS_WERROR_CAST_FUNCTION_TYPE - Success -- Performing Test HAS_VST1 -- Performing Test HAS_VST1 - Failed -- Performing Test HAS_VLD1 -- Performing Test HAS_VLD1 - Success -- Looking for backtrace -- Looking for backtrace - found -- backtrace facility detected in default set of libraries -- Found Backtrace: /usr/include -- NUMA paths: -- /usr/include -- /usr/lib64/libnuma.so -- Using ATen parallel backend: OMP disabling CUDA because USE_CUDA is set false Found sleef: /usr/lib64/libsleef.so AT_INSTALL_INCLUDE_DIR include/ATen/core core header install: /builddir/build/BUILD/pytorch/build/aten/src/ATen/core/TensorBody.h disable test because ATEN_NO_TEST is set -- NCCL operators skipped due to no CUDA support -- Excluding FakeLowP operators -- Including IDEEP operators -- Including image processing operators -- Excluding video processing operators due to no opencv -- MPI operators skipped due to no MPI support -- Include Observer library -- /usr/bin/c++ /builddir/build/BUILD/pytorch/torch/abi-check.cpp -o /builddir/build/BUILD/pytorch/build/abi-check -- Determined _GLIBCXX_USE_CXX11_ABI=1 -- pytorch is compiling with OpenMP. OpenMP CXX_FLAGS: -fopenmp. OpenMP libraries: /usr/lib/gcc/aarch64-redhat-linux/8/libgomp.so;/usr/lib64/libpthread.so. -- Caffe2 is compiling with OpenMP. OpenMP CXX_FLAGS: -fopenmp. OpenMP libraries: /usr/lib/gcc/aarch64-redhat-linux/8/libgomp.so;/usr/lib64/libpthread.so. -- Using lib/python3.6/site-packages as python relative installation path -- -- ******** Summary ******** -- General: -- CMake version : 3.18.2 -- CMake command : /usr/bin/cmake -- System : Linux -- C++ compiler : /usr/bin/c++ -- C++ compiler id : GNU -- C++ compiler version : 8.3.1 -- Using ccache if found : OFF -- CXX flags : -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wno-sign-compare -Wno-deprecated-declarations -Wno-nonnull -DEIGEN_HAS_CXX11_MATH=1 -fpermissive -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -DEDGE_PROFILER_USE_KINETO -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Werror=cast-function-type -DMISSING_ARM_VST1 -Wno-stringop-overflow -- Build type : RelWithDebInfo -- Compile definitions : ONNXIFI_ENABLE_EXT=1;ONNX_NAMESPACE=onnx;HAVE_MMAP=1;_FILE_OFFSET_BITS=64;HAVE_SHM_OPEN=1;HAVE_SHM_UNLINK=1;HAVE_MALLOC_USABLE_SIZE=1;USE_EXTERNAL_MZCRC;MINIZ_DISABLE_ZIP_READER_CRC32_CHECKS -- CMAKE_PREFIX_PATH : -- CMAKE_INSTALL_PREFIX : /usr -- USE_GOLD_LINKER : OFF -- -- TORCH_VERSION : 1.11.0 -- CAFFE2_VERSION : 1.11.0 -- BUILD_CAFFE2 : ON -- BUILD_CAFFE2_OPS : ON -- BUILD_CAFFE2_MOBILE : OFF -- BUILD_STATIC_RUNTIME_BENCHMARK: OFF -- BUILD_TENSOREXPR_BENCHMARK: OFF -- BUILD_NVFUSER_BENCHMARK: OFF -- BUILD_BINARY : OFF -- BUILD_CUSTOM_PROTOBUF : OFF -- Protobuf compiler : /usr/bin/protoc -- Protobuf includes : /usr/include -- Protobuf libraries : /usr/lib64/libprotobuf.so;-pthread -- BUILD_DOCS : OFF -- BUILD_PYTHON : ON -- Python version : 3.6.8 -- Python executable : /usr/bin/python3.6 -- Pythonlibs version : 3.6.8 -- Python library : python3.6m -- Python includes : /usr/include/python3.6m -- Python site-packages: lib/python3.6/site-packages -- BUILD_SHARED_LIBS : ON -- CAFFE2_USE_MSVC_STATIC_RUNTIME : OFF -- BUILD_TEST : OFF -- BUILD_JNI : OFF -- BUILD_MOBILE_AUTOGRAD : OFF -- BUILD_LITE_INTERPRETER: OFF -- INTERN_BUILD_MOBILE : -- USE_BLAS : 1 -- BLAS : open -- BLAS_HAS_SBGEMM : -- USE_LAPACK : 1 -- LAPACK : open -- USE_ASAN : OFF -- USE_CPP_CODE_COVERAGE : OFF -- USE_CUDA : OFF -- USE_ROCM : OFF -- USE_EIGEN_FOR_BLAS : -- USE_FBGEMM : OFF -- USE_FAKELOWP : OFF -- USE_KINETO : OFF -- USE_FFMPEG : OFF -- USE_GFLAGS : ON -- USE_GLOG : ON -- USE_LEVELDB : ON -- LevelDB version : 1.22 -- Snappy version : 1.1.7 -- USE_LITE_PROTO : OFF -- USE_LMDB : ON -- LMDB version : 0.9.23 -- USE_METAL : OFF -- USE_PYTORCH_METAL : OFF -- USE_PYTORCH_METAL_EXPORT : OFF -- USE_FFTW : ON -- USE_MKL : -- USE_MKLDNN : ON -- USE_MKLDNN_ACL : OFF -- USE_MKLDNN_CBLAS : OFF -- USE_NCCL : OFF -- USE_NNPACK : ON -- USE_NUMPY : ON -- USE_OBSERVERS : ON -- USE_OPENCL : OFF -- USE_OPENCV : ON -- OpenCV version : 3.4.6 -- USE_OPENMP : ON -- USE_TBB : OFF -- USE_VULKAN : OFF -- USE_PROF : OFF -- USE_QNNPACK : ON -- USE_PYTORCH_QNNPACK : ON -- USE_REDIS : ON -- USE_ROCKSDB : OFF -- USE_ZMQ : ON -- USE_DISTRIBUTED : ON -- USE_MPI : OFF -- USE_GLOO : ON -- USE_GLOO_WITH_OPENSSL : OFF -- USE_TENSORPIPE : ON -- USE_DEPLOY : OFF -- USE_BREAKPAD : OFF -- Public Dependencies : caffe2::Threads;/usr/lib64/libopenblaso.so;glog::glog -- Private Dependencies : pthreadpool;cpuinfo;qnnpack;pytorch_qnnpack;XNNPACK;/usr/lib64/liblmdb.so;/usr/lib64/libleveldb.so;/usr/lib64/libsnappy.so;/usr/lib64/libnuma.so;/usr/lib64/libzmq.so;/usr/lib64/libhiredis.so;opencv_core;opencv_highgui;opencv_imgproc;opencv_imgcodecs;opencv_videoio;opencv_video;gloo;tensorpipe;aten_op_header_gen;onnx_proto;onnx;onnx_optimizer;foxi_loader;rt;fmt::fmt-header-only;gcc_s;gcc;dl -- USE_COREML_DELEGATE : OFF -- Configuring done CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: CUDA_CUDART_LIBRARY (ADVANCED) linked by target "_dl" in directory /builddir/build/BUILD/pytorch/torch -- Generating done CMake Warning: Manually-specified variables were not used by the project: CMAKE_Fortran_FLAGS_RELEASE INCLUDE_INSTALL_DIR LIB_INSTALL_DIR LIB_SUFFIX SHARE_INSTALL_PREFIX SYSCONF_INSTALL_DIR CMake Generate step failed. Build files cannot be regenerated correctly. error: Bad exit status from /var/tmp/rpm-tmp.XJznix (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.XJznix (%build) 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 aarch64 --nodeps /builddir/build/SPECS/pytorch.spec