[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#980636: pytorch: FTBFS: -- Library mkl: not found



Source: pytorch
Version: 1.7.1-4
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20210120 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> debian/rules:155: warning: overriding recipe for target 'override_dh_auto_clean'
> debian/rules:76: warning: ignoring old recipe for target 'override_dh_auto_clean'
> python3.9 setup.py install --install-layout=deb \
> 	--root=/<<PKGBUILDDIR>>/debian/python3-torch/
> -- The CXX compiler identification is GNU 10.2.1
> -- The C compiler identification is GNU 10.2.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
> -- Not forcing any particular BLAS to be found
> -- 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 - Success
> -- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS
> -- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS - Success
> -- Current compiler supports avx2 extension. Will build perfkernels.
> -- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS
> -- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS - Success
> -- Current compiler supports avx512f extension. Will build fbgemm.
> -- 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
> -- 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: MKL
> -- MKL_THREADING = OMP
> -- Looking for sys/types.h
> -- Looking for sys/types.h - found
> -- Looking for stdint.h
> -- Looking for stdint.h - found
> -- Looking for stddef.h
> -- Looking for stddef.h - found
> -- Check size of void*
> -- Check size of void* - done
> -- MKL_THREADING = OMP
> CMake Warning at cmake/Dependencies.cmake:148 (message):
>   MKL could not be found.  Defaulting to Eigen
> Call Stack (most recent call first):
>   CMakeLists.txt:518 (include)
> 
> 
> CMake Warning at cmake/Dependencies.cmake:172 (message):
>   Preferred BLAS (MKL) cannot be found, now searching for a general BLAS
>   library
> Call Stack (most recent call first):
>   CMakeLists.txt:518 (include)
> 
> 
> -- MKL_THREADING = OMP
> -- Checking for [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - gomp - pthread - m - dl]
> --   Library mkl_intel_lp64: not found
> -- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - gomp - pthread - m - dl]
> --   Library mkl_intel_lp64: not found
> -- Checking for [mkl_intel - mkl_gnu_thread - mkl_core - gomp - pthread - m - dl]
> --   Library mkl_intel: not found
> -- Checking for [mkl_intel - mkl_intel_thread - mkl_core - gomp - pthread - m - dl]
> --   Library mkl_intel: not found
> -- Checking for [mkl_gf_lp64 - mkl_gnu_thread - mkl_core - gomp - pthread - m - dl]
> --   Library mkl_gf_lp64: not found
> -- Checking for [mkl_gf_lp64 - mkl_intel_thread - mkl_core - gomp - pthread - m - dl]
> --   Library mkl_gf_lp64: not found
> -- Checking for [mkl_gf - mkl_gnu_thread - mkl_core - gomp - pthread - m - dl]
> --   Library mkl_gf: not found
> -- Checking for [mkl_gf - mkl_intel_thread - mkl_core - gomp - pthread - m - dl]
> --   Library mkl_gf: not found
> -- Checking for [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - iomp5 - pthread - m - dl]
> --   Library mkl_intel_lp64: not found
> -- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m - dl]
> --   Library mkl_intel_lp64: not found
> -- Checking for [mkl_intel - mkl_gnu_thread - mkl_core - iomp5 - pthread - m - dl]
> --   Library mkl_intel: not found
> -- Checking for [mkl_intel - mkl_intel_thread - mkl_core - iomp5 - pthread - m - dl]
> --   Library mkl_intel: not found
> -- Checking for [mkl_gf_lp64 - mkl_gnu_thread - mkl_core - iomp5 - pthread - m - dl]
> --   Library mkl_gf_lp64: not found
> -- Checking for [mkl_gf_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m - dl]
> --   Library mkl_gf_lp64: not found
> -- Checking for [mkl_gf - mkl_gnu_thread - mkl_core - iomp5 - pthread - m - dl]
> --   Library mkl_gf: not found
> -- Checking for [mkl_gf - mkl_intel_thread - mkl_core - iomp5 - pthread - m - dl]
> --   Library mkl_gf: not found
> -- Checking for [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - pthread - m - dl]
> --   Library mkl_intel_lp64: not found
> -- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread - m - dl]
> --   Library mkl_intel_lp64: not found
> -- Checking for [mkl_intel - mkl_gnu_thread - mkl_core - pthread - m - dl]
> --   Library mkl_intel: not found
> -- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m - dl]
> --   Library mkl_intel: not found
> -- Checking for [mkl_gf_lp64 - mkl_gnu_thread - mkl_core - pthread - m - dl]
> --   Library mkl_gf_lp64: not found
> -- Checking for [mkl_gf_lp64 - mkl_intel_thread - mkl_core - pthread - m - dl]
> --   Library mkl_gf_lp64: not found
> -- Checking for [mkl_gf - mkl_gnu_thread - mkl_core - pthread - m - dl]
> --   Library mkl_gf: not found
> -- Checking for [mkl_gf - mkl_intel_thread - mkl_core - pthread - m - dl]
> --   Library mkl_gf: not found
> -- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m - dl]
> --   Library mkl_intel_lp64: not found
> -- Checking for [mkl_intel - mkl_sequential - mkl_core - m - dl]
> --   Library mkl_intel: not found
> -- Checking for [mkl_gf_lp64 - mkl_sequential - mkl_core - m - dl]
> --   Library mkl_gf_lp64: not found
> -- Checking for [mkl_gf - mkl_sequential - mkl_core - m - dl]
> --   Library mkl_gf: not found
> -- Checking for [mkl_intel_lp64 - mkl_core - gomp - pthread - m - dl]
> --   Library mkl_intel_lp64: not found
> -- Checking for [mkl_intel - mkl_core - gomp - pthread - m - dl]
> --   Library mkl_intel: not found
> -- Checking for [mkl_gf_lp64 - mkl_core - gomp - pthread - m - dl]
> --   Library mkl_gf_lp64: not found
> -- Checking for [mkl_gf - mkl_core - gomp - pthread - m - dl]
> --   Library mkl_gf: not found
> -- Checking for [mkl_intel_lp64 - mkl_core - iomp5 - pthread - m - dl]
> --   Library mkl_intel_lp64: not found
> -- Checking for [mkl_intel - mkl_core - iomp5 - pthread - m - dl]
> --   Library mkl_intel: not found
> -- Checking for [mkl_gf_lp64 - mkl_core - iomp5 - pthread - m - dl]
> --   Library mkl_gf_lp64: not found
> -- Checking for [mkl_gf - mkl_core - iomp5 - pthread - m - dl]
> --   Library mkl_gf: not found
> -- Checking for [mkl_intel_lp64 - mkl_core - pthread - m - dl]
> --   Library mkl_intel_lp64: not found
> -- Checking for [mkl_intel - mkl_core - pthread - m - dl]
> --   Library mkl_intel: not found
> -- Checking for [mkl_gf_lp64 - mkl_core - pthread - m - dl]
> --   Library mkl_gf_lp64: not found
> -- Checking for [mkl_gf - mkl_core - pthread - m - dl]
> --   Library mkl_gf: not found
> -- Checking for [mkl - guide - pthread - m]
> --   Library mkl: not found
> -- MKL library not found
> -- Checking for [Accelerate]
> --   Library Accelerate: BLAS_Accelerate_LIBRARY-NOTFOUND
> -- Checking for [vecLib]
> --   Library vecLib: BLAS_vecLib_LIBRARY-NOTFOUND
> -- Checking for [openblas]
> --   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
> -- Checking for [openblas - pthread - m]
> --   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
> -- Checking for [goto2 - gfortran]
> --   Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
> -- Checking for [goto2 - gfortran - pthread]
> --   Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
> -- Checking for [acml - gfortran]
> --   Library acml: BLAS_acml_LIBRARY-NOTFOUND
> -- Checking for [blis]
> --   Library blis: BLAS_blis_LIBRARY-NOTFOUND
> -- Checking for [ptf77blas - atlas - gfortran]
> --   Library ptf77blas: BLAS_ptf77blas_LIBRARY-NOTFOUND
> -- Checking for [blas]
> --   Library blas: /usr/lib/x86_64-linux-gnu/libblas.so
> -- Looking for sgemm_
> -- Looking for sgemm_ - found
> -- Performing Test BLAS_F2C_DOUBLE_WORKS
> -- Performing Test BLAS_F2C_DOUBLE_WORKS - Failed
> -- Performing Test BLAS_F2C_FLOAT_WORKS
> -- Performing Test BLAS_F2C_FLOAT_WORKS - Success
> -- Performing Test BLAS_USE_CBLAS_DOT
> -- Performing Test BLAS_USE_CBLAS_DOT - Success
> -- Found a library with BLAS API (generic).
> -- Found pthreadpool: /usr/lib/x86_64-linux-gnu/libpthreadpool.so
> Found cpuinfo: /usr/lib/x86_64-linux-gnu/libcpuinfo.so
> -- The ASM compiler identification is GNU
> -- Found assembler: /usr/bin/cc
> -- Found XNNPACK: /usr/lib/x86_64-linux-gnu/libXNNPACK.so
> -- Caffe2: Found gflags with new-style gflags target.
> -- Caffe2: Found glog with new-style glog target.
> -- Found PythonInterp: /usr/bin/python3.9 (found version "3.9.1") 
> -- Found benchmark: /usr/lib/x86_64-linux-gnu/libbenchmark.so
> CMake Warning at cmake/Dependencies.cmake:698 (message):
>   Turning USE_FAKELOWP off as it depends on USE_FBGEMM.
> Call Stack (most recent call first):
>   CMakeLists.txt:518 (include)
> 
> 
> -- Found LMDB: /usr/include  
> -- Found lmdb    (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/liblmdb.so)
> -- Found LevelDB: /usr/include  
> -- Found LevelDB (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libleveldb.so)
> -- Found Snappy: /usr/include  
> -- Found Snappy  (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libsnappy.so)
> -- Could NOT find Numa (missing: Numa_INCLUDE_DIR Numa_LIBRARIES) 
> CMake Warning at cmake/Dependencies.cmake:748 (message):
>   Not compiling with NUMA.  Suppress this warning with -DUSE_NUMA=OFF
> Call Stack (most recent call first):
>   CMakeLists.txt:518 (include)
> 
> 
> -- Found ZMQ: /usr/include  
> -- Found ZMQ  (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libzmq.so)
> -- OpenCV found (/usr/lib/x86_64-linux-gnu/cmake/opencv4)
> -- Found FFMPEG or Libav: /usr/lib/x86_64-linux-gnu/libavcodec.so;/usr/lib/x86_64-linux-gnu/libavformat.so;/usr/lib/x86_64-linux-gnu/libavutil.so;/usr/lib/x86_64-linux-gnu/libswscale.so;/usr/lib/x86_64-linux-gnu/libswresample.so, /usr/include/x86_64-linux-gnu
> Found FFMPEG/LibAV libraries
> -- Found system Eigen at /usr/include/eigen3
> -- Found PythonInterp: /usr/bin/python3.9 (found suitable version "3.9.1", minimum required is "3.0") 
> -- Found PythonLibs: /usr/lib/libpython3.9.so.1.0 (found suitable version "3.9.1+", minimum required is "3.0") 
> CMake Warning at /usr/lib/python3/dist-packages/pybind11/share/cmake/pybind11/pybind11Tools.cmake:17 (message):
>   Set PYBIND11_PYTHON_VERSION to search for a specific version, not
>   PYTHON_VERSION (which is an output).  Assuming that is what you meant to do
>   and continuing anyway.
> Call Stack (most recent call first):
>   /usr/lib/python3/dist-packages/pybind11/share/cmake/pybind11/pybind11Common.cmake:201 (include)
>   /usr/lib/python3/dist-packages/pybind11/share/cmake/pybind11/pybind11Config.cmake:249 (include)
>   cmake/Dependencies.cmake:963 (find_package)
>   CMakeLists.txt:518 (include)
> 
> 
> -- Found PythonInterp: /usr/bin/python3.9 (found suitable version "3.9.1", minimum required is "3.9") 
> -- Found PythonLibs: /usr/lib/libpython3.9.so.1.0
> -- Performing Test HAS_FLTO
> -- Performing Test HAS_FLTO - Success
> -- Found pybind11: /usr/lib/python3/dist-packages/pybind11/include (found version "2.6.1" )
> -- System pybind11 found
> -- pybind11 include dirs: /usr/lib/python3/dist-packages/pybind11/include;/usr/include/python3.9
> CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
>   The package name passed to `find_package_handle_standard_args` (OpenMP_C)
>   does not match the name of the calling package (OpenMP).  This can lead to
>   problems in calling code that expects `find_package` result variables
>   (e.g., `_FOUND`) to follow a certain pattern.
> Call Stack (most recent call first):
>   cmake/Modules/FindOpenMP.cmake:565 (find_package_handle_standard_args)
>   cmake/Dependencies.cmake:1065 (find_package)
>   CMakeLists.txt:518 (include)
> This warning is for project developers.  Use -Wno-dev to suppress it.
> 
> CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
>   The package name passed to `find_package_handle_standard_args` (OpenMP_CXX)
>   does not match the name of the calling package (OpenMP).  This can lead to
>   problems in calling code that expects `find_package` result variables
>   (e.g., `_FOUND`) to follow a certain pattern.
> Call Stack (most recent call first):
>   cmake/Modules/FindOpenMP.cmake:565 (find_package_handle_standard_args)
>   cmake/Dependencies.cmake:1065 (find_package)
>   CMakeLists.txt:518 (include)
> This warning is for project developers.  Use -Wno-dev to suppress it.
> 
> -- Adding OpenMP CXX_FLAGS: -fopenmp
> -- Will link against OpenMP libraries: /usr/lib/gcc/x86_64-linux-gnu/10/libgomp.so;/usr/lib/x86_64-linux-gnu/libpthread.so
> Found gloo: /usr/lib/libgloo.so
> CMake Warning at cmake/Dependencies.cmake:1352 (message):
>   Metal is only used in ios builds.
> Call Stack (most recent call first):
>   CMakeLists.txt:518 (include)
> 
> 
> -- 
> -- ******** Summary ********
> --   CMake version         : 3.18.4
> --   CMake command         : /usr/bin/cmake
> --   System                : Linux
> --   C++ compiler          : /usr/bin/c++
> --   C++ compiler version  : 10.2.1
> --   CXX flags             : -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -gsplit-dwarf -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -Wnon-virtual-dtor
> --   Build type            : RelWithDebInfo
> --   Compile definitions   : ONNX_ML=1;ONNXIFI_ENABLE_EXT=1
> --   CMAKE_PREFIX_PATH     : /usr/lib/python3/dist-packages
> --   CMAKE_INSTALL_PREFIX  : /<<PKGBUILDDIR>>/torch
> --   CMAKE_MODULE_PATH     : /<<PKGBUILDDIR>>/cmake/Modules
> -- 
> --   ONNX version          : 1.4.1
> --   ONNX NAMESPACE        : onnx
> --   ONNX_BUILD_TESTS      : 
> --   ONNX_BUILD_BENCHMARKS : 
> --   ONNX_USE_LITE_PROTO   : 
> --   ONNXIFI_DUMMY_BACKEND : 
> -- 
> --   Protobuf compiler     : /usr/bin/protoc
> --   Protobuf includes     : /usr/include
> --   Protobuf libraries    : /usr/lib/x86_64-linux-gnu/libprotobuf.so;-pthread
> --   BUILD_ONNX_PYTHON     : 
> -- Found onnx: /usr/lib/x86_64-linux-gnu/libonnx.so /usr/lib/x86_64-linux-gnu/libonnx_proto.so
> -- Could not find CUDA with FP16 support, compiling without torch.CudaHalfTensor
> -- Removing -DNDEBUG from compile flags
> -- MAGMA not found. Compiling without MAGMA support
> -- Could not find hardware support for NEON on this machine.
> -- No OMAP3 processor on this machine.
> -- No OMAP4 processor on this machine.
> -- Looking for cpuid.h
> -- Looking for cpuid.h - found
> -- Performing Test HAVE_GCC_GET_CPUID
> -- Performing Test HAVE_GCC_GET_CPUID - Success
> -- Performing Test NO_GCC_EBX_FPIC_BUG
> -- Performing Test NO_GCC_EBX_FPIC_BUG - Success
> -- 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 - Success
> -- 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 - Success
> -- 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 - Success
> -- 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 - Success
> -- AVX compiler support found
> -- AVX2 compiler support found
> -- Looking for cheev_
> -- Looking for cheev_ - found
> -- Found a library with LAPACK API (generic).
> disabling CUDA because NOT USE_CUDA is set
> -- USE_CUDNN is set to 0. Compiling without cuDNN support
> disabling ROCM because NOT USE_ROCM is set
> -- MIOpen not found. Compiling without MIOpen support
> -- MKLDNN_CPU_RUNTIME = OMP
> -- Looking for CL_VERSION_2_2
> -- Looking for CL_VERSION_2_2 - found
> -- Found OpenCL: /usr/lib/x86_64-linux-gnu/libOpenCL.so (found version "2.2") 
> -- Found MKL-DNN: TRUE
> -- 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 10.2.1: Adding gcc and gcc_s libs to link line
> -- Performing Test HAS_WERROR_FORMAT
> -- Performing Test HAS_WERROR_FORMAT - Success
> -- Looking for backtrace
> -- Looking for backtrace - found
> -- backtrace facility detected in default set of libraries
> -- Found Backtrace: /usr/include  
> -- don't use NUMA
> -- Performing Test COMPILER_SUPPORTS_NO_AVX256_SPLIT
> -- Performing Test COMPILER_SUPPORTS_NO_AVX256_SPLIT - Success
> -- Using ATen parallel backend: OMP
> disabling CUDA because USE_CUDA is set false
> Found sleef: /usr/lib/x86_64-linux-gnu/libsleef.so
> AT_INSTALL_INCLUDE_DIR include/ATen/core
> core header install: /<<PKGBUILDDIR>>/build/aten/src/ATen/core/TensorBody.h
> -- NCCL operators skipped due to no CUDA support
> -- Excluding FakeLowP operators
> -- Including IDEEP operators
> -- Including image processing operators
> -- Including video processing operators
> -- MPI operators skipped due to no MPI support
> -- Include Observer library
> -- /usr/bin/c++ /<<PKGBUILDDIR>>/torch/abi-check.cpp -o /<<PKGBUILDDIR>>/build/abi-check
> -- Determined _GLIBCXX_USE_CXX11_ABI=1
> -- Building c10d without CUDA/ROCm support
> CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
>   The package name passed to `find_package_handle_standard_args` (OpenMP_C)
>   does not match the name of the calling package (OpenMP).  This can lead to
>   problems in calling code that expects `find_package` result variables
>   (e.g., `_FOUND`) to follow a certain pattern.
> Call Stack (most recent call first):
>   cmake/Modules/FindOpenMP.cmake:565 (find_package_handle_standard_args)
>   caffe2/CMakeLists.txt:917 (find_package)
> This warning is for project developers.  Use -Wno-dev to suppress it.
> 
> CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
>   The package name passed to `find_package_handle_standard_args` (OpenMP_CXX)
>   does not match the name of the calling package (OpenMP).  This can lead to
>   problems in calling code that expects `find_package` result variables
>   (e.g., `_FOUND`) to follow a certain pattern.
> Call Stack (most recent call first):
>   cmake/Modules/FindOpenMP.cmake:565 (find_package_handle_standard_args)
>   caffe2/CMakeLists.txt:917 (find_package)
> This warning is for project developers.  Use -Wno-dev to suppress it.
> 
> -- pytorch is compiling with OpenMP. 
> OpenMP CXX_FLAGS: -fopenmp. 
> OpenMP libraries: /usr/lib/gcc/x86_64-linux-gnu/10/libgomp.so;/usr/lib/x86_64-linux-gnu/libpthread.so.
> -- Caffe2 is compiling with OpenMP. 
> OpenMP CXX_FLAGS: -fopenmp. 
> OpenMP libraries: /usr/lib/gcc/x86_64-linux-gnu/10/libgomp.so;/usr/lib/x86_64-linux-gnu/libpthread.so.
> -- Using lib/python3/dist-packages as python relative installation path
> -- 
> -- ******** Summary ********
> -- General:
> --   CMake version         : 3.18.4
> --   CMake command         : /usr/bin/cmake
> --   System                : Linux
> --   C++ compiler          : /usr/bin/c++
> --   C++ compiler id       : GNU
> --   C++ compiler version  : 10.2.1
> --   BLAS                  : MKL
> --   CXX flags             : -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -gsplit-dwarf -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DUSE_VULKAN_WRAPPER -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-variable -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 -Wno-stringop-overflow
> --   Build type            : RelWithDebInfo
> --   Compile definitions   : ONNX_ML=1;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     : /usr/lib/python3/dist-packages
> --   CMAKE_INSTALL_PREFIX  : /<<PKGBUILDDIR>>/torch
> -- 
> --   TORCH_VERSION         : 1.7.0
> --   CAFFE2_VERSION        : 1.7.0
> --   BUILD_CAFFE2          : ON
> --   BUILD_CAFFE2_OPS      : ON
> --   BUILD_CAFFE2_MOBILE   : OFF
> --   BUILD_STATIC_RUNTIME_BENCHMARK: OFF
> --   BUILD_BINARY          : OFF
> --   BUILD_CUSTOM_PROTOBUF : OFF
> --     Protobuf compiler   : /usr/bin/protoc
> --     Protobuf includes   : /usr/include
> --     Protobuf libraries  : /usr/lib/x86_64-linux-gnu/libprotobuf.so;-pthread
> --   BUILD_DOCS            : OFF
> --   BUILD_PYTHON          : True
> --     Python version      : 3.9.1
> --     Python executable   : /usr/bin/python3.9
> --     Pythonlibs version  : 3.9.1+
> --     Python library      : /usr/lib/libpython3.9.so.1.0
> --     Python includes     : /usr/include/python3.9
> --     Python site-packages: lib/python3/dist-packages
> --   BUILD_SHARED_LIBS     : ON
> --   BUILD_TEST            : True
> --   BUILD_JNI             : OFF
> --   BUILD_MOBILE_AUTOGRAD : OFF
> --   INTERN_BUILD_MOBILE   : 
> --   USE_ASAN              : OFF
> --   USE_CPP_CODE_COVERAGE : OFF
> --   USE_CUDA              : OFF
> --   USE_ROCM              : OFF
> --   USE_EIGEN_FOR_BLAS    : ON
> --   USE_FBGEMM            : OFF
> --     USE_FAKELOWP          : OFF
> --   USE_FFMPEG            : ON
> --   USE_GFLAGS            : ON
> --   USE_GLOG              : ON
> --   USE_LEVELDB           : ON
> --     LevelDB version     : 1.22
> --     Snappy version      : 1.1.8
> --   USE_LITE_PROTO        : OFF
> --   USE_LMDB              : ON
> --     LMDB version        : 0.9.24
> --   USE_METAL             : OFF
> --   USE_MKL               : OFF
> --   USE_MKLDNN            : ON
> --   USE_MKLDNN_CBLAS      : OFF
> --   USE_NCCL              : OFF
> --   USE_NNPACK            : OFF
> --   USE_NUMPY             : ON
> --   USE_OBSERVERS         : ON
> --   USE_OPENCL            : OFF
> --   USE_OPENCV            : ON
> --     OpenCV version      : 4.5.1
> --   USE_OPENMP            : ON
> --   USE_TBB               : OFF
> --   USE_VULKAN            : OFF
> --   USE_PROF              : OFF
> --   USE_QNNPACK           : OFF
> --   USE_PYTORCH_QNNPACK   : ON
> --   USE_REDIS             : OFF
> --   USE_ROCKSDB           : OFF
> --   USE_ZMQ               : ON
> --   USE_DISTRIBUTED       : ON
> --     USE_MPI             : OFF
> --     USE_GLOO            : ON
> --     USE_TENSORPIPE      : ON
> --   Public Dependencies  : Threads::Threads;glog::glog;caffe2::mkldnn
> --   Private Dependencies : pthreadpool;cpuinfo;pytorch_qnnpack;XNNPACK;/usr/lib/x86_64-linux-gnu/liblmdb.so;/usr/lib/x86_64-linux-gnu/libleveldb.so;/usr/lib/x86_64-linux-gnu/libsnappy.so;/usr/lib/x86_64-linux-gnu/libzmq.so;opencv_core;opencv_highgui;opencv_imgproc;opencv_imgcodecs;opencv_optflow;opencv_videoio;opencv_video;/usr/lib/x86_64-linux-gnu/libavcodec.so;/usr/lib/x86_64-linux-gnu/libavformat.so;/usr/lib/x86_64-linux-gnu/libavutil.so;/usr/lib/x86_64-linux-gnu/libswscale.so;/usr/lib/x86_64-linux-gnu/libswresample.so;fp16;gloo;tensorpipe;aten_op_header_gen;zstd;onnx_proto;onnx;foxi_loader;rt;gcc_s;gcc;dl
> -- Configuring done
> -- Generating done
> CMake Warning:
>   Manually-specified variables were not used by the project:
> 
>     USE_MIOPEN
> 
> 
> -- Build files have been written to: /<<PKGBUILDDIR>>/build
> ninja: error: '/usr/lib/x86_64-linux-gnu/libunwind.so', needed by 'lib/libc10.so.1.7.0', missing and no known rule to make it
> Building wheel torch-1.7.0a0
> -- Building version 1.7.0a0
> cmake -GNinja -DBUILD_PYTHON=True -DBUILD_TEST=True -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/<<PKGBUILDDIR>>/torch -DCMAKE_PREFIX_PATH=/usr/lib/python3/dist-packages -DNUMPY_INCLUDE_DIR=/usr/lib/python3/dist-packages/numpy/core/include -DONNX_NAMESPACE=onnx -DPYTHON_EXECUTABLE=/usr/bin/python3.9 -DPYTHON_INCLUDE_DIR=/usr/include/python3.9 -DPYTHON_LIBRARY=/usr/lib/libpython3.9.so.1.0 -DTORCH_BUILD_VERSION=1.7.0a0 -DUSE_CUDA=OFF -DUSE_CUDNN=OFF -DUSE_DISTRIBUTED=ON -DUSE_FBGEMM=OFF -DUSE_FFMPEG=ON -DUSE_GFLAGS=ON -DUSE_GLOG=ON -DUSE_LEVELDB=ON -DUSE_LMDB=ON -DUSE_MIOPEN=OFF -DUSE_MKLDNN=ON -DUSE_MPI=OFF -DUSE_NNPACK=OFF -DUSE_NUMPY=True -DUSE_OPENCV=ON -DUSE_PYTORCH_QNNPACK=ON -DUSE_QNNPACK=OFF -DUSE_REDIS=OFF -DUSE_ROCM=OFF -DUSE_SYSTEM_LIBS=ON -DUSE_SYSTEM_NCCL=OFF -DUSE_TENSORPIPE=ON -DUSE_XNNPACK=ON -DUSE_ZMQ=ON -DUSE_ZSTD=ON /<<PKGBUILDDIR>>
> cmake --build . --target install --config RelWithDebInfo -- -j 4 -v
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/setup.py", line 760, in <module>
>     build_deps()
>   File "/<<PKGBUILDDIR>>/setup.py", line 310, in build_deps
>     build_caffe2(version=version,
>   File "/<<PKGBUILDDIR>>/tools/build_pytorch_libs.py", line 62, in build_caffe2
>     cmake.build(my_env)
>   File "/<<PKGBUILDDIR>>/tools/setup_helpers/cmake.py", line 345, in build
>     self.run(build_args, my_env)
>   File "/<<PKGBUILDDIR>>/tools/setup_helpers/cmake.py", line 141, in run
>     check_call(command, cwd=self.build_dir, env=env)
>   File "/usr/lib/python3.9/subprocess.py", line 373, in check_call
>     raise CalledProcessError(retcode, cmd)
> subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install', '--config', 'RelWithDebInfo', '--', '-j', '4', '-v']' returned non-zero exit status 1.
> make[1]: *** [debian/rules:89: override_dh_auto_install] Error 1

The full build log is available from:
   http://qa-logs.debian.net/2021/01/20/pytorch_1.7.1-4_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with me
so that we can identify if something relevant changed in the meantime.

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.


Reply to: