pytorch / pytorch/executorch

Building wheel for executorch (pyproject.toml) did not run successfully.

Open
#8,874 17 comments 0 reactions 2 assignees View on GitHub

@larryliu0820 is already working on this.

Since Mar 3, 2025.

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

Description

ld: symbol(s) not found for architecture x86_64
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[3]: *** [extension/llm/custom_ops/CMakeFiles/custom_ops_aot_lib.dir/build.make:271: extension/llm/custom_ops/libcustom_ops_aot_lib.dylib] Error 1
gmake[2]: *** [CMakeFiles/Makefile2:2662: extension/llm/custom_ops/CMakeFiles/custom_ops_aot_lib.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:2669: extension/llm/custom_ops/CMakeFiles/custom_ops_aot_lib.dir/rule] Error 2
gmake: *** [Makefile:858: custom_ops_aot_lib] Error 2
error: command '/opt/anaconda3/envs/et_mps/bin/cmake' failed with exit code 2
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/et_mps/bin/python /opt/anaconda3/envs/et_mps/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /var/folders/ys/j_jmfr7n1nlbsc4zl1tqhxmw0000gn/T/tmps4kx1bsc
cwd: /Users/manojshanmugam/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/manojshanmugam/executorch/./install_executorch.py", line 257, in
main(sys.argv[1:])
File "/Users/manojshanmugam/executorch/./install_executorch.py", line 232, in main
subprocess.run(
File "/opt/anaconda3/envs/et_mps/lib/python3.10/subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/opt/anaconda3/envs/et_mps/bin/python', '-m', 'pip', 'install', '.', '--no-build-isolation', '-v', '--extra-index-url', 'https://download.pytorch.org/whl/nightly/cpu']' returned non-zero exit status 1.

cc @larryliu0820 @lucylq

Contributor guide

Open the contributing guide

First steps

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

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.