-
Notifications
You must be signed in to change notification settings - Fork 536
Building wheel for executorch (pyproject.toml) did not run successfully. #8874
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
Comments
@jathu and @larryliu0820 , could you help on this issue? |
Hello @ManojShanmugamTruminds can you run the following command and attach logs?
|
Tried below command ld: symbol(s) not found for architecture x86_64 × Building wheel for executorch (pyproject.toml) did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. |
@ManojShanmugamTruminds Hi thanks for the quick reply. Can you do
And paste |
Can you uninstall
And try ExecuTorch again? |
Uninstalled pip uninstall torch . Still getting error ld: symbol(s) not found for architecture x86_64 × Building wheel for executorch (pyproject.toml) did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. |
Can I get your log.txt again? |
Hi sorry I don't think you uninstalled torch properly. Please make sure you don't see anything under
After you uninstall torch. |
Hi can you do
or
|
Are you on mac m1+? The thing is your pip is installing torch with a different arch flavor (arm64) than what ExecuTorch expects (x86_64). I think your pip or python is not built for your mac. |
@ManojShanmugamTruminds ok can you try:
|
Tried this command ld: symbol(s) not found for architecture x86_64 × Building wheel for executorch (pyproject.toml) did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. |
I think your whole environment is messed up. Your pip thinks you are on x86_64 which is incorrect. Can you start a new conda? Try:
|
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
The text was updated successfully, but these errors were encountered: