UPDATE: This may take a while...
The problem
- Profila currently uses GDB to get stacktraces, using the Machine Interface ("MI") protocol.
- GDB doesn't work on macOS ARM, only
lldb currently works.
lldb-mi is third-party tool supposedly compatible with GDB MI, but not readily available on macOS. E.g. VS Code plugins will ship it themselves.
Potential solutions
- Switch to non-debugger method of getting stack traces; need something that relies on
debuginfo in the way debuggers do. Initial experiments have failed, this is why there hasn't been profiling support for Numba until now! But will keep trying.
- Ship
lldb-mi in the wheel.
- Convince some kind soul to package
lldb-mi for Homebrew.
- GDB adds support for macOS ARM.
- Figure out a different way than MI to control lldb. The remote server protocol (same as GDB?) might work. Or there's https://pypi.org/project/hilda/ which either might be usable or might be a reasonable example. https://lib.rs/crates/lldb is another potential solution.
Workaround
On macOS, use Docker, Podman, or a VM to get a Linux environment.
UPDATE: This may take a while...
The problem
lldbcurrently works.lldb-miis third-party tool supposedly compatible with GDB MI, but not readily available on macOS. E.g. VS Code plugins will ship it themselves.Potential solutions
debuginfoin the way debuggers do. Initial experiments have failed, this is why there hasn't been profiling support for Numba until now! But will keep trying.lldb-miin the wheel.lldb-mifor Homebrew.Workaround
On macOS, use Docker, Podman, or a VM to get a Linux environment.