Hi all! I am facing this error with my build from source, anyone with any clues? My run command is “BLAS=OpenBLAS python setup.py install” and gcc version is 6.3.1 and cmake version is 3.18.2

SUMMARY
–   CMake version         : 3.18.2
–   CMake command         : /homes/3/serai/.conda/envs/speechb/bin/cmake
–   System                : Linux
–   C++ compiler          : /opt/rh/devtoolset-6/root/usr/bin/c++
–   C++ compiler version  : 6.3.1
–   CXX flags             :  -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -Wnon-virtual-dtor
–   Build type            : Release
–   Compile definitions   : ONNX_ML=1;ONNXIFI_ENABLE_EXT=1
–   CMAKE_PREFIX_PATH     : /homes/3/serai/.conda/envs/speechb;/usr/local/cuda
–   CMAKE_INSTALL_PREFIX  : /data/data24/scratch/serai/pytorch/torch
–   CMAKE_MODULE_PATH     : /data/data24/scratch/serai/pytorch/cmake/Modules;/data/data24/scratch/serai/pytorch/cmake/public/…
/Modules_CUDA_fix
–   ONNX version          : 1.7.0
–   ONNX NAMESPACE        : onnx_torch
–   ONNX_BUILD_TESTS      : OFF
–   ONNX_BUILD_BENCHMARKS : OFF
–   ONNX_USE_LITE_PROTO   : OFF
–   ONNXIFI_DUMMY_BACKEND : OFF
–   ONNXIFI_ENABLE_EXT    : OFF
–   Protobuf compiler     :
–   Protobuf includes     :
–   Protobuf libraries    :
–   BUILD_ONNX_PYTHON     : OFF
– ******** Summary ********
–   CMake version         : 3.18.2
–   CMake command         : /homes/3/serai/.conda/envs/speechb/bin/cmake
–   System                : Linux
–   C++ compiler          : /opt/rh/devtoolset-6/root/usr/bin/c++
–   C++ compiler version  : 6.3.1
–   CXX flags             :  -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -Wnon-virtual-dtor
–   Build type            : Release
–   Compile definitions   : ONNX_ML=1;ONNXIFI_ENABLE_EXT=1
–   CMAKE_PREFIX_PATH     : /homes/3/serai/.conda/envs/speechb;/usr/local/cuda
–   CMAKE_INSTALL_PREFIX  : /data/data24/scratch/serai/pytorch/torch
–   CMAKE_MODULE_PATH     : /data/data24/scratch/serai/pytorch/cmake/Modules;/data/data24/scratch/serai/pytorch/cmake/public/…/Modules_CUDA_fix
–   ONNX version          : 1.4.1
–   ONNX NAMESPACE        : onnx_torch
–   ONNX_BUILD_TESTS      : OFF
–   ONNX_BUILD_BENCHMARKS : OFF
–   ONNX_USE_LITE_PROTO   : OFF
–   ONNXIFI_DUMMY_BACKEND : OFF
–   Protobuf compiler     :
–   Protobuf includes     :
–   Protobuf libraries    :
–   BUILD_ONNX_PYTHON     : OFF
– Found CUDA with FP16 support, compiling with torch.cuda.HalfTensor
– Adding -DNDEBUG to compile flags
– Compiling with MAGMA support
– MAGMA INCLUDE DIRECTORIES: /homes/3/serai/.conda/envs/speechb/include
– MAGMA LIBRARIES: /homes/3/serai/.conda/envs/speechb/lib/libmagma.a
– MAGMA V2 check: 1
– Could not find hardware support for NEON on this machine.
– No OMAP3 processor on this machine.
– No OMAP4 processor on this machine.
– AVX compiler support found
– AVX2 compiler support found
– MKL_THREADING = OMP
– Checking for [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - gomp - pthread - m - dl]
–   Library mkl_intel_lp64: /homes/3/serai/.conda/envs/speechb/lib/libmkl_intel_lp64.so
–   Library mkl_gnu_thread: /homes/3/serai/.conda/envs/speechb/lib/libmkl_gnu_thread.so
–   Library mkl_core: /homes/3/serai/.conda/envs/speechb/lib/libmkl_core.so
CMake Warning (dev) at /homes/3/serai/.conda/envs/speechb/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/Modules/FindMKL.cmake:213 (FIND_PACKAGE)
cmake/Modules/FindMKL.cmake:307 (CHECK_ALL_LIBRARIES)
cmake/Modules/FindBLAS.cmake:99 (FIND_PACKAGE)
cmake/Modules/FindLAPACK.cmake:22 (FIND_PACKAGE)
cmake/Dependencies.cmake:1623 (find_package)
CMakeLists.txt:481 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.
******* ERROR LOG *******
In file included from …/aten/src/ATen/TensorIndexing.h:4:0,
from …/test/cpp/api/support.h:8,
from …/test/cpp/api/tensor.cpp:2:
aten/src/ATen/core/TensorBody.h:300:8: note: declared here
bool is_variable() const noexcept {
^~~~~~~~~~~
[4777/4978] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/autograd/generated/python_torch_functions.cpp.o
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File “setup.py”, line 737, in 
build_deps()
File “setup.py”, line 321, in build_deps
cmake=cmake)
File “/data/data24/scratch/serai/pytorch/tools/build_pytorch_libs.py”, line 62, in build_caffe2
cmake.build(my_env)
File “/data/data24/scratch/serai/pytorch/tools/setup_helpers/cmake.py”, line 345, in build
self.run(build_args, my_env)
File “/data/data24/scratch/serai/pytorch/tools/setup_helpers/cmake.py”, line 141, in run
check_call(command, cwd=self.build_dir, env=env)
File “/u/drspeech/opt/anaconda3-5.3.0/lib/python3.7/subprocess.py”, line 328, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘cmake’, ‘–build’, ‘.’, ‘–target’, ‘install’, ‘–config’, ‘Release’, ‘–’, ‘-j’, ‘24’]’ returned non-zero exit status 1.