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

Windows build failure: Failed to query buck for sources. #9616

Open
cavusmustafa opened this issue Mar 25, 2025 · 10 comments
Open

Windows build failure: Failed to query buck for sources. #9616

cavusmustafa opened this issue Mar 25, 2025 · 10 comments
Assignees
Labels
module: build/install Issues related to the cmake and buck2 builds, and to installing ExecuTorch

Comments

@cavusmustafa
Copy link
Contributor

cavusmustafa commented Mar 25, 2025

🐛 Describe the bug

The issue is observed while building Executorch on Windows.

Followed the installation steps provided in the PR: #9198

Error message:

2025-03-25 14:57:38,809 [ExecuTorch] INFO: All required submodules are present.
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/nightly/cpu
Requirement already satisfied: torch==2.7.0.dev20250311 in c:\users\openvino team\workspace\env\lib\site-packages (2.7.0.dev20250311+cpu)
Requirement already satisfied: torchvision==0.22.0.dev20250311 in c:\users\openvino team\workspace\env\lib\site-packages (0.22.0.dev20250311+cpu)
Requirement already satisfied: torchaudio==2.6.0.dev20250311 in c:\users\openvino team\workspace\env\lib\site-packages (2.6.0.dev20250311+cpu)
Requirement already satisfied: timm==1.0.7 in c:\users\openvino team\workspace\env\lib\site-packages (from -r requirements-examples.txt (line 3)) (1.0.7)
Requirement already satisfied: torchsr==1.0.4 in c:\users\openvino team\workspace\env\lib\site-packages (from -r requirements-examples.txt (line 4)) (1.0.4)
Requirement already satisfied: transformers==4.47.1 in c:\users\openvino team\workspace\env\lib\site-packages (from -r requirements-examples.txt (line 5)) (4.47.1)
Requirement already satisfied: cmake>=3.19 in c:\users\openvino team\workspace\env\lib\site-packages (from -r requirements-dev.txt (line 1)) (3.31.6)
Requirement already satisfied: pip>=23 in c:\users\openvino team\workspace\env\lib\site-packages (from -r requirements-dev.txt (line 2)) (25.0.1)
Requirement already satisfied: pyyaml in c:\users\openvino team\workspace\env\lib\site-packages (from -r requirements-dev.txt (line 3)) (6.0.2)
Requirement already satisfied: setuptools>=63 in c:\users\openvino team\workspace\env\lib\site-packages (from -r requirements-dev.txt (line 4)) (65.5.0)
Requirement already satisfied: tomli in c:\users\openvino team\workspace\env\lib\site-packages (from -r requirements-dev.txt (line 5)) (2.2.1)
Requirement already satisfied: wheel in c:\users\openvino team\workspace\env\lib\site-packages (from -r requirements-dev.txt (line 6)) (0.45.1)
Requirement already satisfied: zstd in c:\users\openvino team\workspace\env\lib\site-packages (from -r requirements-dev.txt (line 7)) (1.5.6.6)
Requirement already satisfied: filelock in c:\users\openvino team\workspace\env\lib\site-packages (from torch==2.7.0.dev20250311) (3.18.0)
Requirement already satisfied: typing-extensions>=4.10.0 in c:\users\openvino team\workspace\env\lib\site-packages (from torch==2.7.0.dev20250311) (4.12.2)
Requirement already satisfied: sympy>=1.13.3 in c:\users\openvino team\workspace\env\lib\site-packages (from torch==2.7.0.dev20250311) (1.13.3)
Requirement already satisfied: networkx in c:\users\openvino team\workspace\env\lib\site-packages (from torch==2.7.0.dev20250311) (3.4.2)
Requirement already satisfied: jinja2 in c:\users\openvino team\workspace\env\lib\site-packages (from torch==2.7.0.dev20250311) (3.1.6)
Requirement already satisfied: fsspec in c:\users\openvino team\workspace\env\lib\site-packages (from torch==2.7.0.dev20250311) (2025.3.0)
Requirement already satisfied: numpy in c:\users\openvino team\workspace\env\lib\site-packages (from torchvision==0.22.0.dev20250311) (2.2.4)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in c:\users\openvino team\workspace\env\lib\site-packages (from torchvision==0.22.0.dev20250311) (11.1.0)
Requirement already satisfied: huggingface_hub in c:\users\openvino team\workspace\env\lib\site-packages (from timm==1.0.7->-r requirements-examples.txt (line 3)) (0.29.3)
Requirement already satisfied: safetensors in c:\users\openvino team\workspace\env\lib\site-packages (from timm==1.0.7->-r requirements-examples.txt (line 3)) (0.5.3)
Requirement already satisfied: packaging>=20.0 in c:\users\openvino team\workspace\env\lib\site-packages (from transformers==4.47.1->-r requirements-examples.txt (line 5)) (24.2)
Requirement already satisfied: regex!=2019.12.17 in c:\users\openvino team\workspace\env\lib\site-packages (from transformers==4.47.1->-r requirements-examples.txt (line 5)) (2024.11.6)
Requirement already satisfied: requests in c:\users\openvino team\workspace\env\lib\site-packages (from transformers==4.47.1->-r requirements-examples.txt (line 5)) (2.32.3)
Requirement already satisfied: tokenizers<0.22,>=0.21 in c:\users\openvino team\workspace\env\lib\site-packages (from transformers==4.47.1->-r requirements-examples.txt (line 5)) (0.21.1)
Requirement already satisfied: tqdm>=4.27 in c:\users\openvino team\workspace\env\lib\site-packages (from transformers==4.47.1->-r requirements-examples.txt (line 5)) (4.67.1)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in c:\users\openvino team\workspace\env\lib\site-packages (from sympy>=1.13.3->torch==2.7.0.dev20250311) (1.3.0)
Requirement already satisfied: colorama in c:\users\openvino team\workspace\env\lib\site-packages (from tqdm>=4.27->transformers==4.47.1->-r requirements-examples.txt (line 5)) (0.4.6)
Requirement already satisfied: MarkupSafe>=2.0 in c:\users\openvino team\workspace\env\lib\site-packages (from jinja2->torch==2.7.0.dev20250311) (3.0.2)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\openvino team\workspace\env\lib\site-packages (from requests->transformers==4.47.1->-r requirements-examples.txt (line 5)) (3.4.1)
Requirement already satisfied: idna<4,>=2.5 in c:\users\openvino team\workspace\env\lib\site-packages (from requests->transformers==4.47.1->-r requirements-examples.txt (line 5)) (3.10)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\openvino team\workspace\env\lib\site-packages (from requests->transformers==4.47.1->-r requirements-examples.txt (line 5)) (2.3.0)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\openvino team\workspace\env\lib\site-packages (from requests->transformers==4.47.1->-r requirements-examples.txt (line 5)) (2025.1.31)
Processing c:\users\openvino team\workspace\executorch\third-party\ao
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: torchao
  Building wheel for torchao (setup.py) ... done
  Created wheel for torchao: filename=torchao-0.10.0+git64bcf4c2-py3-none-any.whl size=766660 sha256=a2385c57c941ffd50eaa7dc13c3cae739c47e13ca6d29bc2ffee7747a3be35b9
  Stored in directory: C:\Users\OpenVINO Team\AppData\Local\Temp\pip-ephem-wheel-cache-pue7bmht\wheels\41\5a\ff\9069872f1cf805b8ab71460682fa6aac73c77fc95d9e0a5757
Successfully built torchao
Installing collected packages: torchao
  Attempting uninstall: torchao
    Found existing installation: torchao 0.10.0+git64bcf4c2
    Uninstalling torchao-0.10.0+git64bcf4c2:
      Successfully uninstalled torchao-0.10.0+git64bcf4c2
Successfully installed torchao-0.10.0+git64bcf4c2
Using pip 25.0.1 from C:\Users\OpenVINO Team\Workspace\env\lib\site-packages\pip (python 3.10)
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/nightly/cpu
Processing c:\users\openvino team\workspace\executorch
  Running command Preparing metadata (pyproject.toml)
  C:\Users\OpenVINO Team\Workspace\env\lib\site-packages\setuptools\config\pyprojecttoml.py:108: _BetaConfiguration: Support for `[tool.setuptools]` in `pyproject.toml` is still *beta*.
    warnings.warn(msg, _BetaConfiguration)
  running dist_info
  creating C:\Users\OpenVINO Team\AppData\Local\Temp\pip-modern-metadata-4sq43c4h\executorch.egg-info
  writing C:\Users\OpenVINO Team\AppData\Local\Temp\pip-modern-metadata-4sq43c4h\executorch.egg-info\PKG-INFO
  writing dependency_links to C:\Users\OpenVINO Team\AppData\Local\Temp\pip-modern-metadata-4sq43c4h\executorch.egg-info\dependency_links.txt
  writing entry points to C:\Users\OpenVINO Team\AppData\Local\Temp\pip-modern-metadata-4sq43c4h\executorch.egg-info\entry_points.txt
  writing requirements to C:\Users\OpenVINO Team\AppData\Local\Temp\pip-modern-metadata-4sq43c4h\executorch.egg-info\requires.txt
  writing top-level names to C:\Users\OpenVINO Team\AppData\Local\Temp\pip-modern-metadata-4sq43c4h\executorch.egg-info\top_level.txt
  writing manifest file 'C:\Users\OpenVINO Team\AppData\Local\Temp\pip-modern-metadata-4sq43c4h\executorch.egg-info\SOURCES.txt'
  reading manifest file 'C:\Users\OpenVINO Team\AppData\Local\Temp\pip-modern-metadata-4sq43c4h\executorch.egg-info\SOURCES.txt'
  adding license file 'LICENSE'
  writing manifest file 'C:\Users\OpenVINO Team\AppData\Local\Temp\pip-modern-metadata-4sq43c4h\executorch.egg-info\SOURCES.txt'
  creating 'C:\Users\OpenVINO Team\AppData\Local\Temp\pip-modern-metadata-4sq43c4h\executorch-0.6.0a0+90f0843.dist-info'
  Preparing metadata (pyproject.toml) ... done
Collecting expecttest (from executorch==0.6.0a0+90f0843)
  Obtaining dependency information for expecttest from https://files.pythonhosted.org/packages/27/fb/deeefea1ea549273817ca7bed3db2f39cc238a75a745a20e3651619f7335/expecttest-0.3.0-py3-none-any.whl.metadata
  Using cached expecttest-0.3.0-py3-none-any.whl.metadata (3.8 kB)
Collecting flatbuffers (from executorch==0.6.0a0+90f0843)
  Obtaining dependency information for flatbuffers from https://files.pythonhosted.org/packages/b8/25/155f9f080d5e4bc0082edfda032ea2bc2b8fab3f4d25d46c1e9dd22a1a89/flatbuffers-25.2.10-py2.py3-none-any.whl.metadata
  Using cached flatbuffers-25.2.10-py2.py3-none-any.whl.metadata (875 bytes)
Collecting hypothesis (from executorch==0.6.0a0+90f0843)
  Obtaining dependency information for hypothesis from https://files.pythonhosted.org/packages/5c/d4/5a0c46cc8d266626cdc8082f07f836fa4a96e8715002de69be46ed406d1d/hypothesis-6.130.4-py3-none-any.whl.metadata
  Using cached hypothesis-6.130.4-py3-none-any.whl.metadata (5.7 kB)
Requirement already satisfied: mpmath==1.3.0 in c:\users\openvino team\workspace\env\lib\site-packages (from executorch==0.6.0a0+90f0843) (1.3.0)
Requirement already satisfied: packaging in c:\users\openvino team\workspace\env\lib\site-packages (from executorch==0.6.0a0+90f0843) (24.2)
Collecting parameterized (from executorch==0.6.0a0+90f0843)
  Obtaining dependency information for parameterized from https://files.pythonhosted.org/packages/00/2f/804f58f0b856ab3bf21617cccf5b39206e6c4c94c2cd227bde125ea6105f/parameterized-0.9.0-py2.py3-none-any.whl.metadata
  Using cached parameterized-0.9.0-py2.py3-none-any.whl.metadata (18 kB)
Collecting pytest (from executorch==0.6.0a0+90f0843)
  Obtaining dependency information for pytest from https://files.pythonhosted.org/packages/30/3d/64ad57c803f1fa1e963a7946b6e0fea4a70df53c1a7fed304586539c2bac/pytest-8.3.5-py3-none-any.whl.metadata
  Using cached pytest-8.3.5-py3-none-any.whl.metadata (7.6 kB)
Collecting pytest-xdist (from executorch==0.6.0a0+90f0843)
  Obtaining dependency information for pytest-xdist from https://files.pythonhosted.org/packages/6d/82/1d96bf03ee4c0fdc3c0cbe61470070e659ca78dc0086fb88b66c185e2449/pytest_xdist-3.6.1-py3-none-any.whl.metadata
  Using cached pytest_xdist-3.6.1-py3-none-any.whl.metadata (4.3 kB)
Collecting pytest-rerunfailures (from executorch==0.6.0a0+90f0843)
  Obtaining dependency information for pytest-rerunfailures from https://files.pythonhosted.org/packages/89/37/54e5ffc7c0cebee7cf30a3ac5915faa7e7abf8bdfdf3228c277f7c192489/pytest_rerunfailures-15.0-py3-none-any.whl.metadata
  Using cached pytest_rerunfailures-15.0-py3-none-any.whl.metadata (19 kB)
Requirement already satisfied: pyyaml in c:\users\openvino team\workspace\env\lib\site-packages (from executorch==0.6.0a0+90f0843) (6.0.2)
Collecting ruamel.yaml (from executorch==0.6.0a0+90f0843)
  Obtaining dependency information for ruamel.yaml from https://files.pythonhosted.org/packages/c2/36/dfc1ebc0081e6d39924a2cc53654497f967a084a436bb64402dfce4254d9/ruamel.yaml-0.18.10-py3-none-any.whl.metadata
  Using cached ruamel.yaml-0.18.10-py3-none-any.whl.metadata (23 kB)
Requirement already satisfied: sympy in c:\users\openvino team\workspace\env\lib\site-packages (from executorch==0.6.0a0+90f0843) (1.13.3)
Collecting tabulate (from executorch==0.6.0a0+90f0843)
  Obtaining dependency information for tabulate from https://files.pythonhosted.org/packages/40/44/4a5f08c96eb108af5cb50b41f76142f0afa346dfa99d5296fe7202a11854/tabulate-0.9.0-py3-none-any.whl.metadata
  Using cached tabulate-0.9.0-py3-none-any.whl.metadata (34 kB)
Requirement already satisfied: typing-extensions in c:\users\openvino team\workspace\env\lib\site-packages (from executorch==0.6.0a0+90f0843) (4.12.2)
Requirement already satisfied: numpy>=2.0.0 in c:\users\openvino team\workspace\env\lib\site-packages (from executorch==0.6.0a0+90f0843) (2.2.4)
Collecting pandas>=2.2.2 (from executorch==0.6.0a0+90f0843)
  Using cached https://download.pytorch.org/whl/nightly/pandas-2.2.3-cp310-cp310-win_amd64.whl (11.6 MB)
Collecting python-dateutil>=2.8.2 (from pandas>=2.2.2->executorch==0.6.0a0+90f0843)
  Obtaining dependency information for python-dateutil>=2.8.2 from https://files.pythonhosted.org/packages/ec/57/56b9bcc3c9c6a792fcbaf139543cee77261f3651ca9da0c93f5c1221264b/python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata
  Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting pytz>=2020.1 (from pandas>=2.2.2->executorch==0.6.0a0+90f0843)
  Obtaining dependency information for pytz>=2020.1 from https://files.pythonhosted.org/packages/81/c4/34e93fe5f5429d7570ec1fa436f1986fb1f00c3e0f43a589fe2bbcd22c3f/pytz-2025.2-py2.py3-none-any.whl.metadata
  Using cached pytz-2025.2-py2.py3-none-any.whl.metadata (22 kB)
Collecting tzdata>=2022.7 (from pandas>=2.2.2->executorch==0.6.0a0+90f0843)
  Obtaining dependency information for tzdata>=2022.7 from https://files.pythonhosted.org/packages/5c/23/c7abc0ca0a1526a0774eca151daeb8de62ec457e77262b66b359c3c7679e/tzdata-2025.2-py2.py3-none-any.whl.metadata
  Using cached tzdata-2025.2-py2.py3-none-any.whl.metadata (1.4 kB)
Collecting attrs>=22.2.0 (from hypothesis->executorch==0.6.0a0+90f0843)
  Obtaining dependency information for attrs>=22.2.0 from https://files.pythonhosted.org/packages/77/06/bb80f5f86020c4551da315d78b3ab75e8228f89f0162f2c3a819e407941a/attrs-25.3.0-py3-none-any.whl.metadata
  Using cached attrs-25.3.0-py3-none-any.whl.metadata (10 kB)
Collecting exceptiongroup>=1.0.0 (from hypothesis->executorch==0.6.0a0+90f0843)
  Obtaining dependency information for exceptiongroup>=1.0.0 from https://files.pythonhosted.org/packages/02/cc/b7e31358aac6ed1ef2bb790a9746ac2c69bcb3c8588b41616914eb106eaf/exceptiongroup-1.2.2-py3-none-any.whl.metadata
  Using cached exceptiongroup-1.2.2-py3-none-any.whl.metadata (6.6 kB)
Collecting sortedcontainers<3.0.0,>=2.1.0 (from hypothesis->executorch==0.6.0a0+90f0843)
  Obtaining dependency information for sortedcontainers<3.0.0,>=2.1.0 from https://files.pythonhosted.org/packages/32/46/9cb0e58b2deb7f82b84065f37f3bffeb12413f947f9388e4cac22c4621ce/sortedcontainers-2.4.0-py2.py3-none-any.whl.metadata
  Using cached sortedcontainers-2.4.0-py2.py3-none-any.whl.metadata (10 kB)
Requirement already satisfied: colorama in c:\users\openvino team\workspace\env\lib\site-packages (from pytest->executorch==0.6.0a0+90f0843) (0.4.6)
Collecting iniconfig (from pytest->executorch==0.6.0a0+90f0843)
  Obtaining dependency information for iniconfig from https://files.pythonhosted.org/packages/2c/e1/e6716421ea10d38022b952c159d5161ca1193197fb744506875fbb87ea7b/iniconfig-2.1.0-py3-none-any.whl.metadata
  Using cached iniconfig-2.1.0-py3-none-any.whl.metadata (2.7 kB)
Collecting pluggy<2,>=1.5 (from pytest->executorch==0.6.0a0+90f0843)
  Obtaining dependency information for pluggy<2,>=1.5 from https://files.pythonhosted.org/packages/88/5f/e351af9a41f866ac3f1fac4ca0613908d9a41741cfcf2228f4ad853b697d/pluggy-1.5.0-py3-none-any.whl.metadata
  Using cached pluggy-1.5.0-py3-none-any.whl.metadata (4.8 kB)
Requirement already satisfied: tomli>=1 in c:\users\openvino team\workspace\env\lib\site-packages (from pytest->executorch==0.6.0a0+90f0843) (2.2.1)
Collecting execnet>=2.1 (from pytest-xdist->executorch==0.6.0a0+90f0843)
  Obtaining dependency information for execnet>=2.1 from https://files.pythonhosted.org/packages/43/09/2aea36ff60d16dd8879bdb2f5b3ee0ba8d08cbbdcdfe870e695ce3784385/execnet-2.1.1-py3-none-any.whl.metadata
  Using cached execnet-2.1.1-py3-none-any.whl.metadata (2.9 kB)
Collecting ruamel.yaml.clib>=0.2.7 (from ruamel.yaml->executorch==0.6.0a0+90f0843)
  Obtaining dependency information for ruamel.yaml.clib>=0.2.7 from https://files.pythonhosted.org/packages/3a/65/fa39d74db4e2d0cd252355732d966a460a41cd01c6353b820a0952432839/ruamel.yaml.clib-0.2.12-cp310-cp310-win_amd64.whl.metadata
  Using cached ruamel.yaml.clib-0.2.12-cp310-cp310-win_amd64.whl.metadata (2.8 kB)
Collecting six>=1.5 (from python-dateutil>=2.8.2->pandas>=2.2.2->executorch==0.6.0a0+90f0843)
  Obtaining dependency information for six>=1.5 from https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl.metadata
  Using cached six-1.17.0-py2.py3-none-any.whl.metadata (1.7 kB)
Using cached expecttest-0.3.0-py3-none-any.whl (8.2 kB)
Using cached flatbuffers-25.2.10-py2.py3-none-any.whl (30 kB)
Using cached hypothesis-6.130.4-py3-none-any.whl (491 kB)
Using cached parameterized-0.9.0-py2.py3-none-any.whl (20 kB)
Using cached pytest-8.3.5-py3-none-any.whl (343 kB)
Using cached pytest_rerunfailures-15.0-py3-none-any.whl (13 kB)
Using cached pytest_xdist-3.6.1-py3-none-any.whl (46 kB)
Using cached ruamel.yaml-0.18.10-py3-none-any.whl (117 kB)
Using cached tabulate-0.9.0-py3-none-any.whl (35 kB)
Using cached attrs-25.3.0-py3-none-any.whl (63 kB)
Using cached exceptiongroup-1.2.2-py3-none-any.whl (16 kB)
Using cached execnet-2.1.1-py3-none-any.whl (40 kB)
Using cached pluggy-1.5.0-py3-none-any.whl (20 kB)
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Using cached pytz-2025.2-py2.py3-none-any.whl (509 kB)
Using cached ruamel.yaml.clib-0.2.12-cp310-cp310-win_amd64.whl (118 kB)
Using cached sortedcontainers-2.4.0-py2.py3-none-any.whl (29 kB)
Using cached tzdata-2025.2-py2.py3-none-any.whl (347 kB)
Using cached iniconfig-2.1.0-py3-none-any.whl (6.0 kB)
Using cached six-1.17.0-py2.py3-none-any.whl (11 kB)
Building wheels for collected packages: executorch
  Running command Building wheel for executorch (pyproject.toml)
  C:\Users\OpenVINO Team\Workspace\env\lib\site-packages\setuptools\config\pyprojecttoml.py:108: _BetaConfiguration: Support for `[tool.setuptools]` in `pyproject.toml` is still *beta*.
    warnings.warn(msg, _BetaConfiguration)
  running bdist_wheel
  running build
  command options for 'CustomBuild':
    build_base = pip-out
    build_purelib = pip-out\lib
    build_platlib = pip-out\lib.win-amd64-cpython-310
    build_lib = pip-out\lib.win-amd64-cpython-310
    build_scripts = pip-out\scripts-3.10
    build_temp = pip-out\temp.win-amd64-cpython-310
    plat_name = win-amd64
    compiler = None
    parallel = 13
    debug = None
    force = None
    executable = C:\Users\OpenVINO Team\Workspace\env\Scripts\python.exe
  deleting C:\Users\OpenVINO Team\Workspace\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\CMakeCache.txt
  Traceback (most recent call last):
    File "<string>", line 733, in run
    File "C:\Users\OpenVINO Team\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 526, in run
      raise CalledProcessError(retcode, process.args,
  subprocess.CalledProcessError: Command '['cmake', '-S', 'C:\\Users\\OpenVINO Team\\Workspace\\executorch', '-B', 'C:\\Users\\OpenVINO Team\\Workspace\\executorch\\pip-out\\temp.win-amd64-cpython-310\\cmake-out', '-DBUCK2=', '-DPYTHON_EXECUTABLE=C:\\Users\\OpenVINO Team\\Workspace\\env\\Scripts\\python.exe', '-DCMAKE_PREFIX_PATH=C:\\Users\\OpenVINO Team\\Workspace\\env\\Lib\\site-packages', '-DCMAKE_BUILD_TYPE=Release', '-DEXECUTORCH_ENABLE_LOGGING=ON', '-DEXECUTORCH_LOG_LEVEL=Info', '-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15', '-DEXECUTORCH_SEPARATE_FLATCC_HOST_PROJECT=OFF', '-DEXECUTORCH_BUILD_PYBIND=ON', '-DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON', '-DEXECUTORCH_BUILD_KERNELS_QUANTIZED_AOT=ON', '-DEXECUTORCH_BUILD_EXTENSION_TENSOR=ON', '-DEXECUTORCH_BUILD_XNNPACK=ON', '-T', 'ClangCL']' returned non-zero exit status 1.

  The above exception was the direct cause of the following exception:

  Traceback (most recent call last):
    File "C:\Users\OpenVINO Team\Workspace\env\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
      main()
    File "C:\Users\OpenVINO Team\Workspace\env\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main
      json_out["return_val"] = hook(**hook_input["kwargs"])
    File "C:\Users\OpenVINO Team\Workspace\env\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 280, in build_wheel
      return _build_backend().build_wheel(
    File "C:\Users\OpenVINO Team\Workspace\env\lib\site-packages\setuptools\build_meta.py", line 412, in build_wheel
      return self._build_with_temp_dir(['bdist_wheel'], '.whl',
    File "C:\Users\OpenVINO Team\Workspace\env\lib\site-packages\setuptools\build_meta.py", line 397, in _build_with_temp_dir
      self.run_setup()
    File "C:\Users\OpenVINO Team\Workspace\env\lib\site-packages\setuptools\build_meta.py", line 335, in run_setup
      exec(code, locals())
    File "<string>", line 833, in <module>
    File "C:\Users\OpenVINO Team\Workspace\env\lib\site-packages\setuptools\__init__.py", line 87, in setup
      return distutils.core.setup(**attrs)
    File "C:\Users\OpenVINO Team\Workspace\env\lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
      return run_commands(dist)
    File "C:\Users\OpenVINO Team\Workspace\env\lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
      dist.run_commands()
    File "C:\Users\OpenVINO Team\Workspace\env\lib\site-packages\setuptools\_distutils\dist.py", line 968, in run_commands
      self.run_command(cmd)
    File "C:\Users\OpenVINO Team\Workspace\env\lib\site-packages\setuptools\dist.py", line 1217, in run_command
      super().run_command(command)
    File "C:\Users\OpenVINO Team\Workspace\env\lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
      cmd_obj.run()
    File "C:\Users\OpenVINO Team\Workspace\env\lib\site-packages\wheel\_bdist_wheel.py", line 387, in run
      self.run_command("build")
    File "C:\Users\OpenVINO Team\Workspace\env\lib\site-packages\setuptools\_distutils\cmd.py", line 319, in run_command
      self.distribution.run_command(command)
    File "C:\Users\OpenVINO Team\Workspace\env\lib\site-packages\setuptools\dist.py", line 1217, in run_command
      super().run_command(command)
    File "C:\Users\OpenVINO Team\Workspace\env\lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
      cmd_obj.run()
    File "<string>", line 753, in run
  Exception: CMake Deprecation Warning at backends/xnnpack/third-party/FXdiv/CMakeLists.txt:1 (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.


  CMake Deprecation Warning at backends/xnnpack/third-party/cpuinfo/CMakeLists.txt:1 (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.


  CMake Deprecation Warning at backends/xnnpack/third-party/pthreadpool/CMakeLists.txt:1 (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.


  Error while generating C:/Users/OpenVINO Team/Workspace/executorch/pip-out/temp.win-amd64-cpython-310/cmake-out/executorch_srcs.cmake. Exit code: 1
  Output:

  Error:
  2025-03-25 14:58:34,362 [ExecuTorch] ERROR: Failed to query buck for sources. Failed command:

     buck2 cquery inputs(deps('//kernels/optimized:generated_lib'))

  This is likely due to missing git submodules or outdated CMake cache. Please run the following before retry:

      ./install_executorch.sh --clean
      git submodule sync
      git submodule update --init

  Traceback (most recent call last):
    File "C:\Users\OpenVINO Team\Workspace\executorch\tools\cmake\buck_util.py", line 34, in run
      cp: subprocess.CompletedProcess = subprocess.run(
    File "C:\Users\OpenVINO Team\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 526, in run
      raise CalledProcessError(retcode, process.args,
  subprocess.CalledProcessError: Command '['C:/Users/OpenVINO Team/Workspace/executorch/buck2-bin/buck2-c7d378f3f307e9590f0b29a5f7f1b21b8e784f4e4bd30a0160b2a69df50d2ee0', 'cquery', "inputs(deps('//kernels/optimized:generated_lib'))"]' returned non-zero exit status 3.

  The above exception was the direct cause of the following exception:

  Traceback (most recent call last):
    File "C:\Users\OpenVINO Team\Workspace\executorch\tools\cmake\extract_sources.py", line 255, in <module>
      main()
    File "C:\Users\OpenVINO Team\Workspace\executorch\tools\cmake\extract_sources.py", line 240, in main
      target_to_srcs[name] = sorted(target.get_sources(graph, runner, buck_args))
    File "C:\Users\OpenVINO Team\Workspace\executorch\tools\cmake\extract_sources.py", line 144, in get_sources
      raise e
    File "C:\Users\OpenVINO Team\Workspace\executorch\tools\cmake\extract_sources.py", line 132, in get_sources
      sources: set[str] = set(runner.run(["cquery", query] + buck_args))
    File "C:\Users\OpenVINO Team\Workspace\executorch\tools\cmake\buck_util.py", line 42, in run
      raise RuntimeError(ex.stderr.decode("utf-8")) from ex
  RuntimeError: [2025-03-25T14:58:34.245-07:00] Build ID: e8e34162-6540-401e-a54b-83509e047f9b
  Command failed:
  From load at kernels/optimized/TARGETS:4

  Caused by:
      0: From load at kernels/optimized/targets.bzl:3
      1: From load at kernels/optimized/lib_defs.bzl:2
      2: File not found: `shim_et//tools/build_defs/fb_native_wrapper.bzl`


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




  error: subprocess-exited-with-error

  × Building wheel for executorch (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  full command: 'C:\Users\OpenVINO Team\Workspace\env\Scripts\python.exe' 'C:\Users\OpenVINO Team\Workspace\env\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py' build_wheel 'C:\Users\OPENVI~1\AppData\Local\Temp\tmpxjyl0ti3'
  cwd: C:\Users\OpenVINO Team\Workspace\executorch
  Building wheel for executorch (pyproject.toml) ... error
  ERROR: Failed building wheel for executorch
Failed to build executorch
ERROR: Failed to build installable wheels for some pyproject.toml based projects (executorch)
Traceback (most recent call last):
  File "C:\Users\OpenVINO Team\Workspace\executorch\install_executorch.py", line 275, in <module>
    main(sys.argv[1:])
  File "C:\Users\OpenVINO Team\Workspace\executorch\install_executorch.py", line 250, in main
    subprocess.run(
  File "C:\Users\OpenVINO Team\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['C:\\Users\\OpenVINO Team\\Workspace\\env\\Scripts\\python.exe', '-m', 'pip', 'install', '.', '--no-build-isolation', '-v', '--extra-index-url', 'https://download.pytorch.org/whl/nightly/cpu']' returned non-zero exit status 1.

Latest commit id used to reproduce: 02729b8

OS: Microsoft Windows 11 Pro
CPU: Intel Core Ultra 7 155U
Cmake version: 3.31.6
Python version: 3.10.10
Visual Studio Build Tools 2022: 17.13.4

cc: @ynimmaga @cbilgin

Versions

PyTorch version: 2.7.0.dev20250311+cpu
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: Microsoft Windows 11 Pro (10.0.22631 64-bit)
GCC version: Could not collect
Clang version: Could not collect
CMake version: version 3.31.6
Libc version: N/A

Python version: 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)] (64-bit runtime)
Python platform: Windows-10-10.0.22631-SP0
Is CUDA available: False
CUDA runtime version: No CUDA
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Name: Intel(R) Core(TM) Ultra 7 155U
Manufacturer: GenuineIntel
Family: 774
Architecture: 9
ProcessorType: 3
DeviceID: CPU0
CurrentClockSpeed: 1700
MaxClockSpeed: 1700
L2CacheSize: 10240
L2CacheSpeed: None
Revision: None

Versions of relevant libraries:
[pip3] numpy==2.2.4
[pip3] torch==2.7.0.dev20250311+cpu
[pip3] torchao==0.10.0+git64bcf4c2
[pip3] torchaudio==2.6.0.dev20250311+cpu
[pip3] torchsr==1.0.4
[pip3] torchvision==0.22.0.dev20250311+cpu
[conda] Could not collect

cc @larryliu0820 @jathu @lucylq

@JacobSzwejbka
Copy link
Contributor

@SS-JIA I know you had been supporting the windows build efforts can you take a look

@JacobSzwejbka JacobSzwejbka added release notes: build Changes related to build, including dependency upgrades, build flags, optimizations, etc. module: build/install Issues related to the cmake and buck2 builds, and to installing ExecuTorch and removed release notes: build Changes related to build, including dependency upgrades, build flags, optimizations, etc. labels Mar 26, 2025
@SS-JIA
Copy link
Contributor

SS-JIA commented Mar 27, 2025

trying to reproduce now (y)

@SS-JIA
Copy link
Contributor

SS-JIA commented Mar 28, 2025

Unfortunately, I could not reproduce the issue on main; the installation step runs just fine on my Lenovo Thinkpad P1.

Could you try to first run a clean

./install_executorch.bat --clean

or

python install_executorch.py --clean

And try to run the build again? It might help as well to pull the most recent main branch.

In the meantime, I'll try to figure out what went wrong with your build via the stack trace you posted.

@SS-JIA
Copy link
Contributor

SS-JIA commented Mar 28, 2025

Ah, actually I think I know the cause. You likely have to update the submodules to download the shims submodule.

Do this by running

git submodule sync
git submodule update --init

I see that the error message is

  Caused by:
      0: From load at kernels/optimized/targets.bzl:3
      1: From load at kernels/optimized/lib_defs.bzl:2
      2: File not found: `shim_et//tools/build_defs/fb_native_wrapper.bzl`

shim_et/tools is a symlink to the shims submodule. So it is likely that you didn't update your submodules and it doesn't exist.

@cavusmustafa
Copy link
Contributor Author

Thank you @SS-JIA for the feedback. I updated the submodules as you suggested but it did not resolve the issue at first. It seems like the sims submodule was already downloaded but somehow it did not recognize shim_et/tools file as a symlink. As a workaround, I created a link manually (using command mklink /d tools ../shim/tools) and the error above was disappeared.

However, the build was failed again due to another issue which it cannot find the version.py file. Am I missing anything?

Full error log:

2025-04-03 17:26:22,063 [ExecuTorch] INFO: All required submodules are present.
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/nightly/cpu
Requirement already satisfied: torch==2.7.0.dev20250310 in c:\users\public\mcavus\env\lib\site-packages (2.7.0.dev20250310+cpu)
Requirement already satisfied: torchvision==0.22.0.dev20250310 in c:\users\public\mcavus\env\lib\site-packages (0.22.0.dev20250310+cpu)
Requirement already satisfied: torchaudio==2.6.0.dev20250310 in c:\users\public\mcavus\env\lib\site-packages (2.6.0.dev20250310+cpu)
Requirement already satisfied: timm==1.0.7 in c:\users\public\mcavus\env\lib\site-packages (from -r requirements-examples.txt (line 3)) (1.0.7)
Requirement already satisfied: torchsr==1.0.4 in c:\users\public\mcavus\env\lib\site-packages (from -r requirements-examples.txt (line 4)) (1.0.4)
Requirement already satisfied: transformers==4.47.1 in c:\users\public\mcavus\env\lib\site-packages (from -r requirements-examples.txt (line 5)) (4.47.1)
Requirement already satisfied: cmake<4.0.0,>=3.19 in c:\users\public\mcavus\env\lib\site-packages (from -r requirements-dev.txt (line 1)) (3.31.6)
Requirement already satisfied: pip>=23 in c:\users\public\mcavus\env\lib\site-packages (from -r requirements-dev.txt (line 2)) (25.0.1)
Requirement already satisfied: pyyaml in c:\users\public\mcavus\env\lib\site-packages (from -r requirements-dev.txt (line 3)) (6.0.2)
Requirement already satisfied: setuptools>=63 in c:\users\public\mcavus\env\lib\site-packages (from -r requirements-dev.txt (line 4)) (65.5.0)
Requirement already satisfied: tomli in c:\users\public\mcavus\env\lib\site-packages (from -r requirements-dev.txt (line 5)) (2.2.1)
Requirement already satisfied: wheel in c:\users\public\mcavus\env\lib\site-packages (from -r requirements-dev.txt (line 6)) (0.45.1)
Requirement already satisfied: zstd in c:\users\public\mcavus\env\lib\site-packages (from -r requirements-dev.txt (line 7)) (1.5.6.7)
Requirement already satisfied: filelock in c:\users\public\mcavus\env\lib\site-packages (from torch==2.7.0.dev20250310) (3.18.0)
Requirement already satisfied: typing-extensions>=4.10.0 in c:\users\public\mcavus\env\lib\site-packages (from torch==2.7.0.dev20250310) (4.13.1)
Requirement already satisfied: sympy>=1.13.3 in c:\users\public\mcavus\env\lib\site-packages (from torch==2.7.0.dev20250310) (1.13.3)
Requirement already satisfied: networkx in c:\users\public\mcavus\env\lib\site-packages (from torch==2.7.0.dev20250310) (3.4.2)
Requirement already satisfied: jinja2 in c:\users\public\mcavus\env\lib\site-packages (from torch==2.7.0.dev20250310) (3.1.6)
Requirement already satisfied: fsspec in c:\users\public\mcavus\env\lib\site-packages (from torch==2.7.0.dev20250310) (2025.3.2)
Requirement already satisfied: numpy in c:\users\public\mcavus\env\lib\site-packages (from torchvision==0.22.0.dev20250310) (2.2.4)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in c:\users\public\mcavus\env\lib\site-packages (from torchvision==0.22.0.dev20250310) (11.1.0)
Requirement already satisfied: huggingface_hub in c:\users\public\mcavus\env\lib\site-packages (from timm==1.0.7->-r requirements-examples.txt (line 3)) (0.30.1)
Requirement already satisfied: safetensors in c:\users\public\mcavus\env\lib\site-packages (from timm==1.0.7->-r requirements-examples.txt (line 3)) (0.5.3)
Requirement already satisfied: packaging>=20.0 in c:\users\public\mcavus\env\lib\site-packages (from transformers==4.47.1->-r requirements-examples.txt (line 5)) (24.2)
Requirement already satisfied: regex!=2019.12.17 in c:\users\public\mcavus\env\lib\site-packages (from transformers==4.47.1->-r requirements-examples.txt (line 5)) (2024.11.6)
Requirement already satisfied: requests in c:\users\public\mcavus\env\lib\site-packages (from transformers==4.47.1->-r requirements-examples.txt (line 5)) (2.32.3)
Requirement already satisfied: tokenizers<0.22,>=0.21 in c:\users\public\mcavus\env\lib\site-packages (from transformers==4.47.1->-r requirements-examples.txt (line 5)) (0.21.1)
Requirement already satisfied: tqdm>=4.27 in c:\users\public\mcavus\env\lib\site-packages (from transformers==4.47.1->-r requirements-examples.txt (line 5)) (4.67.1)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in c:\users\public\mcavus\env\lib\site-packages (from sympy>=1.13.3->torch==2.7.0.dev20250310) (1.3.0)
Requirement already satisfied: colorama in c:\users\public\mcavus\env\lib\site-packages (from tqdm>=4.27->transformers==4.47.1->-r requirements-examples.txt (line 5)) (0.4.6)
Requirement already satisfied: MarkupSafe>=2.0 in c:\users\public\mcavus\env\lib\site-packages (from jinja2->torch==2.7.0.dev20250310) (3.0.2)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\public\mcavus\env\lib\site-packages (from requests->transformers==4.47.1->-r requirements-examples.txt (line 5)) (3.4.1)
Requirement already satisfied: idna<4,>=2.5 in c:\users\public\mcavus\env\lib\site-packages (from requests->transformers==4.47.1->-r requirements-examples.txt (line 5)) (3.10)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\public\mcavus\env\lib\site-packages (from requests->transformers==4.47.1->-r requirements-examples.txt (line 5)) (2.3.0)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\public\mcavus\env\lib\site-packages (from requests->transformers==4.47.1->-r requirements-examples.txt (line 5)) (2025.1.31)
Processing c:\users\public\mcavus\executorch\third-party\ao
  Preparing metadata (setup.py) ... done
Processing c:\users\public\mcavus\executorch\extension\llm\tokenizers
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: tiktoken in c:\users\public\mcavus\env\lib\site-packages (from pytorch-tokenizers==0.1.0) (0.9.0)
Requirement already satisfied: tokenizers in c:\users\public\mcavus\env\lib\site-packages (from pytorch-tokenizers==0.1.0) (0.21.1)
Requirement already satisfied: sentencepiece in c:\users\public\mcavus\env\lib\site-packages (from pytorch-tokenizers==0.1.0) (0.2.0)
Requirement already satisfied: regex>=2022.1.18 in c:\users\public\mcavus\env\lib\site-packages (from tiktoken->pytorch-tokenizers==0.1.0) (2024.11.6)
Requirement already satisfied: requests>=2.26.0 in c:\users\public\mcavus\env\lib\site-packages (from tiktoken->pytorch-tokenizers==0.1.0) (2.32.3)
Requirement already satisfied: huggingface-hub<1.0,>=0.16.4 in c:\users\public\mcavus\env\lib\site-packages (from tokenizers->pytorch-tokenizers==0.1.0) (0.30.1)
Requirement already satisfied: filelock in c:\users\public\mcavus\env\lib\site-packages (from huggingface-hub<1.0,>=0.16.4->tokenizers->pytorch-tokenizers==0.1.0) (3.18.0)
Requirement already satisfied: fsspec>=2023.5.0 in c:\users\public\mcavus\env\lib\site-packages (from huggingface-hub<1.0,>=0.16.4->tokenizers->pytorch-tokenizers==0.1.0) (2025.3.2)
Requirement already satisfied: packaging>=20.9 in c:\users\public\mcavus\env\lib\site-packages (from huggingface-hub<1.0,>=0.16.4->tokenizers->pytorch-tokenizers==0.1.0) (24.2)
Requirement already satisfied: pyyaml>=5.1 in c:\users\public\mcavus\env\lib\site-packages (from huggingface-hub<1.0,>=0.16.4->tokenizers->pytorch-tokenizers==0.1.0) (6.0.2)
Requirement already satisfied: tqdm>=4.42.1 in c:\users\public\mcavus\env\lib\site-packages (from huggingface-hub<1.0,>=0.16.4->tokenizers->pytorch-tokenizers==0.1.0) (4.67.1)
Requirement already satisfied: typing-extensions>=3.7.4.3 in c:\users\public\mcavus\env\lib\site-packages (from huggingface-hub<1.0,>=0.16.4->tokenizers->pytorch-tokenizers==0.1.0) (4.13.1)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\public\mcavus\env\lib\site-packages (from requests>=2.26.0->tiktoken->pytorch-tokenizers==0.1.0) (3.4.1)
Requirement already satisfied: idna<4,>=2.5 in c:\users\public\mcavus\env\lib\site-packages (from requests>=2.26.0->tiktoken->pytorch-tokenizers==0.1.0) (3.10)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\public\mcavus\env\lib\site-packages (from requests>=2.26.0->tiktoken->pytorch-tokenizers==0.1.0) (2.3.0)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\public\mcavus\env\lib\site-packages (from requests>=2.26.0->tiktoken->pytorch-tokenizers==0.1.0) (2025.1.31)
Requirement already satisfied: colorama in c:\users\public\mcavus\env\lib\site-packages (from tqdm>=4.42.1->huggingface-hub<1.0,>=0.16.4->tokenizers->pytorch-tokenizers==0.1.0) (0.4.6)
Building wheels for collected packages: torchao, pytorch-tokenizers
  Building wheel for torchao (setup.py) ... done
  Created wheel for torchao: filename=torchao-0.10.0+git923242e2-py3-none-any.whl size=769606 sha256=73ee259179cf3982b0c00e5e2f50cd3fd192cf42959bd2ad7046b191161891b1
  Stored in directory: C:\Users\OpenVINO Team\AppData\Local\Temp\pip-ephem-wheel-cache-ej225l42\wheels\01\ff\9e\dc711113ef7b1690718cfa09cd6b882db74c0bbda9ea834f82
  Building wheel for pytorch-tokenizers (pyproject.toml) ... done
  Created wheel for pytorch-tokenizers: filename=pytorch_tokenizers-0.1.0-py3-none-any.whl size=10602 sha256=8abf07419904b2720e45736121740c2bd08dc81ce09b6760a2c34cc3cdabcc8e
  Stored in directory: C:\Users\OpenVINO Team\AppData\Local\Temp\pip-ephem-wheel-cache-ej225l42\wheels\88\91\d7\57aaff525a499b622a85595268c5b5a06e918a741060d9c24b
Successfully built torchao pytorch-tokenizers
Installing collected packages: torchao, pytorch-tokenizers
  Attempting uninstall: torchao
    Found existing installation: torchao 0.10.0+git923242e2
    Uninstalling torchao-0.10.0+git923242e2:
      Successfully uninstalled torchao-0.10.0+git923242e2
  Attempting uninstall: pytorch-tokenizers
    Found existing installation: pytorch-tokenizers 0.1.0
    Uninstalling pytorch-tokenizers-0.1.0:
      Successfully uninstalled pytorch-tokenizers-0.1.0
Successfully installed pytorch-tokenizers-0.1.0 torchao-0.10.0+git923242e2
Using pip 25.0.1 from C:\Users\Public\mcavus\env\lib\site-packages\pip (python 3.10)
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/nightly/cpu
Processing c:\users\public\mcavus\executorch
  Running command Preparing metadata (pyproject.toml)
  C:\Users\Public\mcavus\env\lib\site-packages\setuptools\config\pyprojecttoml.py:108: _BetaConfiguration: Support for `[tool.setuptools]` in `pyproject.toml` is still *beta*.
    warnings.warn(msg, _BetaConfiguration)
  running dist_info
  creating C:\Users\OpenVINO Team\AppData\Local\Temp\pip-modern-metadata-2e6pzh9v\executorch.egg-info
  writing C:\Users\OpenVINO Team\AppData\Local\Temp\pip-modern-metadata-2e6pzh9v\executorch.egg-info\PKG-INFO
  writing dependency_links to C:\Users\OpenVINO Team\AppData\Local\Temp\pip-modern-metadata-2e6pzh9v\executorch.egg-info\dependency_links.txt
  writing entry points to C:\Users\OpenVINO Team\AppData\Local\Temp\pip-modern-metadata-2e6pzh9v\executorch.egg-info\entry_points.txt
  writing requirements to C:\Users\OpenVINO Team\AppData\Local\Temp\pip-modern-metadata-2e6pzh9v\executorch.egg-info\requires.txt
  writing top-level names to C:\Users\OpenVINO Team\AppData\Local\Temp\pip-modern-metadata-2e6pzh9v\executorch.egg-info\top_level.txt
  writing manifest file 'C:\Users\OpenVINO Team\AppData\Local\Temp\pip-modern-metadata-2e6pzh9v\executorch.egg-info\SOURCES.txt'
  reading manifest file 'C:\Users\OpenVINO Team\AppData\Local\Temp\pip-modern-metadata-2e6pzh9v\executorch.egg-info\SOURCES.txt'
  adding license file 'LICENSE'
  writing manifest file 'C:\Users\OpenVINO Team\AppData\Local\Temp\pip-modern-metadata-2e6pzh9v\executorch.egg-info\SOURCES.txt'
  creating 'C:\Users\OpenVINO Team\AppData\Local\Temp\pip-modern-metadata-2e6pzh9v\executorch-0.7.0a0+e9c2315.dist-info'
  Preparing metadata (pyproject.toml) ... done
Collecting expecttest (from executorch==0.7.0a0+e9c2315)
  Obtaining dependency information for expecttest from https://files.pythonhosted.org/packages/27/fb/deeefea1ea549273817ca7bed3db2f39cc238a75a745a20e3651619f7335/expecttest-0.3.0-py3-none-any.whl.metadata
  Using cached expecttest-0.3.0-py3-none-any.whl.metadata (3.8 kB)
Collecting flatbuffers (from executorch==0.7.0a0+e9c2315)
  Obtaining dependency information for flatbuffers from https://files.pythonhosted.org/packages/b8/25/155f9f080d5e4bc0082edfda032ea2bc2b8fab3f4d25d46c1e9dd22a1a89/flatbuffers-25.2.10-py2.py3-none-any.whl.metadata
  Using cached flatbuffers-25.2.10-py2.py3-none-any.whl.metadata (875 bytes)
Collecting hypothesis (from executorch==0.7.0a0+e9c2315)
  Obtaining dependency information for hypothesis from https://files.pythonhosted.org/packages/b5/74/ff7d6642dd21288947fb9f6e5a767c415326b0a02bc710842f191dab9768/hypothesis-6.130.8-py3-none-any.whl.metadata
  Using cached hypothesis-6.130.8-py3-none-any.whl.metadata (5.6 kB)
Requirement already satisfied: mpmath==1.3.0 in c:\users\public\mcavus\env\lib\site-packages (from executorch==0.7.0a0+e9c2315) (1.3.0)
Requirement already satisfied: packaging in c:\users\public\mcavus\env\lib\site-packages (from executorch==0.7.0a0+e9c2315) (24.2)
Collecting parameterized (from executorch==0.7.0a0+e9c2315)
  Obtaining dependency information for parameterized from https://files.pythonhosted.org/packages/00/2f/804f58f0b856ab3bf21617cccf5b39206e6c4c94c2cd227bde125ea6105f/parameterized-0.9.0-py2.py3-none-any.whl.metadata
  Using cached parameterized-0.9.0-py2.py3-none-any.whl.metadata (18 kB)
Collecting pytest (from executorch==0.7.0a0+e9c2315)
  Obtaining dependency information for pytest from https://files.pythonhosted.org/packages/30/3d/64ad57c803f1fa1e963a7946b6e0fea4a70df53c1a7fed304586539c2bac/pytest-8.3.5-py3-none-any.whl.metadata
  Using cached pytest-8.3.5-py3-none-any.whl.metadata (7.6 kB)
Collecting pytest-xdist (from executorch==0.7.0a0+e9c2315)
  Obtaining dependency information for pytest-xdist from https://files.pythonhosted.org/packages/6d/82/1d96bf03ee4c0fdc3c0cbe61470070e659ca78dc0086fb88b66c185e2449/pytest_xdist-3.6.1-py3-none-any.whl.metadata
  Using cached pytest_xdist-3.6.1-py3-none-any.whl.metadata (4.3 kB)
Collecting pytest-rerunfailures (from executorch==0.7.0a0+e9c2315)
  Obtaining dependency information for pytest-rerunfailures from https://files.pythonhosted.org/packages/89/37/54e5ffc7c0cebee7cf30a3ac5915faa7e7abf8bdfdf3228c277f7c192489/pytest_rerunfailures-15.0-py3-none-any.whl.metadata
  Using cached pytest_rerunfailures-15.0-py3-none-any.whl.metadata (19 kB)
Requirement already satisfied: pyyaml in c:\users\public\mcavus\env\lib\site-packages (from executorch==0.7.0a0+e9c2315) (6.0.2)
Collecting ruamel.yaml (from executorch==0.7.0a0+e9c2315)
  Obtaining dependency information for ruamel.yaml from https://files.pythonhosted.org/packages/c2/36/dfc1ebc0081e6d39924a2cc53654497f967a084a436bb64402dfce4254d9/ruamel.yaml-0.18.10-py3-none-any.whl.metadata
  Using cached ruamel.yaml-0.18.10-py3-none-any.whl.metadata (23 kB)
Requirement already satisfied: sympy in c:\users\public\mcavus\env\lib\site-packages (from executorch==0.7.0a0+e9c2315) (1.13.3)
Collecting tabulate (from executorch==0.7.0a0+e9c2315)
  Obtaining dependency information for tabulate from https://files.pythonhosted.org/packages/40/44/4a5f08c96eb108af5cb50b41f76142f0afa346dfa99d5296fe7202a11854/tabulate-0.9.0-py3-none-any.whl.metadata
  Using cached tabulate-0.9.0-py3-none-any.whl.metadata (34 kB)
Requirement already satisfied: typing-extensions in c:\users\public\mcavus\env\lib\site-packages (from executorch==0.7.0a0+e9c2315) (4.13.1)
Requirement already satisfied: numpy>=2.0.0 in c:\users\public\mcavus\env\lib\site-packages (from executorch==0.7.0a0+e9c2315) (2.2.4)
Collecting pandas>=2.2.2 (from executorch==0.7.0a0+e9c2315)
  Using cached https://download.pytorch.org/whl/nightly/pandas-2.2.3-cp310-cp310-win_amd64.whl (11.6 MB)
Collecting python-dateutil>=2.8.2 (from pandas>=2.2.2->executorch==0.7.0a0+e9c2315)
  Obtaining dependency information for python-dateutil>=2.8.2 from https://files.pythonhosted.org/packages/ec/57/56b9bcc3c9c6a792fcbaf139543cee77261f3651ca9da0c93f5c1221264b/python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata
  Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting pytz>=2020.1 (from pandas>=2.2.2->executorch==0.7.0a0+e9c2315)
  Obtaining dependency information for pytz>=2020.1 from https://files.pythonhosted.org/packages/81/c4/34e93fe5f5429d7570ec1fa436f1986fb1f00c3e0f43a589fe2bbcd22c3f/pytz-2025.2-py2.py3-none-any.whl.metadata
  Using cached pytz-2025.2-py2.py3-none-any.whl.metadata (22 kB)
Collecting tzdata>=2022.7 (from pandas>=2.2.2->executorch==0.7.0a0+e9c2315)
  Obtaining dependency information for tzdata>=2022.7 from https://files.pythonhosted.org/packages/5c/23/c7abc0ca0a1526a0774eca151daeb8de62ec457e77262b66b359c3c7679e/tzdata-2025.2-py2.py3-none-any.whl.metadata
  Using cached tzdata-2025.2-py2.py3-none-any.whl.metadata (1.4 kB)
Collecting attrs>=22.2.0 (from hypothesis->executorch==0.7.0a0+e9c2315)
  Obtaining dependency information for attrs>=22.2.0 from https://files.pythonhosted.org/packages/77/06/bb80f5f86020c4551da315d78b3ab75e8228f89f0162f2c3a819e407941a/attrs-25.3.0-py3-none-any.whl.metadata
  Using cached attrs-25.3.0-py3-none-any.whl.metadata (10 kB)
Collecting exceptiongroup>=1.0.0 (from hypothesis->executorch==0.7.0a0+e9c2315)
  Obtaining dependency information for exceptiongroup>=1.0.0 from https://files.pythonhosted.org/packages/02/cc/b7e31358aac6ed1ef2bb790a9746ac2c69bcb3c8588b41616914eb106eaf/exceptiongroup-1.2.2-py3-none-any.whl.metadata
  Using cached exceptiongroup-1.2.2-py3-none-any.whl.metadata (6.6 kB)
Collecting sortedcontainers<3.0.0,>=2.1.0 (from hypothesis->executorch==0.7.0a0+e9c2315)
  Obtaining dependency information for sortedcontainers<3.0.0,>=2.1.0 from https://files.pythonhosted.org/packages/32/46/9cb0e58b2deb7f82b84065f37f3bffeb12413f947f9388e4cac22c4621ce/sortedcontainers-2.4.0-py2.py3-none-any.whl.metadata
  Using cached sortedcontainers-2.4.0-py2.py3-none-any.whl.metadata (10 kB)
Requirement already satisfied: colorama in c:\users\public\mcavus\env\lib\site-packages (from pytest->executorch==0.7.0a0+e9c2315) (0.4.6)
Collecting iniconfig (from pytest->executorch==0.7.0a0+e9c2315)
  Obtaining dependency information for iniconfig from https://files.pythonhosted.org/packages/2c/e1/e6716421ea10d38022b952c159d5161ca1193197fb744506875fbb87ea7b/iniconfig-2.1.0-py3-none-any.whl.metadata
  Using cached iniconfig-2.1.0-py3-none-any.whl.metadata (2.7 kB)
Collecting pluggy<2,>=1.5 (from pytest->executorch==0.7.0a0+e9c2315)
  Obtaining dependency information for pluggy<2,>=1.5 from https://files.pythonhosted.org/packages/88/5f/e351af9a41f866ac3f1fac4ca0613908d9a41741cfcf2228f4ad853b697d/pluggy-1.5.0-py3-none-any.whl.metadata
  Using cached pluggy-1.5.0-py3-none-any.whl.metadata (4.8 kB)
Requirement already satisfied: tomli>=1 in c:\users\public\mcavus\env\lib\site-packages (from pytest->executorch==0.7.0a0+e9c2315) (2.2.1)
Collecting execnet>=2.1 (from pytest-xdist->executorch==0.7.0a0+e9c2315)
  Obtaining dependency information for execnet>=2.1 from https://files.pythonhosted.org/packages/43/09/2aea36ff60d16dd8879bdb2f5b3ee0ba8d08cbbdcdfe870e695ce3784385/execnet-2.1.1-py3-none-any.whl.metadata
  Using cached execnet-2.1.1-py3-none-any.whl.metadata (2.9 kB)
Collecting ruamel.yaml.clib>=0.2.7 (from ruamel.yaml->executorch==0.7.0a0+e9c2315)
  Obtaining dependency information for ruamel.yaml.clib>=0.2.7 from https://files.pythonhosted.org/packages/3a/65/fa39d74db4e2d0cd252355732d966a460a41cd01c6353b820a0952432839/ruamel.yaml.clib-0.2.12-cp310-cp310-win_amd64.whl.metadata
  Using cached ruamel.yaml.clib-0.2.12-cp310-cp310-win_amd64.whl.metadata (2.8 kB)
Collecting six>=1.5 (from python-dateutil>=2.8.2->pandas>=2.2.2->executorch==0.7.0a0+e9c2315)
  Obtaining dependency information for six>=1.5 from https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl.metadata
  Using cached six-1.17.0-py2.py3-none-any.whl.metadata (1.7 kB)
Using cached expecttest-0.3.0-py3-none-any.whl (8.2 kB)
Using cached flatbuffers-25.2.10-py2.py3-none-any.whl (30 kB)
Using cached hypothesis-6.130.8-py3-none-any.whl (492 kB)
Using cached parameterized-0.9.0-py2.py3-none-any.whl (20 kB)
Using cached pytest-8.3.5-py3-none-any.whl (343 kB)
Using cached pytest_rerunfailures-15.0-py3-none-any.whl (13 kB)
Using cached pytest_xdist-3.6.1-py3-none-any.whl (46 kB)
Using cached ruamel.yaml-0.18.10-py3-none-any.whl (117 kB)
Using cached tabulate-0.9.0-py3-none-any.whl (35 kB)
Using cached attrs-25.3.0-py3-none-any.whl (63 kB)
Using cached exceptiongroup-1.2.2-py3-none-any.whl (16 kB)
Using cached execnet-2.1.1-py3-none-any.whl (40 kB)
Using cached pluggy-1.5.0-py3-none-any.whl (20 kB)
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Using cached pytz-2025.2-py2.py3-none-any.whl (509 kB)
Using cached ruamel.yaml.clib-0.2.12-cp310-cp310-win_amd64.whl (118 kB)
Using cached sortedcontainers-2.4.0-py2.py3-none-any.whl (29 kB)
Using cached tzdata-2025.2-py2.py3-none-any.whl (347 kB)
Using cached iniconfig-2.1.0-py3-none-any.whl (6.0 kB)
Using cached six-1.17.0-py2.py3-none-any.whl (11 kB)
Building wheels for collected packages: executorch
  Running command Building wheel for executorch (pyproject.toml)
  C:\Users\Public\mcavus\env\lib\site-packages\setuptools\config\pyprojecttoml.py:108: _BetaConfiguration: Support for `[tool.setuptools]` in `pyproject.toml` is still *beta*.
    warnings.warn(msg, _BetaConfiguration)
  running bdist_wheel
  running build
  command options for 'CustomBuild':
    build_base = pip-out
    build_purelib = pip-out\lib
    build_platlib = pip-out\lib.win-amd64-cpython-310
    build_lib = pip-out\lib.win-amd64-cpython-310
    build_scripts = pip-out\scripts-3.10
    build_temp = pip-out\temp.win-amd64-cpython-310
    plat_name = win-amd64
    compiler = None
    parallel = 13
    debug = None
    force = None
    executable = C:\Users\Public\mcavus\env\Scripts\python.exe
  deleting C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\CMakeCache.txt
  cmake --build C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out -j13 --target portable_lib --config Release
  MSBuild version 17.13.19+0d9f5a35a for .NET Framework

    1>Checking Build System
    pthreadpool.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\backends\xnnpack\third-party\pthreadpool\Release\pthreadpool.lib
  C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(214,5): warning MSB8062: Custom build for item "C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\CMakeFiles\3902902369bc3710f9f55d936f8f5ff9\bundled_program_schema_generated.h.rule" specifies invalid path "C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\third-party\flatbuffers\$<CONFIG>\flatc.exe" as an additional dependency. This may cause incremental build to work incorrectly. [C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\devtools\bundled_program_schema.vcxproj]
  C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(214,5): warning MSB8062: Custom build for item "C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\CMakeFiles\463aa41e191a801e3d30862b08cd2c03\schema_generated.h.rule" specifies invalid path "C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\third-party\flatbuffers\$<CONFIG>\flatc.exe" as an additional dependency. This may cause incremental build to work incorrectly. [C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\backends\xnnpack\xnnpack_schema.vcxproj]
  C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(214,5): warning MSB8062: Custom build for item "C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\CMakeFiles\18270284f0f26ad91cdb79e1a767fbf2\scalar_type_generated.h.rule" specifies invalid path "C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\third-party\flatbuffers\$<CONFIG>\flatc.exe" as an additional dependency. This may cause incremental build to work incorrectly. [C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\schema\common_schema.vcxproj]
    flatcc.vcxproj -> C:\Users\Public\mcavus\executorch\third-party\flatcc\lib\Release\flatcc.lib
  C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(214,5): warning MSB8062: Custom build for item "C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\CMakeFiles\18270284f0f26ad91cdb79e1a767fbf2\program_generated.h.rule" specifies invalid path "C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\third-party\flatbuffers\$<CONFIG>\flatc.exe" as an additional dependency. This may cause incremental build to work incorrectly. [C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\schema\program_schema.vcxproj]
    flatcc_cli.vcxproj -> C:\Users\Public\mcavus\executorch\third-party\flatcc\bin\Release\flatcc.exe
    logging.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\backends\xnnpack\third-party\XNNPACK\logging.dir\Release\logging.lib
    indirection.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\backends\xnnpack\third-party\XNNPACK\indirection.dir\Release\indirection.lib
    normalization.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\backends\xnnpack\third-party\XNNPACK\normalization.dir\Release\normalization.lib
    datatype.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\backends\xnnpack\third-party\XNNPACK\datatype.dir\Release\datatype.lib
    reference-ukernels.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\backends\xnnpack\third-party\XNNPACK\reference-ukernels.dir\Release\reference-ukernels.lib
    microparams-init.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\backends\xnnpack\third-party\XNNPACK\microparams-init.dir\Release\microparams-init.lib
    mutex.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\backends\xnnpack\third-party\XNNPACK\mutex.dir\Release\mutex.lib
    microkernel-utils.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\backends\xnnpack\third-party\XNNPACK\microkernel-utils.dir\Release\microkernel-utils.lib
    operator-run.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\backends\xnnpack\third-party\XNNPACK\operator-run.dir\Release\operator-run.lib
    cache.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\backends\xnnpack\third-party\XNNPACK\cache.dir\Release\cache.lib
    operator-utils.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\backends\xnnpack\third-party\XNNPACK\operator-utils.dir\Release\operator-utils.lib
    allocator.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\backends\xnnpack\third-party\XNNPACK\allocator.dir\Release\allocator.lib
    memory.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\backends\xnnpack\third-party\XNNPACK\memory.dir\Release\memory.lib
    packing.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\backends\xnnpack\third-party\XNNPACK\packing.dir\Release\packing.lib
    cpuinfo.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\backends\xnnpack\third-party\cpuinfo\Release\cpuinfo.lib
    operators.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\backends\xnnpack\third-party\XNNPACK\operators.dir\Release\operators.lib
    hardware-config.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\backends\xnnpack\third-party\XNNPACK\hardware-config.dir\Release\hardware-config.lib
    subgraph.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\backends\xnnpack\third-party\XNNPACK\subgraph.dir\Release\subgraph.lib
    flatccrt.vcxproj -> C:\Users\Public\mcavus\executorch\third-party\flatcc\lib\Release\flatccrt.lib
    executorch_core.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\Release\executorch_core.lib
    extension_tensor.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\extension\tensor\Release\extension_tensor.lib
    executorch.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\Release\executorch.lib
    extension_threadpool.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\extension\threadpool\Release\extension_threadpool.lib
    bundled_program.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\devtools\Release\bundled_program.lib
    extension_data_loader.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\extension\data_loader\Release\extension_data_loader.lib
    etdump.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\devtools\Release\etdump.lib
    Building Custom Rule C:/Users/Public/mcavus/executorch/kernels/portable/CMakeLists.txt
    util.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\Release\util.lib
  clang-cl : warning : unknown argument ignored in clang-cl: '-ffunction-sections' [-Wunknown-argument] [C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\kernels\portable\portable_kernels.vcxproj]
  clang-cl : warning : unknown argument ignored in clang-cl: '-fdata-sections' [-Wunknown-argument] [C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\kernels\portable\portable_kernels.vcxproj]
  clang-cl : warning : unknown argument ignored in clang-cl: '-fPIC' [-Wunknown-argument] [C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\kernels\portable\portable_kernels.vcxproj]
    microkernels-prod.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\backends\xnnpack\third-party\XNNPACK\Release\microkernels-prod.lib
    XNNPACK.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\backends\xnnpack\third-party\XNNPACK\Release\XNNPACK.lib
    xnnpack_backend.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\backends\xnnpack\Release\xnnpack_backend.lib
  C:\Users\Public\mcavus\executorch\kernels\portable\cpu\util\normalization_ops_util.cpp(106,37): warning : variable length arrays in C++ are a Clang extension [-Wvla-cxx-extension] [C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\kernels\portable\portable_kernels.vcxproj]
  C:\Users\Public\mcavus\executorch\kernels\portable\cpu\util\normalization_ops_util.cpp(106,37): message : read of non-const variable 'ndim' is not allowed in a constant expression [C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\kernels\portable\portable_kernels.vcxproj]
  C:\Users\Public\mcavus\executorch\kernels\portable\cpu\util\normalization_ops_util.cpp(84,10): message : declared here [C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\kernels\portable\portable_kernels.vcxproj]
    portable_kernels.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\kernels\portable\Release\portable_kernels.lib
    Generating selected_operators.yaml for portable_ops_lib
    Building Custom Rule C:/Users/Public/mcavus/executorch/kernels/portable/CMakeLists.txt
    Generating code for kernel registration
  clang-cl : warning : unknown argument ignored in clang-cl: '-ffunction-sections' [-Wunknown-argument] [C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\kernels\portable\portable_ops_lib.vcxproj]
  clang-cl : warning : unknown argument ignored in clang-cl: '-fdata-sections' [-Wunknown-argument] [C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\kernels\portable\portable_ops_lib.vcxproj]
  clang-cl : warning : unknown argument ignored in clang-cl: '-fPIC' [-Wunknown-argument] [C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\kernels\portable\portable_ops_lib.vcxproj]
    portable_ops_lib.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\kernels\portable\Release\portable_ops_lib.lib
    Building Custom Rule C:/Users/Public/mcavus/executorch/CMakeLists.txt
  clang-cl : warning : unknown argument ignored in clang-cl: '-ffunction-sections' [-Wunknown-argument] [C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\portable_lib.vcxproj]
  clang-cl : warning : unknown argument ignored in clang-cl: '-fdata-sections' [-Wunknown-argument] [C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\portable_lib.vcxproj]
  clang-cl : warning : unknown argument ignored in clang-cl: '-fPIC' [-Wunknown-argument] [C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\portable_lib.vcxproj]
  clang-cl : warning : unknown argument ignored in clang-cl: '-frtti' [-Wunknown-argument] [C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\portable_lib.vcxproj]
  clang-cl : warning : unknown argument ignored in clang-cl: '-fexceptions' [-Wunknown-argument] [C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\portable_lib.vcxproj]
  lld-link : warning : ignoring unknown argument '-flto' [C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\portable_lib.vcxproj]
    portable_lib.vcxproj -> C:\Users\Public\mcavus\executorch\pip-out\temp.win-amd64-cpython-310\cmake-out\Release\_portable_lib.cp310-win_amd64.pyd
  running build_py
  running egg_info
  creating executorch.egg-info
  writing executorch.egg-info\PKG-INFO
  writing dependency_links to executorch.egg-info\dependency_links.txt
  writing entry points to executorch.egg-info\entry_points.txt
  writing requirements to executorch.egg-info\requires.txt
  writing top-level names to executorch.egg-info\top_level.txt
  writing manifest file 'executorch.egg-info\SOURCES.txt'
  reading manifest file 'executorch.egg-info\SOURCES.txt'
  adding license file 'LICENSE'
  writing manifest file 'executorch.egg-info\SOURCES.txt'
  error: [Errno 2] No such file or directory: 'pip-out\\lib.win-amd64-cpython-310\\executorch\\version.py'
  error: subprocess-exited-with-error

  × Building wheel for executorch (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  full command: 'C:\Users\Public\mcavus\env\Scripts\python.exe' 'C:\Users\Public\mcavus\env\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py' build_wheel 'C:\Users\OPENVI~1\AppData\Local\Temp\tmp6eoiszfs'
  cwd: C:\Users\Public\mcavus\executorch
  Building wheel for executorch (pyproject.toml) ... error
  ERROR: Failed building wheel for executorch
Failed to build executorch
ERROR: Failed to build installable wheels for some pyproject.toml based projects (executorch)
Traceback (most recent call last):
  File "C:\Users\Public\mcavus\executorch\install_executorch.py", line 271, in <module>
    main(sys.argv[1:])
  File "C:\Users\Public\mcavus\executorch\install_executorch.py", line 246, in main
    subprocess.run(
  File "C:\Users\OpenVINO Team\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['C:\\Users\\Public\\mcavus\\env\\Scripts\\python.exe', '-m', 'pip', 'install', '.', '--no-build-isolation', '-v', '--extra-index-url', 'https://download.pytorch.org/whl/nightly/cpu']' returned non-zero exit status 1.

@SS-JIA
Copy link
Contributor

SS-JIA commented Apr 7, 2025

@cavusmustafa I haven't seen that error before, so I'm not certain what's going on.

First thing I would recommend is to clean your build and then try building again:

cd ~/executorch
python install_executorch.py --clean
python install_executorch.py

I also found this stackoverflow question which seems to have run into the same version.py error you're seeing (albeit for another project). From the answer, I would also double check that you are running the install script from the ExecuTorch repo root directory.

@tensorsofthewall
Copy link

tensorsofthewall commented Apr 9, 2025

It seems like this issue occurs if you build executorch from the main branch? I've been experiencing the same issue on WSL (Ubuntu 24 LTS), but switching to the viable/strict branch (as mentioned in docs) allowed me to run ./install_executorch.sh without issues. Not sure why this is the case, viable/stable is synced to main.

@SS-JIA
Copy link
Contributor

SS-JIA commented Apr 9, 2025

I can't see why building from viable/stablewould be much different from building from main TBH 😛

It could also be some kind of transient error that just happened to go away when you swapped branches? Unless this is behaviour that you can consistently reproduce?

@tensorsofthewall
Copy link

This is weird 😅 I just tried building from source on both my WSL machine and Mac Mini M4, I'm able to reproduce the same error across machines on the main branch. Both machines are using latest versions of micromamba with Python 3.10 environments and g++ version 13.3

@SS-JIA
Copy link
Contributor

SS-JIA commented Apr 10, 2025

@tensorsofthewall just curious, what are the commands you are using to build? Have you also tried to clean your install before building again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: build/install Issues related to the cmake and buck2 builds, and to installing ExecuTorch
Projects
None yet
Development

No branches or pull requests

4 participants