Skip to content

could not find ucontext in nix for aarch64-linux-android #2360

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

Closed
yujack008 opened this issue Apr 11, 2024 · 4 comments
Closed

could not find ucontext in nix for aarch64-linux-android #2360

yujack008 opened this issue Apr 11, 2024 · 4 comments
Milestone

Comments

@yujack008
Copy link

yujack008 commented Apr 11, 2024

error[E0433]: failed to resolve: could not find ucontext in nix
--> src\main.rs:22:39
|
22 | if let Ok(context) = nix::ucontext::UContext::get() {
| ^^^^^^^^ could not find ucontext in nix

nix = { version = "0.28.0", features = ["signal","ucontext"] }

@SteveLauC
Copy link
Member

Yeah, it is currently exclusive to Linux, we can add it for Android if the required libc types and constants are available

@asomers asomers added this to the 0.29.0 milestone May 16, 2024
@asomers
Copy link
Member

asomers commented May 16, 2024

@SteveLauC
Copy link
Member

SteveLauC commented May 16, 2024

Yeah, it seems that they are not implemented on Android.

$ cd bionic
$ rg "setcontext"
$ rg "getcontext"
$

@asomers
Copy link
Member

asomers commented May 16, 2024

So there's nothing we can do.

@asomers asomers closed this as completed May 16, 2024
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

3 participants