Skip to content

cannot find value getrandom in crate libc (mipsel-unknown-linux-musl) #641

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
brocaar opened this issue Mar 26, 2025 · 3 comments
Closed

Comments

@brocaar
Copy link

brocaar commented Mar 26, 2025

I'm having difficulties building this crate for MIPS. When building this crate I get:

error[E0425]: cannot find value `getrandom` in crate `libc`
  --> /home/brocaar/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/getrandom-0.3.2/src/backends/linux_android_with_fallback.rs:34:39
   |
34 |         let fptr: GetRandomFn = libc::getrandom;
   |                                       ^^^^^^^^^ not found in `libc`

As this might as well be a bug in libc, I have also created the following iss:
rust-lang/libc#4354

@newpavlov
Copy link
Member

newpavlov commented Mar 26, 2025

Should be fixed by rust-lang/libc#4346, so we just need a new libc release.

@newpavlov
Copy link
Member

libc v0.2.172 with the fix is released.

@brocaar
Copy link
Author

brocaar commented Apr 17, 2025 via email

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

2 participants