smol-rs / fastrand

A simple and fast random number generator
Apache License 2.0
386 stars 33 forks source link

fails to build with musl rust #80

Closed lolbinarycat closed 3 months ago

lolbinarycat commented 6 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 6 months ago

master tests pass on my Alpine Linux machine.

image

Could you provide more information?

lolbinarycat commented 6 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 6 months ago

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

taiki-e commented 3 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).