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
error[E0425]: cannot find value `MADV_SOFT_OFFLINE` in module `c`
--> /home/buildozer/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.0.3/src/backend/libc/mm/types.rs:408:36
|
408 | LinuxSoftOffline = bitcast!(c::MADV_SOFT_OFFLINE),
| ^^^^^^^^^^^^^^^^^ not found in `c`
|
help: consider importing this constant
|
1 + use linux_raw_sys::general::MADV_SOFT_OFFLINE;
|
help: if you import `MADV_SOFT_OFFLINE`, refer to it directly
|
408 - LinuxSoftOffline = bitcast!(c::MADV_SOFT_OFFLINE),
408 + LinuxSoftOffline = bitcast!(MADV_SOFT_OFFLINE),
|
I have tried updating to 1.0.7 without success, so I forked the rustix repo and tried depending on a branch with the following naive patch:
This resolves the issue for me, and I have no other errors building wasmtime. Is this an appropriate patch to merge here, should I open a PR? Or is the lack of MADV_SOFT_OFFLINE exclusive to musl libc and not GNU libc? Is this related to the stalled loongarch64 enabling work at #1086?
It seems that some symbols are missing in rust-lang/libc for LoongArch with musl. I'll fix them later. In the meantime, could you switch to using the linux-raw backend instead?
I'm attempting to add loongarch64 support to the https://github.com/bytecodealliance/wasmtime package under Alpine Linux 3.21.
rustix
is a dependency of this package, and causes the following build error:I have tried updating to 1.0.7 without success, so I forked the rustix repo and tried depending on a branch with the following naive patch:
This resolves the issue for me, and I have no other errors building wasmtime. Is this an appropriate patch to merge here, should I open a PR? Or is the lack of
MADV_SOFT_OFFLINE
exclusive to musl libc and not GNU libc? Is this related to the stalled loongarch64 enabling work at #1086?Ping @zhaixiaojuan and @sunfishcode
The text was updated successfully, but these errors were encountered: