Skip to content

Instantly share code, notes, and snippets.

@himanshunaidu
Last active April 14, 2025 20:04
Show Gist options
  • Save himanshunaidu/8cc557347b1d2d925900bdbab75f2d3d to your computer and use it in GitHub Desktop.
Save himanshunaidu/8cc557347b1d2d925900bdbab75f2d3d to your computer and use it in GitHub Desktop.
Executorch pip wheel build error before cmake downgrade
Building wheels for collected packages: executorch
Running command Building wheel for executorch (pyproject.toml)
running bdist_wheel
running build
command options for 'CustomBuild':
build_base = pip-out
build_purelib = pip-out/lib
build_platlib = pip-out/lib.macosx-11.1-arm64-cpython-312
build_lib = pip-out/lib.macosx-11.1-arm64-cpython-312
build_scripts = pip-out/scripts-3.12
build_temp = pip-out/temp.macosx-11.1-arm64-cpython-312
plat_name = macosx-11.1-arm64
compiler = None
parallel = 7
debug = None
force = None
executable = /opt/anaconda3/envs/executorch_0.5/bin/python
deleting /Users/REDACTED_USER/Desktop/Executorch/executorch/pip-out/temp.macosx-11.1-arm64-cpython-312/cmake-out/CMakeCache.txt
cmake -S /Users/REDACTED_USER/Desktop/Executorch/executorch -B /Users/REDACTED_USER/Desktop/Executorch/executorch/pip-out/temp.macosx-11.1-arm64-cpython-312/cmake-out -DBUCK2= -DPYTHON_EXECUTABLE=/opt/anaconda3/envs/executorch_0.5/bin/python -DCMAKE_PREFIX_PATH=/opt/anaconda3/envs/executorch_0.5/lib/python3.12/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_COREML=ON -DEXECUTORCH_BUILD_MPS=ON
-- The C compiler identification is AppleClang 16.0.0.16000026
-- The CXX compiler identification is AppleClang 16.0.0.16000026
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
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.
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Using python executable '/opt/anaconda3/envs/executorch_0.5/bin/python'
-- Resolved buck2 as /Users/REDACTED_USER/Desktop/Executorch/executorch/buck2-bin/buck2-99773fe6f7963a72ae5f7b737c02836e.
-- Killing buck2 daemon
'/Users/REDACTED_USER/Desktop/Executorch/executorch/buck2-bin/buck2-99773fe6f7963a72ae5f7b737c02836e killall'
-- executorch: Generating source lists
-- executorch: Generating source file list /Users/REDACTED_USER/Desktop/Executorch/executorch/pip-out/temp.macosx-11.1-arm64-cpython-312/cmake-out/executorch_srcs.cmake
-- executorch: Using sources file /Users/REDACTED_USER/Desktop/Executorch/executorch/pip-out/temp.macosx-11.1-arm64-cpython-312/cmake-out/executorch_srcs.cmake
-- Proceeding with version: 24.3.25.0
-- Looking for strtof_l
-- Looking for strtof_l - not found
-- Looking for strtoull_l
-- Looking for strtoull_l - not found
-- Looking for realpath
-- Looking for realpath - found
-- CMAKE_CXX_FLAGS:
-- executorch: Using PAL default 'posix'
-- Generating operator lib:
-- LIB_NAME: portable_ops_lib
-- OPS_SCHEMA_YAML: /Users/REDACTED_USER/Desktop/Executorch/executorch/kernels/portable/functions.yaml
-- ROOT_OPS:
-- INCLUDE_ALL_OPS:
Command - /opt/anaconda3/envs/executorch_0.5/bin/python;-m;codegen.tools.gen_oplist;--output_path=/Users/REDACTED_USER/Desktop/Executorch/executorch/pip-out/temp.macosx-11.1-arm64-cpython-312/cmake-out/kernels/portable/portable_ops_lib/selected_operators.yaml;--ops_schema_yaml_path="/Users/himanshu/Desktop/Executorch/executorch/kernels/portable/functions.yaml"
-- Generating kernel bindings:
-- LIB_NAME: portable_ops_lib
-- FUNCTIONS_YAML: /Users/REDACTED_USER/Desktop/Executorch/executorch/kernels/portable/functions.yaml
-- CUSTOM_OPS_YAML:
Generated files /Users/REDACTED_USER/Desktop/Executorch/executorch/pip-out/temp.macosx-11.1-arm64-cpython-312/cmake-out/kernels/portable/portable_ops_lib/RegisterCodegenUnboxedKernelsEverything.cpp;/Users/himanshu/Desktop/Executorch/executorch/pip-out/temp.macosx-11.1-arm64-cpython-312/cmake-out/kernels/portable/portable_ops_lib/Functions.h;/Users/himanshu/Desktop/Executorch/executorch/pip-out/temp.macosx-11.1-arm64-cpython-312/cmake-out/kernels/portable/portable_ops_lib/NativeFunctions.h
-- Generating operator lib:
-- LIB_NAME: portable_ops_lib
-- KERNEL_LIBS: portable_kernels
-- DEPS: executorch
-- Generating operator lib:
-- LIB_NAME: optimized_ops_lib
-- OPS_SCHEMA_YAML: /Users/REDACTED_USER/Desktop/Executorch/executorch/kernels/optimized/optimized-oss.yaml
-- ROOT_OPS:
-- INCLUDE_ALL_OPS:
Command - /opt/anaconda3/envs/executorch_0.5/bin/python;-m;codegen.tools.gen_oplist;--output_path=/Users/REDACTED_USER/Desktop/Executorch/executorch/pip-out/temp.macosx-11.1-arm64-cpython-312/cmake-out/kernels/optimized/optimized_ops_lib/selected_operators.yaml;--ops_schema_yaml_path="/Users/himanshu/Desktop/Executorch/executorch/kernels/optimized/optimized-oss.yaml"
-- Generating kernel bindings:
-- LIB_NAME: optimized_ops_lib
-- FUNCTIONS_YAML: /Users/REDACTED_USER/Desktop/Executorch/executorch/kernels/optimized/optimized-oss.yaml
-- CUSTOM_OPS_YAML:
Generated files /Users/REDACTED_USER/Desktop/Executorch/executorch/pip-out/temp.macosx-11.1-arm64-cpython-312/cmake-out/kernels/optimized/optimized_ops_lib/RegisterCodegenUnboxedKernelsEverything.cpp;/Users/himanshu/Desktop/Executorch/executorch/pip-out/temp.macosx-11.1-arm64-cpython-312/cmake-out/kernels/optimized/optimized_ops_lib/Functions.h;/Users/himanshu/Desktop/Executorch/executorch/pip-out/temp.macosx-11.1-arm64-cpython-312/cmake-out/kernels/optimized/optimized_ops_lib/NativeFunctions.h
-- Generating operator lib:
-- LIB_NAME: optimized_ops_lib
-- KERNEL_LIBS: optimized_kernels
-- DEPS: executorch
-- Merging kernel yaml files:
-- FUNCTIONS_YAML: /Users/REDACTED_USER/Desktop/Executorch/executorch/configurations/../kernels/optimized/optimized-oss.yaml
-- FALLBACK_YAML: /Users/REDACTED_USER/Desktop/Executorch/executorch/configurations/../kernels/portable/functions.yaml
-- OUTPUT_DIR: /Users/REDACTED_USER/Desktop/Executorch/executorch/pip-out/temp.macosx-11.1-arm64-cpython-312/cmake-out/configurations
-- Generating operator lib:
-- LIB_NAME: optimized_native_cpu_ops_lib
-- OPS_SCHEMA_YAML: /Users/REDACTED_USER/Desktop/Executorch/executorch/pip-out/temp.macosx-11.1-arm64-cpython-312/cmake-out/configurations/merged.yaml
-- ROOT_OPS:
-- INCLUDE_ALL_OPS:
Command - /opt/anaconda3/envs/executorch_0.5/bin/python;-m;codegen.tools.gen_oplist;--output_path=/Users/REDACTED_USER/Desktop/Executorch/executorch/pip-out/temp.macosx-11.1-arm64-cpython-312/cmake-out/configurations/optimized_native_cpu_ops_lib/selected_operators.yaml;--ops_schema_yaml_path="/Users/himanshu/Desktop/Executorch/executorch/pip-out/temp.macosx-11.1-arm64-cpython-312/cmake-out/configurations/merged.yaml"
-- Generating kernel bindings:
-- LIB_NAME: optimized_native_cpu_ops_lib
-- FUNCTIONS_YAML: /Users/REDACTED_USER/Desktop/Executorch/executorch/pip-out/temp.macosx-11.1-arm64-cpython-312/cmake-out/configurations/merged.yaml
-- CUSTOM_OPS_YAML:
Generated files /Users/REDACTED_USER/Desktop/Executorch/executorch/pip-out/temp.macosx-11.1-arm64-cpython-312/cmake-out/configurations/optimized_native_cpu_ops_lib/RegisterCodegenUnboxedKernelsEverything.cpp;/Users/himanshu/Desktop/Executorch/executorch/pip-out/temp.macosx-11.1-arm64-cpython-312/cmake-out/configurations/optimized_native_cpu_ops_lib/Functions.h;/Users/himanshu/Desktop/Executorch/executorch/pip-out/temp.macosx-11.1-arm64-cpython-312/cmake-out/configurations/optimized_native_cpu_ops_lib/NativeFunctions.h
-- Generating operator lib:
-- LIB_NAME: optimized_native_cpu_ops_lib
-- KERNEL_LIBS: portable_kernels;optimized_kernels
-- DEPS: executorch
CMake Error at third-party/gflags/CMakeLists.txt:73 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from 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.
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
-- Configuring incomplete, errors occurred!
error: command '/opt/anaconda3/envs/executorch_0.5/bin/cmake' failed with exit code 1
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: /opt/anaconda3/envs/executorch_0.5/bin/python /opt/anaconda3/envs/executorch_0.5/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /var/folders/yd/c7lfj7x549724qswqhxskfz40000gn/T/tmp3axlogmf
cwd: /Users/REDACTED_USER/Desktop/Executorch/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 "/Users/REDACTED_USER/Desktop/Executorch/executorch/./install_requirements.py", line 199, in <module>
subprocess.run(
File "/opt/anaconda3/envs/executorch_0.5/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/opt/anaconda3/envs/executorch_0.5/bin/python', '-m', 'pip', 'install', '.', '--no-build-isolation', '-v', '--extra-index-url', 'https://download.pytorch.org/whl/cpu']' returned non-zero exit status 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment