Skip to content
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

Native extensions (--native) on Linux aarch64 #729

Open
michalhabera opened this issue Nov 28, 2024 · 0 comments
Open

Native extensions (--native) on Linux aarch64 #729

michalhabera opened this issue Nov 28, 2024 · 0 comments

Comments

@michalhabera
Copy link

I am trying to run with --native and getting

Collecting stack traces from native extensions (`--native`) is not supported on your platform.

if I install using pip3 install py-spy. I am running this inside a privileged docker container (Docker Desktop) with ubuntu 24.04 and Python 3.12.3, on Apple M4.

So I assume that wheels are not built using the unwind feature for my platfrom. Thus I tried a manual install as

apt install libunwind-dev
maturin develop --features unwind

However, this fails when compiling python_spy.rs due to

error[E0599]: no method named `bx` found for struct `remoteprocess::libunwind::Cursor` in the current scope
   --> src/python_spy.rs:504:36
    |
504 |             if let Ok(bx) = cursor.bx() {
    |                                    ^^ method not found in `Cursor`

For more information about this error, try `rustc --explain E0599`.

I've checked the library remoteprocess that provides wrappers for libunwind here, and I can only see cursor.bx() implemented for x86_64, not for my platform (Linux d13234187034 6.10.14-linuxkit #1 SMP Thu Oct 24 19:28:55 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux), see https://github.com/benfred/remoteprocess/blob/master/src/linux/libunwind/mod.rs#L89.

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