bytecodealliance / bytecodealliance/cranelift-jit-demo
Not compiled on fedora with 'selinux-fix' feature
- Dominant language
- Rust
- Stars
- 763
- Forks
- 65
- PR merge metrics
- No merged PRs in 30d
Description
Error when compile on linux with
cranelift-jit = { version = "0.79", features = ['selinux-fix'] }
With versions 0.77, 0.78 also not compiled.
error[E0308]: mismatched types
--> /home/ali/.cargo/registry/src/github.com-1ecc6299db9ec823/cranelift-jit-0.79.0/src/memory.rs:37:9
|
35 | fn with_size(size: usize) -> io::Result {
| ---------------- expected `std::result::Result` because of return type
36 | let alloc_size = region::page::ceil(size);
37 | / MmapMut::map_anon(alloc_size).map(|mut mmap| {
38 | | // The order here is important; we assign the pointer first to get
39 | | // around compile time borrow errors.
40 | | Ok(Self {
... |
44 | | })
45 | | })
| |__________^ expected struct `PtrLen`, found enum `std::result::Result`
|
= note: expected enum `std::result::Result`
found enum `std::result::Result, _>`
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure with the cranelift-jit 0.79 dependency and the `selinux-fix` feature on Fedora, then inspect the reported `cranelift-jit-0.79.0/src/memory.rs` `MmapMut::map_anon` call and the dependency declaration shown in the issue. Done means the project compiles successfully with that feature on the affected platform.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fedora, linux, rust
- Domain
- build-system, compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100