smol-rs / fastrand

A simple and fast random number generator
Apache License 2.0
409 stars 35 forks source link

fails to build with musl rust #80

Closed lolbinarycat closed 4 months ago

lolbinarycat commented 7 months ago

i tried using nixpkgs pkgsMusl.rustc to build a package that depends on this crate, but it fails due to a glibc-specific function in std::sys being called.

notgull commented 7 months ago

master tests pass on my Alpine Linux machine.

image

Could you provide more information?

lolbinarycat commented 7 months ago

Could you provide more information?

once i'm back at my laptop, sure.

could you provide the output of ldd /usr/bin/ldd?

taiki-e commented 7 months ago

Maybe related: https://github.com/rust-lang/rust/issues/121980

taiki-e commented 4 months ago

it fails due to a glibc-specific function in std::sys being called.

Given the error is occurring here, it is very likely that the problem is nothing related to fastrand. Perhaps the rust-lang/rust issue I linked to above is the cause, but if you are still seeing the problem, please report the issue at where the thing that actually caused the error is defined (in this case, rust-lang/rust).