Skip to content

Installation on macOS (M1) fails #1763

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

Open
gregorFeigel opened this issue Mar 1, 2025 · 0 comments
Open

Installation on macOS (M1) fails #1763

gregorFeigel opened this issue Mar 1, 2025 · 0 comments

Comments

@gregorFeigel
Copy link

gregorFeigel commented Mar 1, 2025

I tried to install pyOCD as part of the Zephyr SDK on my Mac Mini M1. However, I'm facing an issue:

No matter if using the zephyr installer command west packages pip --install or use pip install pyocd, pip install --no-binary capstone pyocd or python3 -mpip install -U pyocd, the installation always fails with:

Using cached pycparser-2.22-py3-none-any.whl (117 kB)
Building wheels for collected packages: capstone
  Building wheel for capstone (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [71 lines of output]
      running bdist_wheel
      running build
# ....
 arch/M680X/M680XDisassembler.c:2124:20: warning: variable 's_cpu_type' is not needed and will not be emitted [-Wunneeded-internal-declaration]
       2124 | static const char *s_cpu_type[] = {
            |                    ^~~~~~~~~~
        CC      arch/EVM/EVMInstPrinter.o
        CC      arch/EVM/EVMMapping.o
        CC      arch/EVM/EVMModule.o
        CC      MCInst.o
        GEN     capstone.pc
      1 warning generated.
        LINK    libcapstone.so.4
        AR      libcapstone.a
      ar: creating archive ./libcapstone.a
      ld: unknown options: -soname
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      make: *** [libcapstone.so.4] Error 1
      error: [Errno 2] No such file or directory: 'libcapstone.4dylib'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for capstone
  Running setup.py clean for capstone
Failed to build capstone
ERROR: Failed to build installable wheels for some pyproject.toml based projects (capstone)

or

# ... 
Building wheels for collected packages: capstone
  Building wheel for capstone (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [72 lines of output]
      running bdist_wheel
      running build
      Building C extensions
# ..
      error: [Errno 2] No such file or directory: 'libcapstone.4.dylib'
      [end of output]
  
  note: This error originates from a subprocess and is likely not a problem with pip.
  ERROR: Failed building wheel for capstone
  Running setup.py clean for capstone
Failed to build capstone
ERROR: Failed to build installable wheels for some pyproject.toml-based projects (capstone)
Traceback (most recent call last):
  File "/Users/REDACTED/zephyrproject/.venv/lib/python3.13/site-packages/west/app/main.py", line 561, in run_command
    self.run_extension(args.command, argv)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
  File "/Users/REDACTED/zephyrproject/.venv/lib/python3.13/site-packages/west/app/main.py", line 716, in run_extension
    self.cmd.run(args, unknown, self.topdir, manifest=self.manifest,
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                 config=self.config)
                 ^^^^^^^^^^^^^^^^^^^
# ... (much more)

Would be happy if someone can help me out, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant