ValorZard opened issue #13363:
Thanks for filing a bug report! Please fill out the TODOs below.
Note: if you want to report a security issue, please read our security policy!
Test Case
N/A
Steps to Reproduce
C:\github\wasmtime> cmake examples/ -- Building for: Visual Studio 16 2019 -- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.26200. -- The C compiler identification is MSVC 19.29.30159.0 -- The CXX compiler identification is MSVC 19.29.30159.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Enabling feature profiling -- Enabling feature wat -- Enabling feature cache -- Enabling feature parallel-compilation -- Enabling feature wasi -- Enabling feature wasi-http -- Enabling feature logging -- Enabling feature coredump -- Enabling feature addr2line -- Enabling feature demangle -- Enabling feature threads -- Enabling feature gc -- Enabling feature gc-drc -- Enabling feature gc-null -- Enabling feature async -- Enabling feature cranelift -- Enabling feature winch -- Enabling feature debug-builtins -- Enabling feature pooling-allocator -- Enabling feature component-model -- Enabling feature component-model-async -- Enabling feature pulley -- CMAKE_CXX_STANDARD is 17 -- ENABLE_CODE_ANALYSIS OFF -- Configuring done (10.4s) -- Generating done (1.1s) -- Build files have been written to: C:/github/wasmtime C:\github\wasmtime>cargo run --example wasip2 Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.71s Running `target\debug\examples\wasip2.exe` Error: failed to read from `target/wasm32-wasip2/debug/wasi.wasm` error: process didn't exit successfully: `target\debug\examples\wasip2.exe` (exit code: 1) C:\github\wasmtime>Expected Results
For it to work
Actual Results
It didn't work
Versions and Environment
Wasmtime version or commit: Current main (f6f69c7a0ef0e77a5f00555765e70ea104d56b56)
Operating system: Windows 11
Architecture: x86
Extra Info
Anything else you'd like to add?
the component example didn't work either
C:\github\wasmtime>cargo run --example component Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.54s Running `target\debug\examples\component.exe` Error: failed to read input file Caused by: The system cannot find the path specified. (os error 3) error: process didn't exit successfully: `target\debug\examples\component.exe` (exit code: 1) C:\github\wasmtime>
ValorZard added the bug label to Issue #13363.
alexcrichton added the wasmtime:docs label to Issue #13363.
alexcrichton removed the bug label from Issue #13363.
alexcrichton commented on issue #13363:
Thanks for the report, these examples have auxiliary wasm files that are expected to be built before running. The documentation in the examples is out-of-date and doesn't mention this. You can build them (and everything else) by running the build inside of the cmake directory.
ValorZard commented on issue #13363:
@alexcrichton ill be honest and say i have no idea how to do that. calling
cmake .inside of examples/ or in root didn't seem to do anything. Do I need something like emscripten?
alexcrichton closed issue #13363:
Thanks for filing a bug report! Please fill out the TODOs below.
Note: if you want to report a security issue, please read our security policy!
Test Case
N/A
Steps to Reproduce
C:\github\wasmtime> cmake examples/ -- Building for: Visual Studio 16 2019 -- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.26200. -- The C compiler identification is MSVC 19.29.30159.0 -- The CXX compiler identification is MSVC 19.29.30159.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Enabling feature profiling -- Enabling feature wat -- Enabling feature cache -- Enabling feature parallel-compilation -- Enabling feature wasi -- Enabling feature wasi-http -- Enabling feature logging -- Enabling feature coredump -- Enabling feature addr2line -- Enabling feature demangle -- Enabling feature threads -- Enabling feature gc -- Enabling feature gc-drc -- Enabling feature gc-null -- Enabling feature async -- Enabling feature cranelift -- Enabling feature winch -- Enabling feature debug-builtins -- Enabling feature pooling-allocator -- Enabling feature component-model -- Enabling feature component-model-async -- Enabling feature pulley -- CMAKE_CXX_STANDARD is 17 -- ENABLE_CODE_ANALYSIS OFF -- Configuring done (10.4s) -- Generating done (1.1s) -- Build files have been written to: C:/github/wasmtime C:\github\wasmtime>cargo run --example wasip2 Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.71s Running `target\debug\examples\wasip2.exe` Error: failed to read from `target/wasm32-wasip2/debug/wasi.wasm` error: process didn't exit successfully: `target\debug\examples\wasip2.exe` (exit code: 1) C:\github\wasmtime>Expected Results
For it to work
Actual Results
It didn't work
Versions and Environment
Wasmtime version or commit: Current main (f6f69c7a0ef0e77a5f00555765e70ea104d56b56)
Operating system: Windows 11
Architecture: x86
Extra Info
Anything else you'd like to add?
the component example didn't work either
C:\github\wasmtime>cargo run --example component Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.54s Running `target\debug\examples\component.exe` Error: failed to read input file Caused by: The system cannot find the path specified. (os error 3) error: process didn't exit successfully: `target\debug\examples\component.exe` (exit code: 1) C:\github\wasmtime>
Last updated: Jun 01 2026 at 09:49 UTC