Hi,
Compiling PyTorch from source failed;
Thanks for any help!
PyTorch Version (e.g., 1.0): master
Box: OpenSuse 15.2
How you installed PyTorch (conda, pip, source): source
Build command you used (if compiling from source): python3 setup.py install
following instructions here
that is
git clone --recursive https://github.com/pytorch/pytorch cd pytorch git submodule sync git submodule update --init --recursive python3 setup.py install
Python version: 3.6.12
CUDA/cuDNN version: 10.1
`
β The CXX compiler identification is GNU 7.5.0
β The C compiler identification is GNU 7.5.0
β 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 - Failed
β Turning off deprecation warning due to glog.
β 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
β Building using own protobuf under third_party per request.
β Use custom protobuf build.
β 3.11.4.0
β Looking for pthread.h
β Looking for pthread.h - found
β Performing Test CMAKE_HAVE_LIBC_PTHREAD
β Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
β Check if compiler accepts -pthread
β Check if compiler accepts -pthread - yes
β Found Threads: TRUE
β Performing Test protobuf_HAVE_BUILTIN_ATOMICS
β Performing Test protobuf_HAVE_BUILTIN_ATOMICS - Success
β Caffe2 protobuf include directory: $<BUILD_INTERFACE:/home/laurent/Download/pytorch/third_party/protobuf/src>$<INSTALL_INTERFACE:include>
β 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:150 (message):
MKL could not be found. Defaulting to Eigen
Call Stack (most recent call first):
CMakeLists.txt:533 (include)
CMake Warning at cmake/Dependencies.cmake:173 (message):
Preferred BLAS (MKL) cannot be found, now searching for a general BLAS
library
Call Stack (most recent call first):
CMakeLists.txt:533 (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
β Found OpenBLAS libraries: /usr/lib64/libopenblas.so
β Found OpenBLAS include: /usr/include
β 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 (open). Full path: (/usr/lib64/libopenblas.so)
β The ASM compiler identification is GNU
β Found assembler: /usr/bin/cc
β Brace yourself, we are building NNPACK
β Performing Test NNPACK_ARCH_IS_X86_32
β Performing Test NNPACK_ARCH_IS_X86_32 - Failed
β Found PythonInterp: /usr/bin/python3 (found version β3.6.12β)
β NNPACK backend is x86-64
CMake Deprecation Warning at third_party/googletest/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument value or use a β¦ suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Deprecation Warning at third_party/googletest/googlemock/CMakeLists.txt:42 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument value or use a β¦ suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Deprecation Warning at third_party/googletest/googletest/CMakeLists.txt:49 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument value or use a β¦ suffix to tell
CMake that the project does not need compatibility with older versions.
β Failed to find LLVM FileCheck
β Found Git: /usr/bin/git (found version β2.26.2β)
β git Version: v1.4.0-505be96a
β Version: 1.4.0
β Performing Test HAVE_CXX_FLAG_STD_CXX11
β Performing Test HAVE_CXX_FLAG_STD_CXX11 - Success
β Performing Test HAVE_CXX_FLAG_WALL
β Performing Test HAVE_CXX_FLAG_WALL - Success
β Performing Test HAVE_CXX_FLAG_WEXTRA
β Performing Test HAVE_CXX_FLAG_WEXTRA - Success
β Performing Test HAVE_CXX_FLAG_WSHADOW
β Performing Test HAVE_CXX_FLAG_WSHADOW - Success
β Performing Test HAVE_CXX_FLAG_WERROR
β Performing Test HAVE_CXX_FLAG_WERROR - Success
β Performing Test HAVE_CXX_FLAG_PEDANTIC
β Performing Test HAVE_CXX_FLAG_PEDANTIC - Success
β Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS
β Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS - Success
β Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32
β Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 - Failed
β Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL
β Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL - Success
β Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING
β Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING - Success
β Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS
β Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS - Success
β Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING
β Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING - Success
β Performing Test HAVE_CXX_FLAG_WD654
β Performing Test HAVE_CXX_FLAG_WD654 - Failed
β Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY
β Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY - Failed
β Performing Test HAVE_CXX_FLAG_COVERAGE
β Performing Test HAVE_CXX_FLAG_COVERAGE - Success
β Performing Test HAVE_STD_REGEX
β Performing Test HAVE_STD_REGEX
β Performing Test HAVE_STD_REGEX β success
β Performing Test HAVE_GNU_POSIX_REGEX
β Performing Test HAVE_GNU_POSIX_REGEX
β Performing Test HAVE_GNU_POSIX_REGEX β failed to compile
β Performing Test HAVE_POSIX_REGEX
β Performing Test HAVE_POSIX_REGEX
β Performing Test HAVE_POSIX_REGEX β success
β Performing Test HAVE_STEADY_CLOCK
β Performing Test HAVE_STEADY_CLOCK
β Performing Test HAVE_STEADY_CLOCK β success
β Performing Test COMPILER_SUPPORTS_AVX512
β Performing Test COMPILER_SUPPORTS_AVX512 - Success
CMake Warning (dev) at /usr/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:424 (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)
third_party/fbgemm/CMakeLists.txt:59 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
β Found OpenMP_C: -fopenmp (found version β4.5β)
CMake Warning (dev) at /usr/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:424 (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)
third_party/fbgemm/CMakeLists.txt:59 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
β Found OpenMP_CXX: -fopenmp (found version β4.5β)
β Found OpenMP: TRUE (found version β4.5β)
CMake Warning at third_party/fbgemm/CMakeLists.txt:61 (message):
OpenMP found! OpenMP_C_INCLUDE_DIRS =
CMake Warning at third_party/fbgemm/CMakeLists.txt:136 (message):
CMake Warning at third_party/fbgemm/CMakeLists.txt:137 (message):
CMAKE_BUILD_TYPE = Release
CMake Warning at third_party/fbgemm/CMakeLists.txt:138 (message):
CMAKE_CXX_FLAGS_DEBUG is -g
CMake Warning at third_party/fbgemm/CMakeLists.txt:139 (message):
CMAKE_CXX_FLAGS_RELEASE is -O3 -DNDEBUG
CMake Warning at third_party/fbgemm/CMakeLists.txt:140 (message):
β Performing Test __CxxFlag__fno_threadsafe_statics
β Performing Test __CxxFlag__fno_threadsafe_statics - Success
β Performing Test __CxxFlag__fno_semantic_interposition
β Performing Test __CxxFlag__fno_semantic_interposition - Success
β Performing Test __CxxFlag__fmerge_all_constants
β Performing Test __CxxFlag__fmerge_all_constants - Success
** AsmJit Summary **
ASMJIT_DIR=/home/laurent/Download/pytorch/third_party/fbgemm/third_party/asmjit
ASMJIT_TEST=FALSE
ASMJIT_TARGET_TYPE=STATIC
ASMJIT_DEPS=pthread;rt
ASMJIT_LIBS=asmjit;pthread;rt
ASMJIT_CFLAGS=-DASMJIT_STATIC
ASMJIT_PRIVATE_CFLAGS=-Wall;-Wextra;-fno-math-errno;-fno-threadsafe-statics;-fno-semantic-interposition;-DASMJIT_STATIC
ASMJIT_PRIVATE_CFLAGS_DBG=
ASMJIT_PRIVATE_CFLAGS_REL=-O2;-fmerge-all-constants
β Found Numa: /usr/include
β Found Numa (include: /usr/include, library: /usr/lib64/libnuma.so)
β Using third party subdirectory Eigen.
β Found PythonInterp: /usr/bin/python3 (found suitable version β3.6.12β, minimum required is β3.0β)
β Found PythonLibs: /usr/lib64/libpython3.6m.so.1.0 (Required is at least version β3.0β)
CMake Error at cmake/Dependencies.cmake:942 (if):
if given arguments:
"VERSION_LESS" "3"
Unknown arguments specified
Call Stack (most recent call first):
CMakeLists.txt:533 (include)
β Configuring incomplete, errors occurred!
See also β/home/laurent/Download/pytorch/build/CMakeFiles/CMakeOutput.logβ.
See also β/home/laurent/Download/pytorch/build/CMakeFiles/CMakeError.logβ.
Building wheel torch-1.8.0a0
β Building version 1.8.0a0
cmake -DBUILD_PYTHON=True -DBUILD_TEST=True -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/laurent/Download/pytorch/torch -DCMAKE_PREFIX_PATH=/usr -DJAVA_HOME=/usr/lib64/jvm/jre-11-openjdk -DNUMPY_INCLUDE_DIR=/usr/lib64/python3.6/site-packages/numpy/core/include -DPYTHON_EXECUTABLE=/usr/bin/python3 -DPYTHON_INCLUDE_DIR=/usr/include/python3.6m -DPYTHON_LIBRARY=/usr/lib64/libpython3.6m.so.1.0 -DTORCH_BUILD_VERSION=1.8.0a0 -DUSE_NUMPY=True /home/laurent/Download/pytorch
Traceback (most recent call last):
File βsetup.pyβ, line 773, in
build_deps()
File βsetup.pyβ, line 320, in build_deps
cmake=cmake)
File β/home/laurent/Download/pytorch/tools/build_pytorch_libs.pyβ, line 55, in build_caffe2
rerun_cmake)
File β/home/laurent/Download/pytorch/tools/setup_helpers/cmake.pyβ, line 330, in generate
self.run(args, env=my_env)
File β/home/laurent/Download/pytorch/tools/setup_helpers/cmake.pyβ, line 141, in run
check_call(command, cwd=self.build_dir, env=env)
File β/usr/lib64/python3.6/subprocess.pyβ, line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command β[βcmakeβ, β-DBUILD_PYTHON=Trueβ, β-DBUILD_TEST=Trueβ, β-DCMAKE_BUILD_TYPE=Releaseβ, β-DCMAKE_INSTALL_PREFIX=/home/laurent/Download/pytorch/torchβ, β-DCMAKE_PREFIX_PATH=/usrβ, β-DJAVA_HOME=/usr/lib64/jvm/jre-11-openjdkβ, β-DNUMPY_INCLUDE_DIR=/usr/lib64/python3.6/site-packages/numpy/core/includeβ, β-DPYTHON_EXECUTABLE=/usr/bin/python3β, β-DPYTHON_INCLUDE_DIR=/usr/include/python3.6mβ, β-DPYTHON_LIBRARY=/usr/lib64/libpython3.6m.so.1.0β, β-DTORCH_BUILD_VERSION=1.8.0a0β, β-DUSE_NUMPY=Trueβ, β/home/laurent/Download/pytorchβ]β returned non-zero exit status 1.
`