Closed ptrcnull closed 1 year ago
As I mentioned, malloc_trim
is also used in the two_percent
crate; the command I posted to reproduce the issue still fails (after changing the source to git HEAD instead of crates.io: cargo install --git https://github.com/kimono-koans/httm
)
error[E0425]: cannot find function `malloc_trim` in crate `libc`
--> cargo/registry/src/github.com-1ecc6299db9ec823/two_percent-0.10.18/src/lib.rs:341:27
|
341 | let _ = libc::malloc_trim(0);
| ^^^^^^^^^^^ not found in `libc`
As I mentioned,
malloc_trim
is also used in thetwo_percent
crate
Ooops, my mistake, will you check to see if the following fixes?: https://github.com/kimono-koans/httm/releases/tag/0.27.2
0.27.2
builds properly now, thank you!
Describe the bug When building
httm
with musl libc, for example on Alpine Linux, the build fails with the following:To Reproduce
Expected behavior A additional
target_env = "gnu"
guard beforelibc::malloc_trim
, both in httm itself and in the two_percent crate.Additional context
httm
version: 0.27.0