Skip to content

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

Open
@cavusmustafa

Description

@cavusmustafa

🐛 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

Metadata

Metadata

Assignees

Labels

module: build/installIssues related to the cmake and buck2 builds, and to installing ExecuTorch

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions