pytorch / pytorch/executorch

Unable to compile android runtime executable file

Open
#6,086 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

module: build/install triaged
Dominant language
Python
Stars
5k
Forks
1.2k
Avg merge
2d 10h
Merged PRs (30d)
581

Description

🐛 Describe the bug

CMake Error at CMakeLists.txt:273 (add_subdirectory):
The source directory

D:/xxxxxx/executorch/backends/xnnpack/third-party/cpuinfo

does not contain a CMakeLists.txt file.

CMake Error at CMakeLists.txt:308 (add_subdirectory):
The source directory

D:/xxxxxx/executorch/backends/xnnpack/third-party/pthreadpool

does not contain a CMakeLists.txt file.

Using python executable 'python3'
CMake Warning at build/Utils.cmake:264 (message):
Failed to resolve buck2.
Call Stack (most recent call first):
CMakeLists.txt:331 (resolve_buck2)

CMake Warning at build/Utils.cmake:265 (message):
Call Stack (most recent call first):
CMakeLists.txt:331 (resolve_buck2)

Killing buck2 daemon
executorch: Generating source lists
executorch: Generating source file list D:/xxxxxx/executorch_srcs.cmake
Error while generating D:/xxxxxx/executorch_srcs.cmake. Exit code: 9009
Output:

Error:

CMake Error at build/Utils.cmake:216 (message):
executorch: source list generation failed
Call Stack (most recent call first):
CMakeLists.txt:340 (extract_sources)

Configuring incomplete, errors occurred!

Versions

executorch : 0.4.0
CMake : 3.30.4
System : window 11

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with CMakeLists.txt at lines 273, 308, 331, and 340, then inspect build/Utils.cmake at lines 216, 264, and 265. Check why the cpuinfo and pthreadpool directories lack CMakeLists.txt and why buck2 resolution fails on Windows; done means Android runtime configuration completes and executorch_srcs.cmake is generated successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, cmake
Domain
build-system, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.