So I’ve also tried it under ubuntu, and it seems that it went a bit further, but still no luck:
+++ dirname pytorch/scripts/build_pytorch_android.sh
++ cd pytorch/scripts/..
++ pwd -P
+ PYTORCH_DIR=/home/racek/Documents/pytorch
+ PYTORCH_ANDROID_DIR=/home/racek/Documents/pytorch/android
+ echo PYTORCH_DIR:/home/racek/Documents/pytorch
PYTORCH_DIR:/home/racek/Documents/pytorch
+ source /home/racek/Documents/pytorch/android/common.sh
++ set -eux
++ '[' -z /home/racek/Documents/pytorch ']'
+ check_android_sdk
+ '[' -z /home/racek/Android/Sdk ']'
+ '[' '!' -d /home/racek/Android/Sdk ']'
+ echo ANDROID_HOME:/home/racek/Android/Sdk
ANDROID_HOME:/home/racek/Android/Sdk
+ check_gradle
+ GRADLE_PATH=/home/racek/Documents/pytorch/android/gradlew
+ echo GRADLE_PATH:/home/racek/Documents/pytorch/android/gradlew
GRADLE_PATH:/home/racek/Documents/pytorch/android/gradlew
+ parse_abis_list arm64-v8a
+ ABIS_LIST=armeabi-v7a,arm64-v8a,x86,x86_64
+ CUSTOM_ABIS_LIST=false
+ '[' 1 -gt 0 ']'
+ ABIS_LIST=arm64-v8a
+ CUSTOM_ABIS_LIST=true
+ echo ABIS_LIST:arm64-v8a
ABIS_LIST:arm64-v8a
+ echo CUSTOM_ABIS_LIST:true
CUSTOM_ABIS_LIST:true
+ build_android
+ PYTORCH_ANDROID_DIR=/home/racek/Documents/pytorch/android
+ BUILD_ROOT=/home/racek/Documents/pytorch
+ echo BUILD_ROOT:/home/racek/Documents/pytorch
BUILD_ROOT:/home/racek/Documents/pytorch
+ LIB_DIR=/home/racek/Documents/pytorch/android/pytorch_android/src/main/jniLibs
+ INCLUDE_DIR=/home/racek/Documents/pytorch/android/pytorch_android/src/main/cpp/libtorch_include
+ rm -rf /home/racek/Documents/pytorch/android/pytorch_android/src/main/jniLibs
+ mkdir -p /home/racek/Documents/pytorch/android/pytorch_android/src/main/jniLibs
+ rm -rf /home/racek/Documents/pytorch/android/pytorch_android/src/main/cpp/libtorch_include
+ mkdir -p /home/racek/Documents/pytorch/android/pytorch_android/src/main/cpp/libtorch_include
++ echo arm64-v8a
++ tr , '\n'
+ for abi in $(echo "$ABIS_LIST" | tr ',' '\n')
+ echo abi:arm64-v8a
abi:arm64-v8a
+ ANDROID_BUILD_ROOT=/home/racek/Documents/pytorch/build_android_arm64-v8a
++ which ccache
+ ANDROID_ABI=arm64-v8a
+ BUILD_ROOT=/home/racek/Documents/pytorch/build_android_arm64-v8a
+ /home/racek/Documents/pytorch/scripts/build_android.sh -DANDROID_CCACHE=
Build with ANDROID_ABI[arm64-v8a], ANDROID_NATIVE_API_LEVEL[21]
Default python executable is Python-2, trying to use python3 alias
Bash: GNU bash, version 4.4.19(1)-release (x86_64-pc-linux-gnu)
Python: 3.6.7 (default, Oct 22 2018, 11:32:17) 
[GCC 8.2.0]
Caffe2 path: /home/racek/Documents/pytorch
Using Android NDK at /home/racek/Android/Sdk/ndk/23.0.7123448
Android NDK version: 23
Choose SELECTED_OP_LIST file: /home/racek/Documents/mobilenetv3_small_new.yaml
-- std::exception_ptr is supported.
-- Turning off deprecation warning due to glog.
-- Trying to find preferred BLAS backend of choice: Eigen
CMake Error at cmake/Dependencies.cmake:337 (add_subdirectory):
  The source directory

    /home/racek/Documents/pytorch/third_party/pthreadpool

  does not contain a CMakeLists.txt file.
Call Stack (most recent call first):
  CMakeLists.txt:603 (include)


CMake Error at cmake/Dependencies.cmake:340 (set_property):
  set_property could not find TARGET pthreadpool.  Perhaps it has not yet
  been created.
Call Stack (most recent call first):
  CMakeLists.txt:603 (include)


CMake Error at cmake/Dependencies.cmake:380 (add_subdirectory):
  The source directory

    /home/racek/Documents/pytorch/third_party/cpuinfo

  does not contain a CMakeLists.txt file.
Call Stack (most recent call first):
  CMakeLists.txt:603 (include)


CMake Error at cmake/Dependencies.cmake:385 (set_property):
  set_property could not find TARGET cpuinfo.  Perhaps it has not yet been
  created.
Call Stack (most recent call first):
  CMakeLists.txt:603 (include)


CMake Error at aten/src/ATen/native/quantized/cpu/qnnpack/CMakeLists.txt:320 (add_subdirectory):
  add_subdirectory given source
  "/home/racek/Documents/pytorch/third_party/cpuinfo/deps/clog" which is not
  an existing directory.


CMake Error at aten/src/ATen/native/quantized/cpu/qnnpack/CMakeLists.txt:324 (set_property):
  set_property could not find TARGET clog.  Perhaps it has not yet been
  created.


CMake Error at aten/src/ATen/native/quantized/cpu/qnnpack/CMakeLists.txt:342 (add_subdirectory):
  The binary directory

    /home/racek/Documents/pytorch/build_android_arm64-v8a/confu-deps/cpuinfo

  is already used to build a source directory.  It cannot be used to build
  source directory

    /home/racek/Documents/pytorch/third_party/cpuinfo

  Specify a unique binary directory name.


CMake Error at aten/src/ATen/native/quantized/cpu/qnnpack/CMakeLists.txt:352 (add_subdirectory):
  The binary directory

    /home/racek/Documents/pytorch/build_android_arm64-v8a/confu-deps/pthreadpool

  is already used to build a source directory.  It cannot be used to build
  source directory

    /home/racek/Documents/pytorch/third_party/pthreadpool

  Specify a unique binary directory name.


CMake Error at aten/src/ATen/native/quantized/cpu/qnnpack/CMakeLists.txt:378 (add_subdirectory):
  The source directory

    /home/racek/Documents/pytorch/third_party/FXdiv

  does not contain a CMakeLists.txt file.


CMake Error at aten/src/ATen/native/quantized/cpu/qnnpack/CMakeLists.txt:393 (add_subdirectory):
  The source directory

    /home/racek/Documents/pytorch/third_party/psimd

  does not contain a CMakeLists.txt file.


CMake Error at aten/src/ATen/native/quantized/cpu/qnnpack/CMakeLists.txt:410 (add_subdirectory):
  The source directory

    /home/racek/Documents/pytorch/third_party/FP16

  does not contain a CMakeLists.txt file.


CMake Error at cmake/Dependencies.cmake:468 (set_property):
  set_property could not find TARGET cpuinfo.  Perhaps it has not yet been
  created.
Call Stack (most recent call first):
  CMakeLists.txt:603 (include)


-- Brace yourself, we are building NNPACK
CMake Error at cmake/External/nnpack.cmake:71 (add_subdirectory):
  The source directory

    /home/racek/Documents/pytorch/third_party/NNPACK

  does not contain a CMakeLists.txt file.
Call Stack (most recent call first):
  cmake/Dependencies.cmake:498 (include)
  CMakeLists.txt:603 (include)


CMake Error at cmake/External/nnpack.cmake:76 (set_property):
  set_property could not find TARGET nnpack.  Perhaps it has not yet been
  created.
Call Stack (most recent call first):
  cmake/Dependencies.cmake:498 (include)
  CMakeLists.txt:603 (include)


CMake Error at cmake/External/nnpack.cmake:77 (set_property):
  set_property could not find TARGET pthreadpool.  Perhaps it has not yet
  been created.
Call Stack (most recent call first):
  cmake/Dependencies.cmake:498 (include)
  CMakeLists.txt:603 (include)


CMake Error at cmake/External/nnpack.cmake:78 (set_property):
  set_property could not find TARGET cpuinfo.  Perhaps it has not yet been
  created.
Call Stack (most recent call first):
  cmake/Dependencies.cmake:498 (include)
  CMakeLists.txt:603 (include)


CMake Error at cmake/Dependencies.cmake:528 (add_subdirectory):
  The source directory

    /home/racek/Documents/pytorch/third_party/XNNPACK

  does not contain a CMakeLists.txt file.
Call Stack (most recent call first):
  CMakeLists.txt:603 (include)


CMake Error at cmake/Dependencies.cmake:532 (set_property):
  set_property could not find TARGET XNNPACK.  Perhaps it has not yet been
  created.
Call Stack (most recent call first):
  CMakeLists.txt:603 (include)


-- VULKAN_INCLUDE_DIR:/home/racek/Android/Sdk/ndk/23.0.7123448/sources/third-party/vulkan/src/include
-- Vulkan_ANDROID_NDK_WRAPPER_DIR:/home/racek/Android/Sdk/ndk/23.0.7123448/sources/third_party/vulkan/src/common
CMake Warning at cmake/Dependencies.cmake:732 (message):
  Turning USE_FAKELOWP off as it depends on USE_FBGEMM.
Call Stack (most recent call first):
  CMakeLists.txt:603 (include)


CMake Error at cmake/Dependencies.cmake:866 (add_subdirectory):
  The source directory

    /home/racek/Documents/pytorch/third_party/FP16

  does not contain a CMakeLists.txt file.
Call Stack (most recent call first):
  CMakeLists.txt:603 (include)


-- Using third party subdirectory Eigen.
-- Using third_party/pybind11.
-- pybind11 include dirs: /home/racek/Documents/pytorch/cmake/../third_party/pybind11/include
CMake Error at cmake/Dependencies.cmake:1779 (add_subdirectory):
  The source directory

    /home/racek/Documents/pytorch/third_party/fmt

  does not contain a CMakeLists.txt file.
Call Stack (most recent call first):
  CMakeLists.txt:603 (include)


CMake Error at cmake/Dependencies.cmake:1788 (set_target_properties):
  set_target_properties Can not find target to add properties to:
  fmt-header-only
Call Stack (most recent call first):
  CMakeLists.txt:603 (include)


-- Not using libkineto in a mobile build.
-- Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR) 
-- don't use NUMA
INFOUse default op dependency graph .yaml file for custom build with dynamic dispatch.
-- Custom build with op registration whitelist: aten::Int;aten::_adaptive_avg_pool2d;aten::_addmv_impl_;aten::_batch_norm_impl_index;aten::_cat;aten::_coalesced_;aten::_convolution;aten::_convolution_nogroup;aten::_copy_from;aten::_empty_affine_quantized;aten::_empty_per_channel_affine_quantized;aten::_fused_dropout;aten::_indices;aten::_local_scalar_dense;aten::_make_per_tensor_quantized_tensor;aten::_mkldnn_reshape;aten::_mkldnn_transpose;aten::_mkldnn_transpose_;aten::_nnpack_available;aten::_nnpack_spatial_convolution;aten::_nnz;aten::_sparse_coo_tensor_with_dims_and_tensors;aten::_unsafe_view;aten::_values;aten::adaptive_avg_pool2d;aten::add;aten::add_;aten::addmm;aten::addmm_;aten::arange;aten::as_strided;aten::as_strided_;aten::baddbmm_;aten::batch_norm;aten::bernoulli_;aten::bmm;aten::cat;aten::clamp;aten::clamp_;aten::clamp_max;aten::clamp_min;aten::clamp_min_;aten::clone;aten::contiguous;aten::convolution_overrideable;aten::copy_;aten::copy_sparse_to_sparse_;aten::cudnn_batch_norm;aten::cudnn_convolution;aten::cudnn_convolution_transpose;aten::dense_dim;aten::dequantize;aten::detach;aten::div;aten::div_;aten::dot;aten::dropout;aten::empty;aten::empty_like;aten::empty_meta;aten::empty_strided;aten::eq;aten::equal;aten::expand;aten::fill_;aten::hardtanh_;aten::index_select;aten::int_repr;aten::is_coalesced;aten::is_floating_point;aten::is_leaf;aten::is_nonzero;aten::is_same_size;aten::item;aten::matmul;aten::max;aten::maximum;aten::mean;aten::min;aten::minimum;aten::miopen_batch_norm;aten::miopen_convolution;aten::miopen_convolution_transpose;aten::miopen_depthwise_convolution;aten::mkldnn_adaptive_avg_pool2d;aten::mm;aten::mul;aten::mul_;aten::mv;aten::narrow;aten::native_batch_norm;aten::ne;aten::nonzero;aten::ones;aten::permute;aten::q_per_channel_axis;aten::q_per_channel_scales;aten::q_per_channel_zero_points;aten::q_scale;aten::q_zero_point;aten::qscheme;aten::quantize_per_tensor;aten::relu_;aten::reshape;aten::resize_;aten::resize_as_;aten::select;aten::set_;aten::size;aten::slice;aten::slow_conv3d;aten::slow_conv3d_forward;aten::slow_conv_dilated2d;aten::slow_conv_dilated3d;aten::slow_conv_transpose2d;aten::slow_conv_transpose3d;aten::sparse_dim;aten::sparse_resize_and_clear_;aten::squeeze;aten::squeeze_;aten::sum;aten::t;aten::thnn_conv2d;aten::thnn_conv2d_forward;aten::thnn_conv_depthwise2d;aten::thnn_conv_depthwise2d_forward;aten::to;aten::transpose;aten::transpose_;aten::unsqueeze;aten::unsqueeze_;aten::view;aten::zero_;aten::zeros;aten::zeros_like;prim::NumToTensor

hFilePath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/ATen/native/vulkan/spv.h cppFilePath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/ATen/native/vulkan/spv.cpp srcDirPath:/home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl glslcPath:/home/racek/Android/Sdk/ndk/23.0.7123448/shader-tools/linux-x86_64/glslc tmpDirPath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv
templateSrcPaths:['/home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl/KO4C4HW_to_image.glsl', '/home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl/adaptive_avg_pool2d.glsl', '/home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl/add.glsl', '/home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl/add_.glsl', '/home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl/add_scalar.glsl', '/home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl/add_scalar_.glsl', '/home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl/addmm.glsl', '/home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl/avg_pool2d.glsl', '/home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl/clamp.glsl', '/home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl/clamp_.glsl', '/home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl/conv2d.glsl', '/home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl/conv2d_dw.glsl', '/home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl/conv2d_dw_clamp.glsl', '/home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl/conv2d_nogroup_clamp.glsl', '/home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl/conv2d_nogroup_clamp_1x.glsl', '/home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl/conv2d_pw.glsl', '/home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl/image_to_nchw.glsl', '/home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl/max_pool2d.glsl', '/home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl/mean.glsl', '/home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl/mean2d.glsl', '/home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl/mm.glsl', '/home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl/mul_scalar.glsl', '/home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl/mul_scalar_.glsl', '/home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl/nchw_to_image.glsl', '/home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl/permute.glsl', '/home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl/upsample_nearest2d.glsl']
templateSrcPath /home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl/KO4C4HW_to_image.glsl
name KO4C4HW_to_image
spvPath /home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/KO4C4HW_to_image.spv

glslc cmd: ['/home/racek/Android/Sdk/ndk/23.0.7123448/shader-tools/linux-x86_64/glslc', '-fshader-stage=compute', '/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/KO4C4HW_to_image.glsl', '-o', '/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/KO4C4HW_to_image.spv', '--target-env=vulkan1.0', '-Werror']
templateSrcPath /home/racek/Documents/pytorch/cmake/../aten/src/ATen/native/vulkan/glsl/adaptive_avg_pool2d.glsl
name adaptive_avg_pool2d
spvPath /home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/adaptive_avg_pool2d.spv

// here goes a lot of similar paragraphs like the one above that I connot post bc of character limit //

glslc cmd: ['/home/racek/Android/Sdk/ndk/23.0.7123448/shader-tools/linux-x86_64/glslc', '-fshader-stage=compute', '/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/upsample_nearest2d.glsl', '-o', '/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/upsample_nearest2d.spv', '--target-env=vulkan1.0', '-Werror']
spvPath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/KO4C4HW_to_image.spv
spvPath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/adaptive_avg_pool2d.spv
spvPath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/add.spv
spvPath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/add_.spv
spvPath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/add_scalar.spv
spvPath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/add_scalar_.spv
spvPath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/addmm.spv
spvPath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/avg_pool2d.spv
spvPath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/clamp.spv
spvPath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/clamp_.spv
spvPath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/conv2d.spv
spvPath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/conv2d_dw.spv
spvPath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/conv2d_dw_clamp.spv
spvPath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/conv2d_nogroup_clamp.spv
spvPath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/conv2d_nogroup_clamp_1x.spv
spvPath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/conv2d_pw.spv
spvPath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/image_to_nchw.spv
spvPath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/max_pool2d.spv
spvPath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/mean.spv
spvPath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/mean2d.spv
spvPath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/mm.spv
spvPath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/mul_scalar.spv
spvPath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/mul_scalar_.spv
spvPath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/nchw_to_image.spv
spvPath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/permute.spv
spvPath:/home/racek/Documents/pytorch/build_android_arm64-v8a/vulkan/spv/upsample_nearest2d.spv
-- Using ATen parallel backend: NATIVE
disabling CUDA because USE_CUDA is set false
AT_INSTALL_INCLUDE_DIR include/ATen/core
core header install: /home/racek/Documents/pytorch/build_android_arm64-v8a/aten/src/ATen/core/TensorBody.h
CMake Error at caffe2/CMakeLists.txt:112 (add_subdirectory):
  The source directory

    /home/racek/Documents/pytorch/third_party/FXdiv

  does not contain a CMakeLists.txt file.


CMake Warning at CMakeLists.txt:894 (message):
  Generated cmake files are only fully tested if one builds with system glog,
  gflags, and protobuf.  Other settings may generate files that are not well
  tested.


CMake Warning at CMakeLists.txt:946 (message):
  Generated cmake files are only available when building shared libs.


-- 
-- ******** Summary ********
-- General:
--   CMake version         : 3.19.6
--   CMake command         : /home/racek/cmake/bin/cmake
--   System                : Android
--   C++ compiler          : /home/racek/Android/Sdk/ndk/23.0.7123448/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++
--   C++ compiler id       : Clang
--   C++ compiler version  : 11.0.5
--   CXX flags             : -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -frtti -fexceptions  -DNO_EXPORT -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DUSE_VULKAN -DUSE_VULKAN_API -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-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -Wno-invalid-partial-specialization -Wno-typedef-redefinition -Wno-unknown-warning-option -Wno-unused-private-field -Wno-inconsistent-missing-override -Wno-aligned-allocation-unavailable -Wno-c++14-extensions -Wno-constexpr-not-const -Wno-missing-braces -Qunused-arguments -fcolor-diagnostics -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Werror=cast-function-type -g0
--   Build type            : Release
--   Compile definitions   : 
--   CMAKE_PREFIX_PATH     : /usr/lib/python3/dist-packages;/home/racek/Android/Sdk/ndk/23.0.7123448/toolchains/llvm/prebuilt/linux-x86_64
--   CMAKE_INSTALL_PREFIX  : /home/racek/Documents/pytorch/build_android_arm64-v8a/install
-- 
--   TORCH_VERSION         : 1.9.0
--   CAFFE2_VERSION        : 1.9.0
--   BUILD_CAFFE2          : ON
--   BUILD_CAFFE2_OPS      : OFF
--   BUILD_CAFFE2_MOBILE   : OFF
--   BUILD_STATIC_RUNTIME_BENCHMARK: OFF
--   BUILD_TENSOREXPR_BENCHMARK: OFF
--   BUILD_BINARY          : OFF
--   BUILD_CUSTOM_PROTOBUF : OFF
--     Protobuf compiler   : 
--     Protobuf includes   : 
--     Protobuf libraries  : 
--   BUILD_DOCS            : OFF
--   BUILD_PYTHON          : OFF
--   BUILD_SHARED_LIBS     : OFF
--   CAFFE2_USE_MSVC_STATIC_RUNTIME     : ON
--   BUILD_TEST            : OFF
--   BUILD_JNI             : OFF
--   BUILD_MOBILE_AUTOGRAD : OFF
--   BUILD_LITE_INTERPRETER: OFF
--   INTERN_BUILD_MOBILE   : ON
--   USE_BLAS              : 1
--     BLAS                : 
--   USE_LAPACK            : 
--   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_KINETO            : OFF
--   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_FFTW              : OFF
--   USE_MKL               : 
--   USE_MKLDNN            : OFF
--   USE_NCCL              : OFF
--   USE_NNPACK            : ON
--   USE_NUMPY             : ON
--   USE_OBSERVERS         : OFF
--   USE_OPENCL            : OFF
--   USE_OPENCV            : OFF
--   USE_OPENMP            : OFF
--   USE_TBB               : OFF
--   USE_VULKAN            : ON
--     USE_VULKAN_FP16_INFERENCE    : OFF
--     USE_VULKAN_RELAXED_PRECISION : OFF
--     USE_VULKAN_SHADERC_RUNTIME   : OFF
--     USE_VULKAN_WRAPPER           : ON
--   USE_PROF              : OFF
--   USE_QNNPACK           : OFF
--   USE_PYTORCH_QNNPACK   : ON
--   USE_REDIS             : OFF
--   USE_ROCKSDB           : OFF
--   USE_ZMQ               : OFF
--   USE_DISTRIBUTED       : OFF
--   SELECTED_OP_LIST    : /home/racek/Documents/mobilenetv3_small_new.yaml
--   USE_DEPLOY           : OFF
--   Public Dependencies  : Threads::Threads
--   Private Dependencies : eigen_blas;pthreadpool;cpuinfo;pytorch_qnnpack;XNNPACK;VulkanWrapper;fp16;log;fmt::fmt-header-only;dl
-- Configuring incomplete, errors occurred!
See also "/home/racek/Documents/pytorch/build_android_arm64-v8a/CMakeFiles/CMakeOutput.log".
See also "/home/racek/Documents/pytorch/build_android_arm64-v8a/CMakeFiles/CMakeError.log".

At this point I don’t even get traceback to any particular error, however there is a lot of CMake errors like this:
CMake Error at cmake/Dependencies.cmake:1779 (add_subdirectory):
  The source directory

    /home/racek/Documents/pytorch/third_party/fmt

  does not contain a CMakeLists.txt file.

but I don’t know whethet it is intended. Ofc I can also post CMakeOutput.log and CMakeError.log if needed.