You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The NTP sampler uses some libc functions which are present in
glibc but not in musl libc. This causes the build to fail under
Alpine as reported in twitter#216
Fixes the build issue by specializing the NTP sampler using
conditional compilation for the target env. Currently, this means
that the NTP sampling is a no-op for musl targets.
Adds a simple build-only CI pass for a musl target, which is
appropriate given that the musl target is tier 2 for Rust, meaning
it is only guaranteed to build and may not product a working
build.
Rezolus should now build for musl target.
The NTP sampler uses some libc functions which are present in
glibc but not in musl libc. This causes the build to fail under
Alpine as reported in #216
Fixes the build issue by specializing the NTP sampler using
conditional compilation for the target env. Currently, this means
that the NTP sampling is a no-op for musl targets.
Adds a simple build-only CI pass for a musl target, matching its
tier 2 status for Rust overall.
Describe the bug
ntp sampler fails to build on a system with musl libc (Alpine Linux):
To Reproduce
Steps to reproduce the behavior:
Build the project on Alpine Linux Edge.
apk add build-base cargo
wget https://github.com/twitter/rezolus/archive/v2.11.1.tar.gz && tar -xzf v2.11.1.tar.gz && cd rezolus-2.11.1
cargo build --release --locked
Expected behavior
The build should complete successfully.
Environment
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: