wasmerio / wasmer

🚀 The leading Wasm Runtime supporting WASIX, WASI and Emscripten
https://wasmer.io
MIT License
18.52k stars 793 forks source link

Dos not compile for x86 #4244

Open xNxExOx opened 11 months ago

xNxExOx commented 11 months ago

Describe the bug

Just having the wasmer crate referenced, without doing anything causes compilation errors.

Steps to reproduce

1, Cargo.toml add wasmer = "4.2.2"

  1. cargo build (If you are on different platform use i686-pc-windows-msvc as target)

Expected behavior

Build passes without errors.

Actual behavior

error[E0609]: no field `Rip` on type `&winapi::um::winnt::CONTEXT`
   --> D:\rs\wasmer\lib\vm\src\trap\traphandlers.rs:532:34
    |
532 |                     pc = context.Rip as usize;
    |                                  ^^^ help: a field with a similar name exists: `Eip`

Additional context

Resolving this error leads to more and more errors.

ptitSeb commented 11 months ago

There is no build support for 32bits platform for now. Adding 32bits support would require many change in the memory management, so it's not planned for now.