Repository navigation
Description
🐛 Describe the bug
git clone https://github.com/pytorch/executorch.git
cd executorch
python3.11 -m venv .venv
source .venv/bin/activate
git submodule sync
git submodule update --init
./install_executorch.sh
Output
Using pip 24.0 from /home/warden/source/executorch/.venv/lib/python3.11/site-packages/pip (python 3.11)
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/nightly/cpu
Processing /home/warden/source/executorch
Running command Preparing metadata (pyproject.toml)
/home/warden/source/executorch/.venv/lib/python3.11/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 /tmp/pip-modern-metadata-twj7o8yl/executorch.egg-info
writing /tmp/pip-modern-metadata-twj7o8yl/executorch.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-modern-metadata-twj7o8yl/executorch.egg-info/dependency_links.txt
writing entry points to /tmp/pip-modern-metadata-twj7o8yl/executorch.egg-info/entry_points.txt
writing requirements to /tmp/pip-modern-metadata-twj7o8yl/executorch.egg-info/requires.txt
writing top-level names to /tmp/pip-modern-metadata-twj7o8yl/executorch.egg-info/top_level.txt
writing manifest file '/tmp/pip-modern-metadata-twj7o8yl/executorch.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-modern-metadata-twj7o8yl/executorch.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file '/tmp/pip-modern-metadata-twj7o8yl/executorch.egg-info/SOURCES.txt'
creating '/tmp/pip-modern-metadata-twj7o8yl/executorch-0.6.0a0+319c8d7.dist-info'
Preparing metadata (pyproject.toml) ... done
Collecting expecttest (from executorch==0.6.0a0+319c8d7)
Obtaining dependency information for expecttest from https://files.pythonhosted.org/packages/27/fb/deeefea1ea549273817ca7bed3db2f39cc238a75a745a20e3651619f7335/expecttest-0.3.0-py3-none-any.whl.metadata
Downloading expecttest-0.3.0-py3-none-any.whl.metadata (3.8 kB)
Collecting flatbuffers (from executorch==0.6.0a0+319c8d7)
Obtaining dependency information for flatbuffers from https://files.pythonhosted.org/packages/b8/25/155f9f080d5e4bc0082edfda032ea2bc2b8fab3f4d25d46c1e9dd22a1a89/flatbuffers-25.2.10-py2.py3-none-any.whl.metadata
Downloading flatbuffers-25.2.10-py2.py3-none-any.whl.metadata (875 bytes)
Collecting hypothesis (from executorch==0.6.0a0+319c8d7)
Obtaining dependency information for hypothesis from https://files.pythonhosted.org/packages/55/97/36e2e1dec3d60c99443a9d25e8a21e9bfdf4ba91c1396587b8b74f37db13/hypothesis-6.125.3-py3-none-any.whl.metadata
Downloading hypothesis-6.125.3-py3-none-any.whl.metadata (6.3 kB)
Requirement already satisfied: mpmath==1.3.0 in ./.venv/lib/python3.11/site-packages (from executorch==0.6.0a0+319c8d7) (1.3.0)
Requirement already satisfied: packaging in ./.venv/lib/python3.11/site-packages (from executorch==0.6.0a0+319c8d7) (24.2)
Collecting parameterized (from executorch==0.6.0a0+319c8d7)
Obtaining dependency information for parameterized from https://files.pythonhosted.org/packages/00/2f/804f58f0b856ab3bf21617cccf5b39206e6c4c94c2cd227bde125ea6105f/parameterized-0.9.0-py2.py3-none-any.whl.metadata
Downloading parameterized-0.9.0-py2.py3-none-any.whl.metadata (18 kB)
Collecting pytest (from executorch==0.6.0a0+319c8d7)
Obtaining dependency information for pytest from https://files.pythonhosted.org/packages/11/92/76a1c94d3afee238333bc0a42b82935dd8f9cf8ce9e336ff87ee14d9e1cf/pytest-8.3.4-py3-none-any.whl.metadata
Downloading pytest-8.3.4-py3-none-any.whl.metadata (7.5 kB)
Collecting pytest-xdist (from executorch==0.6.0a0+319c8d7)
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
Downloading pytest_xdist-3.6.1-py3-none-any.whl.metadata (4.3 kB)
Collecting pytest-rerunfailures (from executorch==0.6.0a0+319c8d7)
Obtaining dependency information for pytest-rerunfailures from https://files.pythonhosted.org/packages/89/37/54e5ffc7c0cebee7cf30a3ac5915faa7e7abf8bdfdf3228c277f7c192489/pytest_rerunfailures-15.0-py3-none-any.whl.metadata
Downloading pytest_rerunfailures-15.0-py3-none-any.whl.metadata (19 kB)
Requirement already satisfied: pyyaml in ./.venv/lib/python3.11/site-packages (from executorch==0.6.0a0+319c8d7) (6.0.2)
Collecting ruamel.yaml (from executorch==0.6.0a0+319c8d7)
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
Downloading ruamel.yaml-0.18.10-py3-none-any.whl.metadata (23 kB)
Requirement already satisfied: sympy in ./.venv/lib/python3.11/site-packages (from executorch==0.6.0a0+319c8d7) (1.13.1)
Collecting tabulate (from executorch==0.6.0a0+319c8d7)
Obtaining dependency information for tabulate from https://files.pythonhosted.org/packages/40/44/4a5f08c96eb108af5cb50b41f76142f0afa346dfa99d5296fe7202a11854/tabulate-0.9.0-py3-none-any.whl.metadata
Downloading tabulate-0.9.0-py3-none-any.whl.metadata (34 kB)
Requirement already satisfied: typing-extensions in ./.venv/lib/python3.11/site-packages (from executorch==0.6.0a0+319c8d7) (4.12.2)
Requirement already satisfied: numpy>=2.0.0 in ./.venv/lib/python3.11/site-packages (from executorch==0.6.0a0+319c8d7) (2.2.3)
Collecting pandas>=2.2.2 (from executorch==0.6.0a0+319c8d7)
Downloading https://download.pytorch.org/whl/nightly/pandas-2.2.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.1/13.1 MB 43.9 MB/s eta 0:00:00
Collecting python-dateutil>=2.8.2 (from pandas>=2.2.2->executorch==0.6.0a0+319c8d7)
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+319c8d7)
Obtaining dependency information for pytz>=2020.1 from https://files.pythonhosted.org/packages/eb/38/ac33370d784287baa1c3d538978b5e2ea064d4c1b93ffbd12826c190dd10/pytz-2025.1-py2.py3-none-any.whl.metadata
Downloading pytz-2025.1-py2.py3-none-any.whl.metadata (22 kB)
Collecting tzdata>=2022.7 (from pandas>=2.2.2->executorch==0.6.0a0+319c8d7)
Obtaining dependency information for tzdata>=2022.7 from https://files.pythonhosted.org/packages/0f/dd/84f10e23edd882c6f968c21c2434fe67bd4a528967067515feca9e611e5e/tzdata-2025.1-py2.py3-none-any.whl.metadata
Downloading tzdata-2025.1-py2.py3-none-any.whl.metadata (1.4 kB)
Collecting attrs>=22.2.0 (from hypothesis->executorch==0.6.0a0+319c8d7)
Obtaining dependency information for attrs>=22.2.0 from https://files.pythonhosted.org/packages/fc/30/d4986a882011f9df997a55e6becd864812ccfcd821d64aac8570ee39f719/attrs-25.1.0-py3-none-any.whl.metadata
Downloading attrs-25.1.0-py3-none-any.whl.metadata (10 kB)
Collecting sortedcontainers<3.0.0,>=2.1.0 (from hypothesis->executorch==0.6.0a0+319c8d7)
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
Downloading sortedcontainers-2.4.0-py2.py3-none-any.whl.metadata (10 kB)
Collecting iniconfig (from pytest->executorch==0.6.0a0+319c8d7)
Obtaining dependency information for iniconfig from https://files.pythonhosted.org/packages/ef/a6/62565a6e1cf69e10f5727360368e451d4b7f58beeac6173dc9db836a5b46/iniconfig-2.0.0-py3-none-any.whl.metadata
Downloading iniconfig-2.0.0-py3-none-any.whl.metadata (2.6 kB)
Collecting pluggy<2,>=1.5 (from pytest->executorch==0.6.0a0+319c8d7)
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
Downloading pluggy-1.5.0-py3-none-any.whl.metadata (4.8 kB)
Collecting execnet>=2.1 (from pytest-xdist->executorch==0.6.0a0+319c8d7)
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
Downloading 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+319c8d7)
Obtaining dependency information for ruamel.yaml.clib>=0.2.7 from https://files.pythonhosted.org/packages/68/6e/264c50ce2a31473a9fdbf4fa66ca9b2b17c7455b31ef585462343818bd6c/ruamel.yaml.clib-0.2.12-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
Downloading ruamel.yaml.clib-0.2.12-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.7 kB)
Collecting six>=1.5 (from python-dateutil>=2.8.2->pandas>=2.2.2->executorch==0.6.0a0+319c8d7)
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)
Downloading expecttest-0.3.0-py3-none-any.whl (8.2 kB)
Downloading flatbuffers-25.2.10-py2.py3-none-any.whl (30 kB)
Downloading hypothesis-6.125.3-py3-none-any.whl (480 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 480.8/480.8 kB 16.5 MB/s eta 0:00:00
Downloading parameterized-0.9.0-py2.py3-none-any.whl (20 kB)
Downloading pytest-8.3.4-py3-none-any.whl (343 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 343.1/343.1 kB 15.3 MB/s eta 0:00:00
Downloading pytest_rerunfailures-15.0-py3-none-any.whl (13 kB)
Downloading pytest_xdist-3.6.1-py3-none-any.whl (46 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.1/46.1 kB 6.9 MB/s eta 0:00:00
Downloading ruamel.yaml-0.18.10-py3-none-any.whl (117 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 117.7/117.7 kB 7.1 MB/s eta 0:00:00
Downloading tabulate-0.9.0-py3-none-any.whl (35 kB)
Downloading attrs-25.1.0-py3-none-any.whl (63 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.2/63.2 kB 8.4 MB/s eta 0:00:00
Downloading execnet-2.1.1-py3-none-any.whl (40 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 40.6/40.6 kB 5.5 MB/s eta 0:00:00
Downloading 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)
Downloading pytz-2025.1-py2.py3-none-any.whl (507 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 507.9/507.9 kB 4.6 MB/s eta 0:00:00
Downloading ruamel.yaml.clib-0.2.12-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (739 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 739.1/739.1 kB 5.8 MB/s eta 0:00:00
Downloading sortedcontainers-2.4.0-py2.py3-none-any.whl (29 kB)
Downloading tzdata-2025.1-py2.py3-none-any.whl (346 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 346.8/346.8 kB 9.8 MB/s eta 0:00:00
Downloading iniconfig-2.0.0-py3-none-any.whl (5.9 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)
/home/warden/source/executorch/.venv/lib/python3.11/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.linux-x86_64-cpython-311
build_lib = pip-out/lib.linux-x86_64-cpython-311
build_scripts = pip-out/scripts-3.11
build_temp = pip-out/temp.linux-x86_64-cpython-311
plat_name = linux-x86_64
compiler = None
parallel = 31
debug = None
force = None
executable = /home/warden/source/executorch/.venv/bin/python3
creating /home/warden/source/executorch/pip-out
creating /home/warden/source/executorch/pip-out/temp.linux-x86_64-cpython-311
creating /home/warden/source/executorch/pip-out/temp.linux-x86_64-cpython-311/cmake-out
deleting /home/warden/source/executorch/pip-out/temp.linux-x86_64-cpython-311/cmake-out/CMakeCache.txt
Traceback (most recent call last):
File "<string>", line 640, in run
File "/usr/lib/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cmake', '-S', '/home/warden/source/executorch', '-B', '/home/warden/source/executorch/pip-out/temp.linux-x86_64-cpython-311/cmake-out', '-DBUCK2=', '-DPYTHON_EXECUTABLE=/home/warden/source/executorch/.venv/bin/python3', '-DCMAKE_PREFIX_PATH=/home/warden/source/executorch/.venv/lib/python3.11/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_KERNELS_CUSTOM=ON', '-DEXECUTORCH_BUILD_KERNELS_CUSTOM_AOT=ON', '-DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON', '-DEXECUTORCH_BUILD_KERNELS_QUANTIZED_AOT=ON', '-DEXECUTORCH_BUILD_XNNPACK=ON']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/warden/source/executorch/.venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/home/warden/source/executorch/.venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/warden/source/executorch/.venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/warden/source/executorch/.venv/lib/python3.11/site-packages/setuptools/build_meta.py", line 412, in build_wheel
return self._build_with_temp_dir(['bdist_wheel'], '.whl',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/warden/source/executorch/.venv/lib/python3.11/site-packages/setuptools/build_meta.py", line 397, in _build_with_temp_dir
self.run_setup()
File "/home/warden/source/executorch/.venv/lib/python3.11/site-packages/setuptools/build_meta.py", line 335, in run_setup
exec(code, locals())
File "<string>", line 742, in <module>
File "/home/warden/source/executorch/.venv/lib/python3.11/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/warden/source/executorch/.venv/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/home/warden/source/executorch/.venv/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/home/warden/source/executorch/.venv/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
self.run_command(cmd)
File "/home/warden/source/executorch/.venv/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/home/warden/source/executorch/.venv/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/home/warden/source/executorch/.venv/lib/python3.11/site-packages/wheel/_bdist_wheel.py", line 387, in run
self.run_command("build")
File "/home/warden/source/executorch/.venv/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
self.distribution.run_command(command)
File "/home/warden/source/executorch/.venv/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/home/warden/source/executorch/.venv/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "<string>", line 660, 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.
Command - /home/warden/source/executorch/.venv/bin/python3;-m;codegen.tools.gen_oplist;--output_path=/home/warden/source/executorch/pip-out/temp.linux-x86_64-cpython-311/cmake-out/kernels/portable/portable_ops_lib/selected_operators.yaml;--ops_schema_yaml_path="/home/warden/source/executorch/kernels/portable/functions.yaml"
Generated files /home/warden/source/executorch/pip-out/temp.linux-x86_64-cpython-311/cmake-out/kernels/portable/portable_ops_lib/RegisterCodegenUnboxedKernelsEverything.cpp;/home/warden/source/executorch/pip-out/temp.linux-x86_64-cpython-311/cmake-out/kernels/portable/portable_ops_lib/Functions.h;/home/warden/source/executorch/pip-out/temp.linux-x86_64-cpython-311/cmake-out/kernels/portable/portable_ops_lib/NativeFunctions.h
CMake Warning at .venv/lib/python3.11/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:22 (message):
static library kineto_LIBRARY-NOTFOUND not found.
Call Stack (most recent call first):
.venv/lib/python3.11/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:125 (append_torchlib_if_found)
build/Utils.cmake:340 (find_package)
CMakeLists.txt:619 (find_package_torch_headers)
Command - /home/warden/source/executorch/.venv/bin/python3;-m;codegen.tools.gen_oplist;--output_path=/home/warden/source/executorch/pip-out/temp.linux-x86_64-cpython-311/cmake-out/kernels/optimized/optimized_ops_lib/selected_operators.yaml;--ops_schema_yaml_path="/home/warden/source/executorch/kernels/optimized/optimized-oss.yaml"
Generated files /home/warden/source/executorch/pip-out/temp.linux-x86_64-cpython-311/cmake-out/kernels/optimized/optimized_ops_lib/RegisterCodegenUnboxedKernelsEverything.cpp;/home/warden/source/executorch/pip-out/temp.linux-x86_64-cpython-311/cmake-out/kernels/optimized/optimized_ops_lib/Functions.h;/home/warden/source/executorch/pip-out/temp.linux-x86_64-cpython-311/cmake-out/kernels/optimized/optimized_ops_lib/NativeFunctions.h
Command - /home/warden/source/executorch/.venv/bin/python3;-m;codegen.tools.gen_oplist;--output_path=/home/warden/source/executorch/pip-out/temp.linux-x86_64-cpython-311/cmake-out/configurations/optimized_native_cpu_ops_lib/selected_operators.yaml;--ops_schema_yaml_path="/home/warden/source/executorch/pip-out/temp.linux-x86_64-cpython-311/cmake-out/configurations/merged.yaml"
Generated files /home/warden/source/executorch/pip-out/temp.linux-x86_64-cpython-311/cmake-out/configurations/optimized_native_cpu_ops_lib/RegisterCodegenUnboxedKernelsEverything.cpp;/home/warden/source/executorch/pip-out/temp.linux-x86_64-cpython-311/cmake-out/configurations/optimized_native_cpu_ops_lib/Functions.h;/home/warden/source/executorch/pip-out/temp.linux-x86_64-cpython-311/cmake-out/configurations/optimized_native_cpu_ops_lib/NativeFunctions.h
CMake Deprecation Warning at third-party/gflags/CMakeLists.txt:73 (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 third-party/pybind11/CMakeLists.txt:13 (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 third-party/flatcc/CMakeLists.txt:2 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
Command - /home/warden/source/executorch/.venv/bin/python3;-m;codegen.tools.gen_oplist;--output_path=/home/warden/source/executorch/pip-out/temp.linux-x86_64-cpython-311/cmake-out/kernels/quantized/quantized_ops_lib/selected_operators.yaml;--ops_schema_yaml_path="/home/warden/source/executorch/kernels/quantized/quantized.yaml"
Generated files /home/warden/source/executorch/pip-out/temp.linux-x86_64-cpython-311/cmake-out/kernels/quantized/quantized_ops_lib/RegisterCodegenUnboxedKernelsEverything.cpp;/home/warden/source/executorch/pip-out/temp.linux-x86_64-cpython-311/cmake-out/kernels/quantized/quantized_ops_lib/Functions.h;/home/warden/source/executorch/pip-out/temp.linux-x86_64-cpython-311/cmake-out/kernels/quantized/quantized_ops_lib/NativeFunctions.h;/home/warden/source/executorch/pip-out/temp.linux-x86_64-cpython-311/cmake-out/kernels/quantized/quantized_ops_lib/RegisterCPUCustomOps.cpp;/home/warden/source/executorch/pip-out/temp.linux-x86_64-cpython-311/cmake-out/kernels/quantized/quantized_ops_lib/RegisterSchema.cpp;/home/warden/source/executorch/pip-out/temp.linux-x86_64-cpython-311/cmake-out/kernels/quantized/quantized_ops_lib/CustomOpsNativeFunctions.h
Command - /home/warden/source/executorch/.venv/bin/python3;-m;codegen.tools.gen_oplist;--output_path=/home/warden/source/executorch/pip-out/temp.linux-x86_64-cpython-311/cmake-out/kernels/quantized/quantized_ops_aot_lib/selected_operators.yaml;--root_ops="quantized_decomposed::add.out;quantized_decomposed::choose_qparams.Tensor_out;quantized_decomposed::choose_qparams_per_token_asymmetric.out;quantized_decomposed::dequantize_per_channel.out;quantized_decomposed::dequantize_per_tensor.out;quantized_decomposed::dequantize_per_tensor.Tensor_out;quantized_decomposed::dequantize_per_token.out;quantized_decomposed::mixed_linear.out;quantized_decomposed::mixed_mm.out;quantized_decomposed::quantize_per_channel.out;quantized_decomposed::quantize_per_tensor.out;quantized_decomposed::quantize_per_tensor.Tensor_out;quantized_decomposed::quantize_per_token.out"
Command - /home/warden/source/executorch/.venv/bin/python3;-m;codegen.tools.gen_oplist;--output_path=/home/warden/source/executorch/pip-out/temp.linux-x86_64-cpython-311/cmake-out/kernels/quantized/quantized_ops_pybind_lib/selected_operators.yaml;--ops_schema_yaml_path="/home/warden/source/executorch/kernels/quantized/quantized.yaml"
CMake Error in CMakeLists.txt:
Imported target "pybind11::module" includes non-existent path
"/usr/include/python3.11"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.
CMake Generate step failed. Build files cannot be regenerated correctly.
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: /home/warden/source/executorch/.venv/bin/python3 /home/warden/source/executorch/.venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /tmp/tmpff_djhi6
cwd: /home/warden/source/executorch
Building wheel for executorch (pyproject.toml) ... error
ERROR: Failed building wheel for executorch
Failed to build executorch
ERROR: Could not build wheels for executorch, which is required to install pyproject.toml-based projects
[notice] A new release of pip is available: 24.0 -> 25.0.1
[notice] To update, run: pip install --upgrade pip
Traceback (most recent call last):
File "/home/warden/source/executorch/./install_executorch.py", line 245, in <module>
main(sys.argv[1:])
File "/home/warden/source/executorch/./install_executorch.py", line 223, in main
subprocess.run(
File "/usr/lib/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/home/warden/source/executorch/.venv/bin/python3', '-m', 'pip', 'install', '.', '--no-build-isolation', '-v', '--extra-index-url', 'https://download.pytorch.org/whl/nightly/cpu']' returned non-zero exit status 1.
Versions
Operating System Information
Linux Vikander 6.8.0-51-generic #52-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec 5 13:09:44 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
PRETTY_NAME="Ubuntu 24.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.1 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
Python Version
Python 3.11.11
PIP Version
pip 24.0 from /home/warden/source/executorch/.venv/lib/python3.11/site-packages/pip (python 3.11)
Installed Packages
certifi==2025.1.31
charset-normalizer==3.4.1
cmake==3.31.4
filelock==3.17.0
fsspec==2025.2.0
huggingface-hub==0.28.1
idna==3.10
Jinja2==3.1.5
MarkupSafe==3.0.2
mpmath==1.3.0
networkx==3.4.2
numpy==2.2.3
packaging==24.2
pillow==11.1.0
PyYAML==6.0.2
regex==2024.11.6
requests==2.32.3
safetensors==0.5.2
sympy==1.13.1
timm==1.0.7
tokenizers==0.21.0
tomli==2.2.1
torch==2.7.0.dev20250131+cpu
torchao @ file:///home/warden/source/executorch/third-party/ao
torchaudio==2.6.0.dev20250131+cpu
torchsr==1.0.4
torchvision==0.22.0.dev20250131+cpu
tqdm==4.67.1
transformers==4.47.1
typing_extensions==4.12.2
urllib3==2.3.0
zstd==1.5.6.1
PyTorch Version
2.7.0.dev20250131+cpu
Collection Complete
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
swolchok commentedon Feb 14, 2025
Looks like python3-dev (whatever the full package is called) is missing? not sure exactly what the requirement is supposed to be there...
larryliu0820 commentedon Feb 14, 2025
Please try
sudo apt install python3.11-devAdd python-dev install to FAQ