Description
🐛 Describe the bug
General:
-- CMake version : 3.29.0
-- CMake command : /usr/local/bin/cmake
-- System : Linux
-- C++ compiler : /usr/bin/c++
-- C++ compiler id : GNU
-- C++ compiler version : 14.2.0
-- Using ccache if found : ON
-- Found ccache : CCACHE_PROGRAM-NOTFOUND
-- CXX flags : -D_GLIBCXX_USE_CXX11_ABI=1 -Wno-deprecated -fvisibility-inlines-hidden -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOCUPTI -DLIBKINETO_NOROCTRACER -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -O2 -fPIC -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -Werror=range-loop-construct -Werror=bool-operation -Wnarrowing -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wunused-local-typedefs -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -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 -Wno-stringop-overflow
-- Build type : Release
-- Compile definitions : ONNX_ML=1;ONNXIFI_ENABLE_EXT=1;ONNX_NAMESPACE=onnx_torch;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/local/lib/python3.11/site-packages
-- CMAKE_INSTALL_PREFIX : /home/pytorch-v2.0.1/torch
-- USE_GOLD_LINKER : OFF
-- TORCH_VERSION : 2.0.1
-- CAFFE2_VERSION : 2.0.1
-- BUILD_CAFFE2 : OFF
-- BUILD_CAFFE2_OPS : OFF
-- BUILD_STATIC_RUNTIME_BENCHMARK: OFF
-- BUILD_TENSOREXPR_BENCHMARK: OFF
-- BUILD_NVFUSER_BENCHMARK: OFF
-- BUILD_BINARY : OFF
-- BUILD_CUSTOM_PROTOBUF : ON
-- Link local protobuf : ON
-- BUILD_DOCS : OFF
-- BUILD_PYTHON : True
-- Python version : 3.11.8
-- Python executable : /usr/local/bin/python3
-- Pythonlibs version : 3.11.8
-- Python library : /usr/local/lib/libpython3.11.a
-- Python includes : /usr/local/include/python3.11
-- Python site-packages: lib/python3.11/site-packages
-- BUILD_SHARED_LIBS : ON
-- CAFFE2_USE_MSVC_STATIC_RUNTIME : OFF
-- BUILD_TEST : False
-- BUILD_JNI : OFF
-- BUILD_MOBILE_AUTOGRAD : OFF
-- BUILD_LITE_INTERPRETER: OFF
-- INTERN_BUILD_MOBILE :
-- TRACING_BASED : OFF
-- USE_BLAS : 1
-- BLAS : open
-- BLAS_HAS_SBGEMM :
-- USE_LAPACK : 1
-- LAPACK : open
-- USE_ASAN : OFF
-- USE_TSAN : OFF
-- USE_CPP_CODE_COVERAGE : OFF
-- USE_CUDA : 0
-- USE_ROCM : OFF
-- BUILD_NVFUSER : OFF
-- USE_EIGEN_FOR_BLAS :
-- USE_FBGEMM : OFF
-- USE_FAKELOWP : OFF
-- USE_KINETO : ON
-- USE_FFMPEG : OFF
-- USE_GFLAGS : OFF
-- USE_GLOG : OFF
-- USE_LEVELDB : OFF
-- USE_LITE_PROTO : OFF
-- USE_LMDB : OFF
-- USE_METAL : OFF
-- USE_PYTORCH_METAL : OFF
-- USE_PYTORCH_METAL_EXPORT : OFF
-- USE_MPS : OFF
-- USE_FFTW : OFF
-- USE_MKL :
-- USE_MKLDNN : OFF
-- USE_UCC : OFF
-- USE_ITT : OFF
-- USE_NCCL : OFF
-- USE_NNPACK : OFF
-- USE_NUMPY : ON
-- USE_OBSERVERS : ON
-- USE_OPENCL : OFF
-- USE_OPENCV : OFF
-- USE_OPENMP : ON
-- USE_TBB : OFF
-- USE_VULKAN : OFF
-- USE_PROF : OFF
-- USE_QNNPACK : OFF
-- USE_PYTORCH_QNNPACK : OFF
-- USE_XNNPACK : OFF
-- USE_REDIS : OFF
-- USE_ROCKSDB : OFF
-- USE_ZMQ : OFF
-- USE_DISTRIBUTED : 0
-- Public Dependencies :
-- Private Dependencies : Threads::Threads;/usr/lib/riscv64-linux-gnu/libopenblas.so;cpuinfo;fp16;caffe2::openmp;foxi_loader;rt;fmt::fmt-header-only;kineto;gcc_s;gcc;dl
-- USE_COREML_DELEGATE : OFF
-- BUILD_LAZY_TS_BACKEND : ON
-- TORCH_DISABLE_GPU_ASSERTS : ON
-- Configuring done (184.9s)
-- Generating done (4.1s)
-- Build files have been written to: /home/pytorch-v2.0.1/build
[1/1252] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/api.c.o
FAILED: confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/api.c.o
/usr/bin/cc -DCPUINFO_LOG_LEVEL=2 -I/home/pytorch-v2.0.1/third_party/cpuinfo/src -I/home/pytorch-v2.0.1/third_party/cpuinfo/include -I/home/pytorch-v2.0.1/third_party/cpuinfo/deps/clog/include -isystem /home/pytorch-v2.0.1/third_party/protobuf/src -O3 -DNDEBUG -std=c99 -fPIC -MD -MT confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/api.c.o -MF confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/api.c.o.d -o confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/api.c.o -c /home/pytorch-v2.0.1/third_party/cpuinfo/src/api.c
In file included from /home/pytorch-v2.0.1/third_party/cpuinfo/src/cpuinfo/internal-api.h:11,
from /home/pytorch-v2.0.1/third_party/cpuinfo/src/api.c:6:
/home/pytorch-v2.0.1/third_party/cpuinfo/src/api.c: In function ‘cpuinfo_get_current_processor’:
/home/pytorch-v2.0.1/third_party/cpuinfo/src/api.c:318:37: error: implicit declaration of function ‘syscall’ [-Wimplicit-function-declaration]
318 | if CPUINFO_UNLIKELY(syscall(__NR_getcpu, &cpu, NULL, NULL) != 0) {
| ^~~~~~~
/home/pytorch-v2.0.1/third_party/cpuinfo/src/cpuinfo/common.h:16:66: note: in definition of macro ‘CPUINFO_UNLIKELY’
16 | #define CPUINFO_UNLIKELY(condition) (__builtin_expect(!!(condition), 0))
| ^~~~~~~~~
[2/1252] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/api.c.o
Versions
2.0.1