Hi guys , am trying to build pytorch package for riscv , am facing this issue can i get help please? here are the logs

Achyuth: <p>*** Note: Parallel build is only supported with Ninja ***</p>
<p>AT_INSTALL_INCLUDE_DIR include/ATen/core<br>
core header install: /home/root/pytorch/build/aten/src/ATen/core/TensorBody.h<br>
core header install: /home/root/pytorch/build/aten/src/ATen/core/aten_interned_strings.h<br>
core header install: /home/root/pytorch/build/aten/src/ATen/core/enum_tag.h<br>
– Generating sources for unboxing kernels /usr/bin/python3;-m;torchgen.gen_executorch;–source-path=/home/root/pytorch/test/edge/…/…/test/edge;–install_dir=/home/root/pytorch/build/out;–tags-path=/home/root/pytorch/test/edge/…/…/aten/src/ATen/native/tags.yaml;–aten_yaml_path=/home/root/pytorch/test/edge/…/…/aten/src/ATen/native/native_functions.yaml;–use_aten_lib;–op_selection_yaml_path=/home/root/pytorch/test/edge/…/…/test/edge/selected_operators.yaml;–custom_ops_yaml_path=/home/root/pytorch/test/edge/…/…/test/edge/custom_ops.yaml<br>
– /usr/bin/c++ /home/root/pytorch/torch/abi-check.cpp -o /home/root/pytorch/build/abi-check<br>
– Determined _GLIBCXX_USE_CXX11_ABI=1<br>
CMake Warning (dev) at torch/CMakeLists.txt:386:<br>
Syntax Warning in cmake code at column 107</p>
<p>Argument not separated from preceding token by whitespace.<br>
This warning is for project developers.  Use -Wno-dev to suppress it.</p>
<p>CMake Warning (dev) at torch/CMakeLists.txt:386:<br>
Syntax Warning in cmake code at column 115</p>
<p>Argument not separated from preceding token by whitespace.<br>
This warning is for project developers.  Use -Wno-dev to suppress it.</p>
<p>– Using lib/python3.8/site-packages as python relative installation path<br>
CMake Warning at CMakeLists.txt:1078 (message):<br>
Generated cmake files are only fully tested if one builds with system glog,<br>
gflags, and protobuf.  Other settings may generate files that are not well<br>
tested.</p>
<h2>
<a name="summary-general-cmake-version-3182-cmake-command-usrbincmake-system-linux-c-compiler-usrbinc-c-compiler-id-gnu-c-compiler-version-1010-using-ccache-if-found-on-found-ccache-ccache_program-notfound-cxx-flags-wno-deprecated-fvisibility-inlines-hidden-dndebug-duse_kineto-dlibkineto_nocupti-dlibkineto_noroctracer-dsymbolicate_mobile_debug_handle-dedge_profiler_use_kineto-o2-fpic-wall-wextra-werrorreturn-type-werrornon-virtual-dtor-werrorbool-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-errordeprecated-declarations-wno-stringop-overflow-wno-psabi-wno-errorpedantic-wno-errorredundant-decls-wno-errorold-style-cast-fdiagnostics-coloralways-faligned-new-wno-unused-but-set-variable-wno-maybe-uninitialized-fno-math-errno-fno-trapping-math-werrorformat-werrorcast-function-type-wno-stringop-overflow-build-type-release-compile-definitions-onnx_ml1onnxifi_enable_ext1onnx_namespaceonnx_torchhave_mmap1_file_offset_bits64have_shm_open1have_shm_unlink1have_malloc_usable_size1use_external_mzcrcminiz_disable_zip_reader_crc32_checks-cmake_prefix_path-usrlibpython38site-packages-cmake_install_prefix-homerootpytorchtorch-use_gold_linker-off-1" class="anchor" href="#summary-general-cmake-version-3182-cmake-command-usrbincmake-system-linux-c-compiler-usrbinc-c-compiler-id-gnu-c-compiler-version-1010-using-ccache-if-found-on-found-ccache-ccache_program-notfound-cxx-flags-wno-deprecated-fvisibility-inlines-hidden-dndebug-duse_kineto-dlibkineto_nocupti-dlibkineto_noroctracer-dsymbolicate_mobile_debug_handle-dedge_profiler_use_kineto-o2-fpic-wall-wextra-werrorreturn-type-werrornon-virtual-dtor-werrorbool-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-errordeprecated-declarations-wno-stringop-overflow-wno-psabi-wno-errorpedantic-wno-errorredundant-decls-wno-errorold-style-cast-fdiagnostics-coloralways-faligned-new-wno-unused-but-set-variable-wno-maybe-uninitialized-fno-math-errno-fno-trapping-math-werrorformat-werrorcast-function-type-wno-stringop-overflow-build-type-release-compile-definitions-onnx_ml1onnxifi_enable_ext1onnx_namespaceonnx_torchhave_mmap1_file_offset_bits64have_shm_open1have_shm_unlink1have_malloc_usable_size1use_external_mzcrcminiz_disable_zip_reader_crc32_checks-cmake_prefix_path-usrlibpython38site-packages-cmake_install_prefix-homerootpytorchtorch-use_gold_linker-off-1"></a>–<br>
– ******** Summary ********<br>
– General:<br>
–   CMake version         : 3.18.2<br>
–   CMake command         : /usr/bin/cmake<br>
–   System                : Linux<br>
–   C++ compiler          : /usr/bin/c++<br>
–   C++ compiler id       : GNU<br>
–   C++ compiler version  : 10.1.0<br>
–   Using ccache if found : ON<br>
–   Found ccache          : CCACHE_PROGRAM-NOTFOUND<br>
–   CXX flags             :  -Wno-deprecated -fvisibility-inlines-hidden -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOCUPTI -DLIBKINETO_NOROCTRACER -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -DEDGE_PROFILER_USE_KINETO -O2 -fPIC -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -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<br>
–   Build type            : Release<br>
–   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<br>
–   CMAKE_PREFIX_PATH     : /usr/lib/python3.8/site-packages<br>
–   CMAKE_INSTALL_PREFIX  : /home/root/pytorch/torch<br>
–   USE_GOLD_LINKER       : OFF</h2>
<p>–   TORCH_VERSION         : 2.0.0<br>
–   CAFFE2_VERSION        : 2.0.0<br>
–   BUILD_CAFFE2          : OFF<br>
–   BUILD_CAFFE2_OPS      : OFF<br>
–   BUILD_STATIC_RUNTIME_BENCHMARK: OFF<br>
–   BUILD_TENSOREXPR_BENCHMARK: OFF<br>
–   BUILD_NVFUSER_BENCHMARK: OFF<br>
–   BUILD_BINARY          : OFF<br>
–   BUILD_CUSTOM_PROTOBUF : ON<br>
–     Link local protobuf : ON<br>
–   BUILD_DOCS            : OFF<br>
–   BUILD_PYTHON          : True<br>
–     Python version      : 3.8.2<br>
–     Python executable   : /usr/bin/python3<br>
–     Pythonlibs version  : 3.8.2<br>
–     Python library      : /usr/lib/libpython3.8.so.1.0<br>
–     Python includes     : /usr/include/python3.8<br>
–     Python site-packages: lib/python3.8/site-packages<br>
–   BUILD_SHARED_LIBS     : ON<br>
–   CAFFE2_USE_MSVC_STATIC_RUNTIME     : OFF<br>
–   BUILD_TEST            : True<br>
–   BUILD_JNI             : OFF<br>
–   BUILD_MOBILE_AUTOGRAD : OFF<br>
–   BUILD_LITE_INTERPRETER: OFF<br>
–   INTERN_BUILD_MOBILE   :<br>
–   TRACING_BASED         : OFF<br>
–   USE_BLAS              : 1<br>
–     BLAS                : open<br>
–     BLAS_HAS_SBGEMM     :<br>
–   USE_LAPACK            : 0<br>
–   USE_ASAN              : OFF<br>
–   USE_TSAN              : OFF<br>
–   USE_CPP_CODE_COVERAGE : OFF<br>
–   USE_CUDA              : OFF<br>
–   USE_ROCM              : OFF<br>
–   BUILD_NVFUSER         : OFF<br>
–   USE_EIGEN_FOR_BLAS    : ON<br>
–   USE_FBGEMM            : OFF<br>
–     USE_FAKELOWP          : OFF<br>
–   USE_KINETO            : ON<br>
–   USE_FFMPEG            : OFF<br>
–   USE_GFLAGS            : OFF<br>
–   USE_GLOG              : OFF<br>
–   USE_LEVELDB           : OFF<br>
–   USE_LITE_PROTO        : OFF<br>
–   USE_LMDB              : OFF<br>
–   USE_METAL             : OFF<br>
–   USE_PYTORCH_METAL     : OFF<br>
–   USE_PYTORCH_METAL_EXPORT     : OFF<br>
–   USE_MPS               : OFF<br>
–   USE_FFTW              : OFF<br>
–   USE_MKL               : OFF<br>
–   USE_MKLDNN            : OFF<br>
–   USE_UCC               : OFF<br>
–   USE_ITT               : OFF<br>
–   USE_NCCL              : OFF<br>
–   USE_NNPACK            : OFF<br>
–   USE_NUMPY             : ON<br>
–   USE_OBSERVERS         : ON<br>
–   USE_OPENCL            : OFF<br>
–   USE_OPENCV            : OFF<br>
–   USE_OPENMP            : OFF<br>
–   USE_TBB               : OFF<br>
–   USE_VULKAN            : OFF<br>
–   USE_PROF              : OFF<br>
–   USE_QNNPACK           : OFF<br>
–   USE_PYTORCH_QNNPACK   : OFF<br>
–   USE_XNNPACK           : OFF<br>
–   USE_REDIS             : OFF<br>
–   USE_ROCKSDB           : OFF<br>
–   USE_ZMQ               : OFF<br>
–   USE_DISTRIBUTED       : ON<br>
–     USE_MPI               : OFF<br>
–     USE_GLOO              : ON<br>
–     USE_GLOO_WITH_OPENSSL : OFF<br>
–     USE_TENSORPIPE        : ON<br>
–   Public Dependencies  : caffe2::Threads<br>
–   Private Dependencies : cpuinfo;fp16;tensorpipe;gloo;foxi_loader;rt;fmt::fmt-header-only;kineto;gcc_s;gcc;dl<br>
–   USE_COREML_DELEGATE     : OFF<br>
–   BUILD_LAZY_TS_BACKEND   : ON<br>
–   TORCH_DISABLE_GPU_ASSERTS : OFF<br>
– Configuring done<br>
– Generating done<br>
– Build files have been written to: /home/root/pytorch/build<br>
Scanning dependencies of target libprotobuf-lite<br>
Scanning dependencies of target clog<br>
Scanning dependencies of target gtest<br>
Scanning dependencies of target libprotobuf<br>
make[2]: Warning: File ‘…/third_party/cpuinfo/deps/clog/src/clog.c’ has modification time 3274912 s in the future<br>
[  0%] Building C object confu-deps/cpuinfo/deps/clog/CMakeFiles/clog.dir/src/clog.c.o<br>
make[2]: Warning: File ‘…/third_party/googletest/googletest/src/gtest-all.cc’ has modification time 3274925 s in the future<br>
[  0%] Building CXX object third_party/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o<br>
make[2]: Warning: File ‘…/third_party/protobuf/src/google/protobuf/any_lite.cc’ has modification time 3274992 s in the future<br>
[  0%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/<strong>/src/google/protobuf/any_lite.cc.o<br>
make[2]: Warning: File ‘…/third_party/protobuf/src/google/protobuf/any_lite.cc’ has modification time 3274991 s in the future<br>
[  0%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/any_lite.cc.o<br>
[  0%] Linking C static library …/…/…/…/lib/libclog.a<br>
make[2]: warning:  Clock skew detected.  Your build may be incomplete.<br>
[  0%] Built target clog<br>
[  0%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/<strong>/src/google/protobuf/arena.cc.o<br>
In file included from /usr/include/c++/10.1.0/bits/stl_algobase.h:64,<br>
from /usr/include/c++/10.1.0/bits/char_traits.h:39,<br>
from /usr/include/c++/10.1.0/string:40,<br>
from /home/root/pytorch/third_party/protobuf/src/google/protobuf/any.h:34,<br>
from /home/root/pytorch/third_party/protobuf/src/google/protobuf/any_lite.cc:31:<br>
/usr/include/c++/10.1.0/bits/stl_pair.h: In instantiation of ‘struct std::pair&lt;char*, bool&gt;’:<br>
/home/root/pytorch/third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h:395:60:   required from here<br>
/usr/include/c++/10.1.0/bits/stl_pair.h:418:2: internal compiler error: Segmentation fault<br>
418 |  operator=(const pair&lt;_U1, _U2&gt;&amp; <strong>p)<br>
|  ^~~~~~~~<br>
Please submit a full bug report,<br>
with preprocessed source if appropriate.<br>
See <a href="https://gcc.gnu.org/bugs/" rel="noopener nofollow ugc">https://gcc.gnu.org/bugs/</a> for instructions.<br>
make[2]: *** [third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/build.make:82: third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/any_lite.cc.o] Error 1<br>
make[1]: *** [CMakeFiles/Makefile2:1587: third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/all] Error 2<br>
make[1]: *** Waiting for unfinished jobs…<br>
[  0%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/</strong>/src/google/protobuf/extension_set.cc.o<br>
In file included from /usr/include/c++/10.1.0/functional:65,<br>
from /home/root/pytorch/third_party/googletest/googletest/include/gtest/gtest-printers.h:103,<br>
from /home/root/pytorch/third_party/googletest/googletest/include/gtest/gtest-matchers.h:44,<br>
from /home/root/pytorch/third_party/googletest/googletest/include/gtest/internal/gtest-death-test-internal.h:39,<br>
from /home/root/pytorch/third_party/googletest/googletest/include/gtest/gtest-death-test.h:41,<br>
from /home/root/pytorch/third_party/googletest/googletest/include/gtest/gtest.h:64,<br>
from /home/root/pytorch/third_party/googletest/googletest/src/gtest-all.cc:38:<br>
/usr/include/c++/10.1.0/bits/stl_algo.h:5522:5: internal compiler error: in pop_local_binding, at cp/name-lookup.c:2044<br>
5522 |     }<br>
|     ^<br>
Please submit a full bug report,<br>
with preprocessed source if appropriate.<br>
See <a href="https://gcc.gnu.org/bugs/" rel="noopener nofollow ugc">https://gcc.gnu.org/bugs/</a> for instructions.</p>