Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: [Errno 2] No such file or directory: '/torchgen/packaged/ATen/native/native_functions.yaml' while building QNN backend #7644

Open
lifelongeeek opened this issue Jan 14, 2025 · 1 comment
Assignees
Labels
bug Something isn't working module: build Related to buck2 and cmake build triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Comments

@lifelongeeek
Copy link

🐛 Describe the bug

I was following tutorial for android demo with QNN delegate

At building QNN backend step, the first script (./backends/qualcomm/scripts/build.sh --release) fail with error `# FileNotFoundError: [Errno 2] No such file or directory: '/torchgen/packaged/ATen/native/native_functions.yaml'.

Here I attached the detailed log below

++ [[ -z /ssd8/geonminkim/qairt/2.26.0.240828 ]]
++ '[' --release = -h ']'
++ BUILD_X86_64=true
++ CMAKE_X86_64=build-x86
++ BUILD_AARCH64=true
++ CMAKE_AARCH64=build-android
++ CLEAN=true
++ BUILD_TYPE=Debug
++ BUILD_JOB_NUMBER=16
++ '[' -z PYTHON_EXECUTABLE ']'
++ '[' -z BUCK2 ']'
++ long_options=skip_x86_64,skip_aarch64,no_clean,release,job_number:
+++ getopt -a --options '' --longoptions skip_x86_64,skip_aarch64,no_clean,release,job_number: --name ./backends/qualcomm/scripts/build.sh -- --release
++ parsed_args=' --release --'
++ eval set -- ' --release --'
+++ set -- --release --
++ true
++ case "$1" in
++ BUILD_TYPE=Release
++ shift
++ true
++ case "$1" in
++ shift
++ break
++++ dirname ./backends/qualcomm/scripts/build.sh
+++ cd ./backends/qualcomm/scripts/../../..
+++ pwd -P
++ PRJ_ROOT=/ssd8/geonminkim/executorch
++ '[' true = true ']'
++ [[ -z /ssd8/geonminkim/android-ndk-r27c ]]
++ BUILD_ROOT=/ssd8/geonminkim/executorch/build-android
++ '[' true = true ']'
++ rm -rf /ssd8/geonminkim/executorch/build-android
++ mkdir /ssd8/geonminkim/executorch/build-android
++ cd /ssd8/geonminkim/executorch/build-android
++ cmake .. -DCMAKE_INSTALL_PREFIX=/ssd8/geonminkim/executorch/build-android -DCMAKE_BUILD_TYPE=Release -DEXECUTORCH_BUILD_QNN=ON -DEXECUTORCH_BUILD_DEVTOOLS=ON -DEXECUTORCH_BUILD_EXTENSION_MODULE=ON -DEXECUTORCH_BUILD_EXTENSION_TENSOR=ON -DEXECUTORCH_ENABLE_EVENT_TRACER=ON -DQNN_SDK_ROOT=/ssd8/geonminkim/qairt/2.26.0.240828 -DCMAKE_TOOLCHAIN_FILE=/ssd8/geonminkim/android-ndk-r27c/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DANDROID_NATIVE_API_LEVEL=23 -DPYTHON_EXECUTABLE= -B/ssd8/geonminkim/executorch/build-android
CMake Deprecation Warning at /ssd8/geonminkim/android-ndk-r27c/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.
Call Stack (most recent call first):
  /root/miniconda3/envs/et_qnn/lib/python3.12/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeDetermineSystem.cmake:146 (include)
  CMakeLists.txt:45 (project)


CMake Deprecation Warning at /ssd8/geonminkim/android-ndk-r27c/build/cmake/android-legacy.toolchain.cmake:35 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.
Call Stack (most recent call first):
  /ssd8/geonminkim/android-ndk-r27c/build/cmake/android.toolchain.cmake:55 (include)
  /root/miniconda3/envs/et_qnn/lib/python3.12/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeDetermineSystem.cmake:146 (include)
  CMakeLists.txt:45 (project)

...

-- dist install dir /ssd8/geonminkim/executorch/third-party/flatcc
-- lib install dir /ssd8/geonminkim/executorch/third-party/flatcc/lib
-- Setting Clang compiler options
-- Configured C_FLAGS: -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -DFLATCC_REFLECTION=0 -Wstrict-prototypes -Wsign-conversion -Wconversion -std=c11 -pedantic -Wall -Wextra -Werror
CMake Deprecation Warning at CMakeLists.txt:2 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


-- The C compiler identification is Clang 18.0.3
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /ssd8/geonminkim/android-ndk-r27c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- dist install dir /ssd8/geonminkim/executorch/third-party/flatcc
-- lib install dir /ssd8/geonminkim/executorch/third-party/flatcc/lib
-- Setting Clang compiler options
-- Configured C_FLAGS:  -DFLATCC_REFLECTION=0 -Wstrict-prototypes -Wsign-conversion -Wconversion -std=c11 -pedantic -Wall -Wextra -Werror
-- Configuring done (0.4s)
-- Generating done (0.0s)
-- Build files have been written to: /ssd8/geonminkim/executorch/build-android/_host_build
[  3%] Building C object src/runtime/CMakeFiles/flatccrt.dir/builder.c.o
[  6%] Building C object src/runtime/CMakeFiles/flatccrt.dir/emitter.c.o
[  9%] Building C object src/runtime/CMakeFiles/flatccrt.dir/refmap.c.o
[ 12%] Building C object src/runtime/CMakeFiles/flatccrt.dir/verifier.c.o
[ 15%] Building C object src/runtime/CMakeFiles/flatccrt.dir/json_parser.c.o
[ 18%] Building C object src/runtime/CMakeFiles/flatccrt.dir/json_printer.c.o
[ 21%] Linking C static library /ssd8/geonminkim/executorch/third-party/flatcc/lib/libflatccrt.a
[ 21%] Built target flatccrt
[ 24%] Building C object src/compiler/CMakeFiles/flatcc.dir/__/__/external/hash/str_set.c.o
[ 27%] Building C object src/compiler/CMakeFiles/flatcc.dir/__/__/external/hash/ptr_set.c.o
[ 30%] Building C object src/compiler/CMakeFiles/flatcc.dir/hash_tables/symbol_table.c.o
[ 33%] Building C object src/compiler/CMakeFiles/flatcc.dir/hash_tables/scope_table.c.o
[ 36%] Building C object src/compiler/CMakeFiles/flatcc.dir/hash_tables/name_table.c.o
[ 39%] Building C object src/compiler/CMakeFiles/flatcc.dir/hash_tables/schema_table.c.o
[ 42%] Building C object src/compiler/CMakeFiles/flatcc.dir/hash_tables/value_set.c.o
[ 45%] Building C object src/compiler/CMakeFiles/flatcc.dir/fileio.c.o
[ 48%] Building C object src/compiler/CMakeFiles/flatcc.dir/parser.c.o
[ 51%] Building C object src/compiler/CMakeFiles/flatcc.dir/semantics.c.o
[ 54%] Building C object src/compiler/CMakeFiles/flatcc.dir/coerce.c.o
[ 57%] Building C object src/compiler/CMakeFiles/flatcc.dir/flatcc.c.o
[ 60%] Building C object src/compiler/CMakeFiles/flatcc.dir/codegen_c.c.o
[ 63%] Building C object src/compiler/CMakeFiles/flatcc.dir/codegen_c_reader.c.o
[ 66%] Building C object src/compiler/CMakeFiles/flatcc.dir/codegen_c_sort.c.o
[ 69%] Building C object src/compiler/CMakeFiles/flatcc.dir/codegen_c_builder.c.o
[ 72%] Building C object src/compiler/CMakeFiles/flatcc.dir/codegen_c_verifier.c.o
[ 75%] Building C object src/compiler/CMakeFiles/flatcc.dir/codegen_c_sorter.c.o
[ 78%] Building C object src/compiler/CMakeFiles/flatcc.dir/codegen_c_json_parser.c.o
[ 81%] Building C object src/compiler/CMakeFiles/flatcc.dir/codegen_c_json_printer.c.o
[ 84%] Building C object src/compiler/CMakeFiles/flatcc.dir/__/runtime/builder.c.o
[ 87%] Building C object src/compiler/CMakeFiles/flatcc.dir/__/runtime/emitter.c.o
[ 90%] Building C object src/compiler/CMakeFiles/flatcc.dir/__/runtime/refmap.c.o
[ 93%] Linking C static library /ssd8/geonminkim/executorch/third-party/flatcc/lib/libflatcc.a
[ 93%] Built target flatcc
[ 96%] Building C object src/cli/CMakeFiles/flatcc_cli.dir/flatcc_cli.c.o
[100%] Linking C executable /ssd8/geonminkim/executorch/third-party/flatcc/bin/flatcc
[100%] Built target flatcc_cli
-- 
-- ******** Summary ********
--   CMAKE_BUILD_TYPE              : Release
--   CMAKE_CXX_STANDARD            : 17
--   CMAKE_CXX_COMPILER_ID         : Clang
--   CMAKE_TOOLCHAIN_FILE          : /ssd8/geonminkim/android-ndk-r27c/build/cmake/android.toolchain.cmake
--   BUCK2                         : /ssd8/geonminkim/executorch/buck2-bin/buck2-edae27cfca00053d9c5f7c7be81b6b0d7d07573a50be374ce53a9d8692afa5fc
--   PYTHON_EXECUTABLE             : python
--   FLATC_EXECUTABLE              : flatc
--   EXECUTORCH_ENABLE_LOGGING              : OFF
--   EXECUTORCH_ENABLE_PROGRAM_VERIFICATION : OFF
--   EXECUTORCH_LOG_LEVEL                   : Info
--   EXECUTORCH_BUILD_ANDROID_JNI           : OFF
--   EXECUTORCH_BUILD_ARM_BAREMETAL         : OFF
--   EXECUTORCH_BUILD_CADENCE               : OFF
--   EXECUTORCH_BUILD_COREML                : OFF
--   EXECUTORCH_BUILD_CPUINFO               : ON
--   EXECUTORCH_BUILD_DEVTOOLS              : ON
--   EXECUTORCH_BUILD_EXECUTOR_RUNNER       : ON
--   EXECUTORCH_BUILD_EXTENSION_DATA_LOADER : ON
--   EXECUTORCH_BUILD_EXTENSION_MODULE      : ON
--   EXECUTORCH_BUILD_EXTENSION_RUNNER_UTIL : OFF
--   EXECUTORCH_BUILD_EXTENSION_TENSOR      : ON
--   EXECUTORCH_BUILD_EXTENSION_TRAINING    : OFF
--   EXECUTORCH_BUILD_FLATC                 : ON
--   EXECUTORCH_BUILD_GFLAGS                : ON
--   EXECUTORCH_BUILD_HOST_TARGETS          : ON
--   EXECUTORCH_BUILD_KERNELS_CUSTOM        : OFF
--   EXECUTORCH_BUILD_KERNELS_CUSTOM_AOT    : OFF
--   EXECUTORCH_BUILD_KERNELS_OPTIMIZED     : OFF
--   EXECUTORCH_BUILD_KERNELS_QUANTIZED     : OFF
--   EXECUTORCH_BUILD_MPS                   : OFF
--   EXECUTORCH_BUILD_NEURON                : OFF
--   EXECUTORCH_BUILD_PTHREADPOOL           : ON
--   EXECUTORCH_BUILD_PYBIND                : OFF
--   EXECUTORCH_BUILD_QNN                   : ON
--   EXECUTORCH_BUILD_SIZE_TEST             : OFF
--   EXECUTORCH_BUILD_TESTS                 : OFF
--   EXECUTORCH_BUILD_VULKAN                : OFF
--   EXECUTORCH_BUILD_XNNPACK               : OFF
-- Configuring done (11.3s)
-- Generating done (0.2s)
-- Build files have been written to: /ssd8/geonminkim/executorch/build-android
++ cmake --build /ssd8/geonminkim/executorch/build-android -j16 --target install
[  0%] Building CXX object third-party/gflags/CMakeFiles/gflags_nothreads_static.dir/src/gflags.cc.o
[  1%] Building CXX object third-party/gflags/CMakeFiles/gflags_nothreads_static.dir/src/gflags_reporting.cc.o
[  1%] Building CXX object third-party/gflags/CMakeFiles/gflags_nothreads_static.dir/src/gflags_completions.cc.o
[  2%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo.dir/src/api.c.o
[  3%] Building C object backends/xnnpack/third-party/pthreadpool/CMakeFiles/pthreadpool.dir/src/legacy-api.c.o
[  3%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo.dir/src/cache.c.o
[  3%] Building C object backends/xnnpack/third-party/pthreadpool/CMakeFiles/pthreadpool.dir/src/portable-api.c.o
[  4%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/idl_parser.cpp.o
[  5%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo.dir/src/log.c.o
[  4%] Generating etdump headers
[  5%] Building C object third-party/flatcc/src/runtime/CMakeFiles/flatccrt.dir/builder.c.o
[  5%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/api.c.o
[  5%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/idl_gen_text.cpp.o
[  5%] Building C object third-party/flatcc/src/compiler/CMakeFiles/flatcc.dir/__/__/external/hash/str_set.c.o
[  5%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo.dir/src/init.c.o
[  5%] Building C object backends/xnnpack/third-party/pthreadpool/CMakeFiles/pthreadpool.dir/src/memory.c.o
[  5%] Building C object backends/xnnpack/third-party/pthreadpool/CMakeFiles/pthreadpool.dir/src/pthreads.c.o
[  5%] Built target etdump_schema
[  6%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo.dir/src/arm/uarch.c.o
[  6%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo.dir/src/arm/cache.c.o
[  6%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo.dir/src/arm/linux/init.c.o
[  6%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo.dir/src/arm/linux/cpuinfo.c.o
[  7%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo.dir/src/arm/linux/clusters.c.o
[  8%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/cache.c.o
[  8%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo.dir/src/arm/linux/chipset.c.o
[  8%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/init.c.o
[  8%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/log.c.o
[  8%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo.dir/src/arm/linux/midr.c.o
[  8%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo.dir/src/arm/linux/hwcap.c.o
[  9%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo.dir/src/arm/linux/aarch64-isa.c.o
[  9%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo.dir/src/arm/android/properties.c.o
[  9%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/smallfile.c.o
[  9%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/arm/uarch.c.o
[  9%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/multiline.c.o
[  9%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/processors.c.o
[ 10%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/cpulist.c.o
[ 11%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/arm/cache.c.o
[ 11%] Building C object third-party/flatcc/src/runtime/CMakeFiles/flatccrt.dir/emitter.c.o
[ 11%] Building C object third-party/flatcc/src/runtime/CMakeFiles/flatccrt.dir/refmap.c.o
[ 11%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/arm/linux/init.c.o
[ 11%] Building C object third-party/flatcc/src/runtime/CMakeFiles/flatccrt.dir/verifier.c.o
[ 11%] Building C object third-party/flatcc/src/compiler/CMakeFiles/flatcc.dir/__/__/external/hash/ptr_set.c.o
[ 12%] Building C object third-party/flatcc/src/compiler/CMakeFiles/flatcc.dir/hash_tables/symbol_table.c.o
[ 12%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/arm/linux/cpuinfo.c.o
[ 12%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/arm/linux/clusters.c.o
[ 13%] Building C object third-party/flatcc/src/runtime/CMakeFiles/flatccrt.dir/json_parser.c.o
[ 13%] Building C object third-party/flatcc/src/runtime/CMakeFiles/flatccrt.dir/json_printer.c.o
[ 13%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/arm/linux/midr.c.o
[ 14%] Linking C static library libcpuinfo.a
[ 14%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/arm/linux/chipset.c.o
[ 14%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/arm/linux/hwcap.c.o
[ 14%] Built target cpuinfo
[ 14%] Building C object third-party/flatcc/src/compiler/CMakeFiles/flatcc.dir/hash_tables/scope_table.c.o
[ 14%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/arm/linux/aarch64-isa.c.o
[ 14%] Building C object third-party/flatcc/src/compiler/CMakeFiles/flatcc.dir/hash_tables/name_table.c.o
[ 14%] Building C object third-party/flatcc/src/compiler/CMakeFiles/flatcc.dir/hash_tables/schema_table.c.o
[ 15%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/arm/android/properties.c.o
[ 15%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/linux/smallfile.c.o
[ 15%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/reflection.cpp.o
[ 15%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/linux/multiline.c.o
[ 16%] Building C object third-party/flatcc/src/compiler/CMakeFiles/flatcc.dir/hash_tables/value_set.c.o
[ 16%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/linux/cpulist.c.o
[ 17%] Building C object backends/xnnpack/third-party/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/linux/processors.c.o
[ 17%] Building C object third-party/flatcc/src/compiler/CMakeFiles/flatcc.dir/fileio.c.o
[ 17%] Building C object third-party/flatcc/src/compiler/CMakeFiles/flatcc.dir/parser.c.o
[ 17%] Building C object third-party/flatcc/src/compiler/CMakeFiles/flatcc.dir/semantics.c.o
[ 17%] Linking C static library libcpuinfo_internals.a
[ 18%] Building C object third-party/flatcc/src/compiler/CMakeFiles/flatcc.dir/coerce.c.o
[ 18%] Built target cpuinfo_internals
[ 18%] Building C object third-party/flatcc/src/compiler/CMakeFiles/flatcc.dir/flatcc.c.o
[ 18%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/util.cpp.o
[ 18%] Building C object third-party/flatcc/src/compiler/CMakeFiles/flatcc.dir/codegen_c.c.o
[ 18%] Building C object third-party/flatcc/src/compiler/CMakeFiles/flatcc.dir/codegen_c_reader.c.o
[ 19%] Building C object third-party/flatcc/src/compiler/CMakeFiles/flatcc.dir/codegen_c_sort.c.o
[ 19%] Building C object third-party/flatcc/src/compiler/CMakeFiles/flatcc.dir/codegen_c_builder.c.o
[ 20%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/idl_gen_binary.cpp.o
[ 20%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/idl_gen_cpp.cpp.o
[ 20%] Building C object third-party/flatcc/src/compiler/CMakeFiles/flatcc.dir/codegen_c_verifier.c.o
[ 20%] Building C object third-party/flatcc/src/compiler/CMakeFiles/flatcc.dir/codegen_c_sorter.c.o
[ 21%] Building C object third-party/flatcc/src/compiler/CMakeFiles/flatcc.dir/codegen_c_json_parser.c.o
[ 21%] Building C object third-party/flatcc/src/compiler/CMakeFiles/flatcc.dir/codegen_c_json_printer.c.o
[ 22%] Linking C static library libpthreadpool.a
[ 22%] Building C object third-party/flatcc/src/compiler/CMakeFiles/flatcc.dir/__/runtime/builder.c.o
[ 22%] Built target pthreadpool
[ 22%] Building C object third-party/flatcc/src/compiler/CMakeFiles/flatcc.dir/__/runtime/emitter.c.o
[ 23%] Building C object third-party/flatcc/src/compiler/CMakeFiles/flatcc.dir/__/runtime/refmap.c.o
[ 23%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/idl_gen_csharp.cpp.o
[ 23%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/idl_gen_dart.cpp.o
[ 24%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/idl_gen_kotlin.cpp.o
[ 24%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/idl_gen_kotlin_kmp.cpp.o
[ 24%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/idl_gen_go.cpp.o
[ 24%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/idl_gen_java.cpp.o
[ 25%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/idl_gen_ts.cpp.o
[ 25%] Linking C static library /ssd8/geonminkim/executorch/third-party/flatcc/lib/libflatcc.a
[ 25%] Built target flatcc
[ 25%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/idl_gen_php.cpp.o
[ 25%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/idl_gen_python.cpp.o
[ 25%] Linking C static library /ssd8/geonminkim/executorch/third-party/flatcc/lib/libflatccrt.a
[ 25%] Built target flatccrt
[ 25%] Building C object third-party/flatcc/src/cli/CMakeFiles/flatcc_cli.dir/flatcc_cli.c.o
[ 25%] Linking CXX static library libgflags_nothreads.a
[ 25%] Built target gflags_nothreads_static
[ 25%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/idl_gen_lobster.cpp.o
[ 25%] Linking C executable /ssd8/geonminkim/executorch/third-party/flatcc/bin/flatcc
[ 25%] Built target flatcc_cli
[ 26%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/idl_gen_rust.cpp.o
[ 26%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/idl_gen_fbs.cpp.o
[ 26%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/idl_gen_grpc.cpp.o
[ 26%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/idl_gen_json_schema.cpp.o
[ 27%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/idl_gen_swift.cpp.o
[ 27%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/file_name_saving_file_manager.cpp.o
[ 27%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/file_binary_writer.cpp.o
[ 27%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/file_writer.cpp.o
[ 28%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/flatc.cpp.o
[ 28%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/flatc_main.cpp.o
[ 28%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/binary_annotator.cpp.o
[ 28%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/annotated_binary_text_gen.cpp.o
[ 29%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/bfbs_gen_lua.cpp.o
[ 29%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/bfbs_gen_nim.cpp.o
[ 29%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/src/code_generators.cpp.o
[ 29%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/grpc/src/compiler/cpp_generator.cc.o
[ 30%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/grpc/src/compiler/go_generator.cc.o
[ 30%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/grpc/src/compiler/java_generator.cc.o
[ 30%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/grpc/src/compiler/python_generator.cc.o
[ 30%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/grpc/src/compiler/swift_generator.cc.o
[ 31%] Building CXX object third-party/flatbuffers/CMakeFiles/flatc.dir/grpc/src/compiler/ts_generator.cc.o
[ 31%] Linking CXX executable flatc
[ 31%] Built target flatc
[ 31%] Generating common_schema headers
[ 31%] Generating qualcomm ir schema headers
[ 31%] Generating qnn_schema headers
[ 31%] Generating bundled_program headers
[ 31%] Built target common_schema
[ 31%] Built target qcir
[ 31%] Built target qnn_schema
[ 31%] Built target bundled_program_schema
[ 31%] Generating program_schema headers
[ 31%] Building CXX object backends/qualcomm/CMakeFiles/qcir_utils.dir/aot/ir/qcir_utils.cpp.o
[ 31%] Building CXX object backends/qualcomm/CMakeFiles/qnn_executorch_logging.dir/runtime/Logging.cpp.o
[ 31%] Built target program_schema
[ 31%] Building CXX object CMakeFiles/executorch_core.dir/runtime/backend/interface.cpp.o
[ 31%] Building CXX object CMakeFiles/executorch_core.dir/runtime/core/evalue.cpp.o
[ 31%] Building CXX object CMakeFiles/executorch_core.dir/runtime/core/exec_aten/util/tensor_util_portable.cpp.o
[ 32%] Building CXX object CMakeFiles/executorch_core.dir/runtime/core/portable_type/tensor_impl.cpp.o
[ 32%] Building CXX object CMakeFiles/executorch_core.dir/runtime/executor/method.cpp.o
[ 32%] Building CXX object CMakeFiles/executorch_core.dir/runtime/executor/method_meta.cpp.o
[ 32%] Building CXX object CMakeFiles/executorch_core.dir/runtime/executor/program.cpp.o
[ 33%] Building CXX object CMakeFiles/executorch_core.dir/runtime/executor/tensor_parser_portable.cpp.o
[ 33%] Building CXX object CMakeFiles/executorch_core.dir/runtime/executor/tensor_parser_exec_aten.cpp.o
[ 33%] Building CXX object CMakeFiles/executorch_core.dir/runtime/kernel/operator_registry.cpp.o
[ 33%] Building CXX object CMakeFiles/executorch_core.dir/runtime/platform/abort.cpp.o
[ 33%] Building CXX object CMakeFiles/executorch_core.dir/runtime/platform/profiler.cpp.o
[ 34%] Building CXX object CMakeFiles/executorch_core.dir/runtime/platform/log.cpp.o
[ 34%] Building CXX object CMakeFiles/executorch_core.dir/runtime/platform/runtime.cpp.o
[ 34%] Building CXX object CMakeFiles/executorch_core.dir/schema/extended_header.cpp.o
[ 35%] Building CXX object CMakeFiles/executorch_core.dir/runtime/platform/default/posix.cpp.o
[ 35%] Linking CXX static library libqnn_executorch_logging.a
[ 35%] Built target qnn_executorch_logging
[ 35%] Building CXX object backends/qualcomm/CMakeFiles/qnn_implementation.dir/runtime/backends/QnnImplementation.cpp.o
[ 35%] Building CXX object backends/qualcomm/CMakeFiles/qnn_sys_implementation.dir/runtime/backends/QnnSysImplementation.cpp.o
[ 35%] Building CXX object backends/qualcomm/CMakeFiles/utils.dir/runtime/Utils.cpp.o
[ 35%] Building CXX object backends/qualcomm/CMakeFiles/shared_buffer.dir/runtime/SharedBuffer.cpp.o
[ 36%] Building CXX object backends/qualcomm/CMakeFiles/qnn_profiler.dir/runtime/backends/QnnProfiler.cpp.o
[ 36%] Building CXX object backends/qualcomm/CMakeFiles/wrappers.dir/aot/wrappers/TensorWrapper.cpp.o
[ 36%] Building CXX object backends/qualcomm/CMakeFiles/wrappers.dir/aot/wrappers/QuantizeParamsWrapper.cpp.o
[ 36%] Building CXX object backends/qualcomm/CMakeFiles/wrappers.dir/aot/wrappers/OpWrapper.cpp.o
[ 37%] Linking CXX static library libqnn_sys_implementation.a
[ 38%] Linking CXX static library libutils.a
[ 38%] Built target qnn_sys_implementation
[ 38%] Linking CXX static library libqnn_profiler.a
[ 38%] Built target utils
[ 38%] Built target qnn_profiler
[ 38%] Linking CXX static library libexecutorch_core.a
[ 38%] Built target executorch_core
[ 38%] Building CXX object CMakeFiles/executorch.dir/kernels/prim_ops/et_copy_index.cpp.o
[ 38%] Building CXX object CMakeFiles/executorch.dir/kernels/prim_ops/et_view.cpp.o
[ 38%] Building CXX object extension/tensor/CMakeFiles/extension_tensor.dir/tensor_ptr.cpp.o
[ 38%] Building CXX object CMakeFiles/executorch.dir/kernels/prim_ops/register_prim_ops.cpp.o
[ 38%] Building CXX object extension/tensor/CMakeFiles/extension_tensor.dir/tensor_ptr_maker.cpp.o
[ 39%] Building CXX object extension/threadpool/CMakeFiles/extension_threadpool.dir/threadpool.cpp.o
[ 39%] Building CXX object extension/threadpool/CMakeFiles/extension_threadpool.dir/threadpool_guard.cpp.o
[ 39%] Building CXX object extension/threadpool/CMakeFiles/extension_threadpool.dir/cpuinfo_utils.cpp.o
[ 40%] Linking CXX static library libwrappers.a
[ 40%] Built target wrappers
[ 41%] Linking CXX static library libqnn_implementation.a
[ 41%] Built target qnn_implementation
[ 41%] Building CXX object backends/qualcomm/CMakeFiles/qnn_logger.dir/runtime/backends/QnnLogger.cpp.o
[ 41%] Linking CXX static library libshared_buffer.a
[ 41%] Built target shared_buffer
[ 41%] Linking CXX static library libqcir_utils.a
[ 41%] Built target qcir_utils
[ 41%] Building CXX object backends/qualcomm/CMakeFiles/qnn_backend_cache.dir/runtime/backends/htpbackend/HtpBackendCache.cpp.o
[ 41%] Building CXX object backends/qualcomm/CMakeFiles/qnn_backend_cache.dir/runtime/backends/QnnBackendCache.cpp.o
[ 41%] Building CXX object backends/qualcomm/CMakeFiles/qnn_custom_protocol.dir/runtime/backends/QnnCustomProtocol.cpp.o
[ 42%] Linking CXX static library libexecutorch.a
[ 42%] Built target executorch
[ 42%] Linking CXX static library libextension_threadpool.a
[ 42%] Building CXX object extension/data_loader/CMakeFiles/extension_data_loader.dir/file_data_loader.cpp.o
[ 42%] Building CXX object extension/data_loader/CMakeFiles/extension_data_loader.dir/mmap_data_loader.cpp.o
[ 42%] Building CXX object devtools/CMakeFiles/bundled_program.dir/bundled_program/bundled_program.cpp.o
[ 42%] Building CXX object devtools/CMakeFiles/etdump.dir/etdump/etdump_flatcc.cpp.o
[ 42%] Building CXX object devtools/CMakeFiles/etdump.dir/etdump/emitter.cpp.o
[ 42%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_abs.cpp.o
[ 42%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op__empty_dim_order.cpp.o
[ 43%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op__to_dim_order_copy.cpp.o
[ 43%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_acos.cpp.o
[ 43%] Built target extension_threadpool
[ 43%] Linking CXX static library libqnn_logger.a
[ 43%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_acosh.cpp.o
[ 44%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_add.cpp.o
[ 44%] Built target qnn_logger
[ 44%] Linking CXX static library libextension_tensor.a
[ 44%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_addmm.cpp.o
[ 44%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_alias_copy.cpp.o
[ 44%] Built target extension_tensor
[ 44%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_allclose.cpp.o
[ 45%] Linking CXX static library libextension_data_loader.a
[ 45%] Built target extension_data_loader
[ 46%] Building CXX object backends/qualcomm/CMakeFiles/qnn_backend.dir/runtime/backends/QnnBackendCommon.cpp.o
[ 46%] Building CXX object backends/qualcomm/CMakeFiles/qnn_device.dir/runtime/backends/QnnDeviceCommon.cpp.o
[ 47%] Building CXX object backends/qualcomm/CMakeFiles/qnn_device.dir/runtime/backends/htpbackend/HtpDevice.cpp.o
[ 48%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_amax.cpp.o
[ 48%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_amin.cpp.o
[ 48%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_any.cpp.o
[ 48%] Building CXX object backends/qualcomm/CMakeFiles/qnn_device.dir/runtime/backends/htpbackend/aarch64/HtpDevicePlatformInfoConfig.cpp.o
[ 48%] Building CXX object extension/module/CMakeFiles/extension_module.dir/module.cpp.o
[ 48%] Linking CXX static library libqnn_custom_protocol.a
[ 48%] Built target qnn_custom_protocol
[ 48%] Building CXX object extension/module/CMakeFiles/extension_module_static.dir/module.cpp.o
[ 48%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_arange.cpp.o
[ 48%] Linking CXX static library libbundled_program.a
[ 49%] Linking CXX static library libetdump.a
[ 49%] Built target bundled_program
[ 49%] Building CXX object backends/qualcomm/CMakeFiles/qnn_device.dir/runtime/backends/htpbackend/aarch64/HtpDeviceCustomConfig.cpp.o
[ 49%] Built target etdump
[ 50%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_argmax.cpp.o
[ 50%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_argmin.cpp.o
[ 51%] Linking CXX static library libqnn_backend_cache.a
[ 51%] Linking CXX static library libqnn_backend.a
[ 51%] Built target qnn_backend_cache
[ 51%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_as_strided_copy.cpp.o
[ 51%] Built target qnn_backend
[ 51%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_asin.cpp.o
[ 52%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_asinh.cpp.o
[ 52%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_atan.cpp.o
[ 52%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_atan2.cpp.o
[ 52%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_atanh.cpp.o
[ 53%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_avg_pool2d.cpp.o
[ 53%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_bitwise_and.cpp.o
[ 53%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_bitwise_not.cpp.o
[ 53%] Linking CXX static library libqnn_device.a
[ 53%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_bitwise_or.cpp.o
[ 54%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_bitwise_xor.cpp.o
[ 54%] Built target qnn_device
[ 54%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_bmm.cpp.o
[ 54%] Building CXX object backends/qualcomm/CMakeFiles/qnn_context.dir/runtime/backends/QnnContextCommon.cpp.o
[ 54%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_cat.cpp.o
[ 54%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_cdist_forward.cpp.o
[ 54%] Building CXX object backends/qualcomm/CMakeFiles/qnn_context.dir/runtime/backends/htpbackend/HtpContext.cpp.o
[ 55%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_ceil.cpp.o
[ 55%] Building CXX object backends/qualcomm/CMakeFiles/qnn_context.dir/runtime/backends/htpbackend/aarch64/HtpContextCustomConfig.cpp.o
[ 55%] Linking CXX static library libextension_module.a
[ 55%] Built target extension_module
[ 55%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_clamp.cpp.o
[ 55%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_clone.cpp.o
[ 56%] Linking CXX static library libextension_module_static.a
[ 56%] Built target extension_module_static
[ 56%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_constant_pad_nd.cpp.o
[ 57%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_convolution.cpp.o
[ 57%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_convolution_backward.cpp.o
[ 57%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_copy.cpp.o
[ 57%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_cos.cpp.o
[ 58%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_cosh.cpp.o
[ 58%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_cumsum.cpp.o
[ 58%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_detach_copy.cpp.o
[ 58%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_diagonal_copy.cpp.o
[ 59%] Linking CXX static library libqnn_context.a
[ 59%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_div.cpp.o
[ 60%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_embedding.cpp.o
[ 60%] Built target qnn_context
[ 60%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_empty.cpp.o
[ 60%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_eq.cpp.o
[ 60%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_erf.cpp.o
[ 60%] Building CXX object backends/qualcomm/CMakeFiles/qnn_graph.dir/runtime/backends/QnnGraphCommon.cpp.o
[ 60%] Building CXX object backends/qualcomm/CMakeFiles/qnn_graph.dir/runtime/backends/htpbackend/HtpGraph.cpp.o
[ 61%] Building CXX object backends/qualcomm/CMakeFiles/qnn_graph.dir/runtime/backends/htpbackend/HtpGraphCustomConfig.cpp.o
[ 61%] Building CXX object backends/qualcomm/CMakeFiles/qnn_graph.dir/runtime/backends/htpbackend/aarch64/HtpGraphCustomConfig.cpp.o
[ 62%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_exp.cpp.o
[ 62%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_expand_copy.cpp.o
[ 62%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_expm1.cpp.o
[ 62%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_fill.cpp.o
[ 63%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_flip.cpp.o
[ 63%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_floor.cpp.o
[ 63%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_fmod.cpp.o
[ 63%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_floor_divide.cpp.o
[ 63%] Building CXX object backends/qualcomm/CMakeFiles/qnn_mem_manager.dir/runtime/backends/QnnMemManager.cpp.o
[ 64%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_full.cpp.o
[ 64%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_full_like.cpp.o
[ 64%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_gather.cpp.o
[ 64%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_ge.cpp.o
[ 65%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_gelu.cpp.o
[ 65%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_glu.cpp.o
[ 65%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_gt.cpp.o
[ 65%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_hardtanh.cpp.o
[ 66%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_index.cpp.o
[ 66%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_index_put.cpp.o
[ 66%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_index_select.cpp.o
[ 66%] Linking CXX static library libqnn_graph.a
[ 66%] Built target qnn_graph
[ 66%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_isinf.cpp.o
[ 67%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_isnan.cpp.o
[ 67%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_le.cpp.o
[ 67%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_leaky_relu.cpp.o
[ 67%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_lift_fresh_copy.cpp.o
[ 68%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_linear_scratch_example.cpp.o
[ 68%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_log.cpp.o
[ 68%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_log10.cpp.o
[ 68%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_log1p.cpp.o
[ 69%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_log2.cpp.o
[ 69%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_log_softmax.cpp.o
[ 69%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_logical_and.cpp.o
[ 69%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_logical_not.cpp.o
[ 70%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_logical_or.cpp.o
[ 70%] Linking CXX static library libqnn_mem_manager.a
[ 70%] Built target qnn_mem_manager
[ 70%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_logical_xor.cpp.o
[ 71%] Building CXX object backends/qualcomm/CMakeFiles/qnn_factory.dir/runtime/backends/QnnBackendFactory.cpp.o
[ 71%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_logit.cpp.o
[ 71%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_lt.cpp.o
[ 72%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_masked_fill.cpp.o
[ 72%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_masked_scatter.cpp.o
[ 72%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_masked_select.cpp.o
[ 72%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_max.cpp.o
[ 73%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_max_pool2d_with_indices.cpp.o
[ 73%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_maximum.cpp.o
[ 73%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_mean.cpp.o
[ 73%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_min.cpp.o
[ 74%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_minimum.cpp.o
[ 74%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_mm.cpp.o
[ 74%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_mul.cpp.o
[ 74%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_narrow_copy.cpp.o
[ 75%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_native_batch_norm.cpp.o
[ 75%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_native_group_norm.cpp.o
[ 75%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_native_layer_norm.cpp.o
[ 75%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_ne.cpp.o
[ 76%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_neg.cpp.o
[ 76%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_nonzero.cpp.o
[ 76%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_ones.cpp.o
[ 76%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_pdist_forward.cpp.o
[ 77%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_permute_copy.cpp.o
[ 77%] Linking CXX static library libqnn_factory.a
[ 77%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_pixel_shuffle.cpp.o
[ 77%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_pixel_unshuffle.cpp.o
[ 77%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_pow.cpp.o
[ 77%] Built target qnn_factory
[ 78%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_prod.cpp.o
[ 78%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_reciprocal.cpp.o
[ 78%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_reflection_pad1d.cpp.o
[ 78%] Building CXX object backends/qualcomm/CMakeFiles/qnn_manager.dir/runtime/QnnManager.cpp.o
[ 78%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_reflection_pad2d.cpp.o
[ 79%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_reflection_pad3d.cpp.o
[ 79%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_relu.cpp.o
[ 79%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_remainder.cpp.o
[ 79%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_repeat.cpp.o
[ 80%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_repeat_interleave.cpp.o
[ 80%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_replication_pad1d.cpp.o
[ 81%] Building CXX object backends/qualcomm/CMakeFiles/qnn_manager.dir/aot/wrappers/TensorWrapper.cpp.o
[ 81%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_replication_pad2d.cpp.o
[ 81%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_replication_pad3d.cpp.o
[ 82%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_roll.cpp.o
[ 82%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_round.cpp.o
[ 82%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_rsqrt.cpp.o
[ 82%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_rsub.cpp.o
[ 83%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_scalar_tensor.cpp.o
[ 83%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_scatter.cpp.o
[ 83%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_scatter_add.cpp.o
[ 83%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_select_copy.cpp.o
[ 84%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_select_scatter.cpp.o
[ 84%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_sign.cpp.o
[ 84%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_sigmoid.cpp.o
[ 84%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_sin.cpp.o
[ 85%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_sinh.cpp.o
[ 85%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_slice_copy.cpp.o
[ 85%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_slice_scatter.cpp.o
[ 85%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_softmax.cpp.o
[ 86%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_split_copy.cpp.o
[ 86%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_split_with_sizes_copy.cpp.o
[ 86%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_sqrt.cpp.o
[ 86%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_squeeze_copy.cpp.o
[ 87%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_stack.cpp.o
[ 87%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_sub.cpp.o
[ 87%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_sum.cpp.o
[ 87%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_t_copy.cpp.o
[ 88%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_tan.cpp.o
[ 88%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_tanh.cpp.o
[ 88%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_to_copy.cpp.o
[ 88%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_topk.cpp.o
[ 89%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_transpose_copy.cpp.o
[ 89%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_tril.cpp.o
[ 89%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_trunc.cpp.o
[ 89%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_unbind_copy.cpp.o
[ 90%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_unsqueeze_copy.cpp.o
[ 90%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_upsample_bilinear2d.cpp.o
[ 90%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_upsample_nearest2d.cpp.o
[ 90%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_var.cpp.o
[ 91%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_view_copy.cpp.o
[ 91%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_where.cpp.o
[ 91%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_zeros.cpp.o
[ 91%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/pattern/unary_ufunc_realh.cpp.o
[ 92%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/pattern/unary_ufunc_realhb_to_bool.cpp.o
[ 92%] Linking CXX static library libqnn_manager.a
[ 92%] Built target qnn_manager
[ 92%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/pattern/unary_ufunc_realhbbf16_to_floathbf16.cpp.o
[ 93%] Building CXX object backends/qualcomm/CMakeFiles/qnn_executorch_backend.dir/runtime/QnnExecuTorchBackend.cpp.o
[ 93%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/util/activation_ops_util.cpp.o
[ 93%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/util/advanced_index_util.cpp.o
[ 94%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/util/broadcast_util.cpp.o
[ 94%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/util/copy_ops_util.cpp.o
[ 94%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/util/distance_util.cpp.o
[ 94%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/util/dtype_util.cpp.o
[ 95%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/util/index_util.cpp.o
[ 95%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/util/kernel_ops_util.cpp.o
[ 95%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/util/matmul_ops_util.cpp.o
[ 95%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/util/normalization_ops_util.cpp.o
[ 96%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/util/padding_util.cpp.o
[ 96%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/util/reduce_util.cpp.o
[ 96%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/util/repeat_util.cpp.o
[ 97%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/util/slice_util.cpp.o
[ 97%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/util/select_copy_util.cpp.o
[ 97%] Building CXX object kernels/portable/CMakeFiles/portable_kernels.dir/cpu/util/upsample_util.cpp.o
[ 97%] Linking CXX shared library libqnn_executorch_backend.so
[ 97%] Built target qnn_executorch_backend
[ 97%] Linking CXX static library libportable_kernels.a
[ 97%] Built target portable_kernels
[ 98%] Generating selected_operators.yaml for portable_ops_lib
[ 98%] Generating code for kernel registration
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/root/miniconda3/envs/et_qnn/lib/python3.12/site-packages/torchgen/gen_executorch.py", line 1000, in <module>
    main()
  File "/root/miniconda3/envs/et_qnn/lib/python3.12/site-packages/torchgen/gen_executorch.py", line 938, in main
    parsed_yaml, custom_ops_parsed_yaml = parse_yaml_files(
                                          ^^^^^^^^^^^^^^^^^
  File "/root/miniconda3/envs/et_qnn/lib/python3.12/site-packages/torchgen/gen_executorch.py", line 796, in parse_yaml_files
    translate_native_yaml(
  File "/root/miniconda3/envs/et_qnn/lib/python3.12/site-packages/torchgen/gen_executorch.py", line 648, in translate_native_yaml
    native_functions, persisted_fields = parse_et_yaml(
                                         ^^^^^^^^^^^^^^
  File "/root/miniconda3/envs/et_qnn/lib/python3.12/site-packages/torchgen/executorch/parse.py", line 129, in parse_et_yaml
    with open(path) as f:
         ^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/torchgen/packaged/ATen/native/native_functions.yaml'
gmake[2]: *** [kernels/portable/CMakeFiles/portable_ops_lib.dir/build.make:84: kernels/portable/portable_ops_lib/RegisterCodegenUnboxedKernelsEverything.cpp] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:1005: kernels/portable/CMakeFiles/portable_ops_lib.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2

Versions

PyTorch version: N/A
Is debug build: N/A
CUDA used to build PyTorch: N/A
ROCM used to build PyTorch: N/A

OS: Ubuntu 22.04.3 LTS (x86_64)
GCC version: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Clang version: Could not collect
CMake version: version 3.31.4
Libc version: glibc-2.35

Python version: 3.12.8 | packaged by Anaconda, Inc. | (main, Dec 11 2024, 16:31:09) [GCC 11.2.0] (64-bit runtime)
Python platform: Linux-5.15.0-91-generic-x86_64-with-glibc2.35
Is CUDA available: N/A
CUDA runtime version: 12.2.140
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration:
GPU 0: NVIDIA GeForce RTX 3090
GPU 1: NVIDIA GeForce RTX 3090
GPU 2: NVIDIA GeForce RTX 3090
GPU 3: NVIDIA GeForce RTX 3090
GPU 4: NVIDIA GeForce RTX 3090
GPU 5: NVIDIA GeForce RTX 3090
GPU 6: NVIDIA GeForce RTX 3090
GPU 7: NVIDIA GeForce RTX 3090

Nvidia driver version: 525.147.05
cuDNN version: Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.8.9.5
/usr/lib/x86_64-linux-gnu/libcudnn_adv_infer.so.8.9.5
/usr/lib/x86_64-linux-gnu/libcudnn_adv_train.so.8.9.5
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_infer.so.8.9.5
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_train.so.8.9.5
/usr/lib/x86_64-linux-gnu/libcudnn_ops_infer.so.8.9.5
/usr/lib/x86_64-linux-gnu/libcudnn_ops_train.so.8.9.5
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: N/A

CPU:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 46 bits physical, 57 bits virtual
Byte Order: Little Endian
CPU(s): 112
On-line CPU(s) list: 0-111
Vendor ID: GenuineIntel
Model name: Intel(R) Xeon(R) Gold 6348 CPU @ 2.60GHz
CPU family: 6
Model: 106
Thread(s) per core: 2
Core(s) per socket: 28
Socket(s): 2
Stepping: 6
CPU max MHz: 3500.0000
CPU min MHz: 800.0000
BogoMIPS: 5200.00
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 invpcid_single intel_ppin ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local split_lock_detect wbnoinvd dtherm ida arat pln pts hwp hwp_act_window hwp_epp hwp_pkg_req avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg tme avx512_vpopcntdq la57 rdpid fsrm md_clear pconfig flush_l1d arch_capabilities
Virtualization: VT-x
L1d cache: 2.6 MiB (56 instances)
L1i cache: 1.8 MiB (56 instances)
L2 cache: 70 MiB (56 instances)
L3 cache: 84 MiB (2 instances)
NUMA node(s): 2
NUMA node0 CPU(s): 0-27,56-83
NUMA node1 CPU(s): 28-55,84-111
Vulnerability Gather data sampling: Mitigation; Microcode
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Mitigation; Clear CPU buffers; SMT vulnerable
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2: Mitigation; Enhanced IBRS, IBPB conditional, RSB filling, PBRSB-eIBRS SW sequence
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Not affected

Versions of relevant libraries:
[pip3] numpy==2.2.1
[pip3] torch==2.6.0.dev20250104+cpu
[pip3] torchao==0.7.0.dev20241112+cu121
[pip3] torchaudio==2.6.0.dev20250104+cpu
[pip3] torchsr==1.0.4
[pip3] torchvision==0.22.0.dev20250104+cpu
[conda] numpy 2.2.1 pypi_0 pypi
[conda] torch 2.6.0.dev20250104+cpu pypi_0 pypi
[conda] torchao 0.7.0.dev20241112+cu121 pypi_0 pypi
[conda] torchaudio 2.6.0.dev20250104+cpu pypi_0 pypi
[conda] torchsr 1.0.4 pypi_0 pypi
[conda] torchvision 0.22.0.dev20250104+cpu pypi_0 pypi

@mcr229
Copy link
Contributor

mcr229 commented Jan 15, 2025

this looks like a problem in the CMake for building the portable operator library, are you able to build the executor_runner fine?
https://pytorch.org/executorch/stable/runtime-build-and-cross-compilation.html

@mcr229 mcr229 self-assigned this Jan 15, 2025
@mcr229 mcr229 added bug Something isn't working module: build Related to buck2 and cmake build triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module labels Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working module: build Related to buck2 and cmake build triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

No branches or pull requests

2 participants