Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WasmEdge 0.10.0 not working in windows #1559

Closed
Puellaquae opened this issue Jun 16, 2022 · 6 comments · Fixed by #2455
Closed

WasmEdge 0.10.0 not working in windows #1559

Puellaquae opened this issue Jun 16, 2022 · 6 comments · Fixed by #2455

Comments

@Puellaquae
Copy link
Contributor

Description

wasmedge.exe output nothing and exit with code -1073740791. Version 0.10.0, 0.10.0-rc.1, 0.10.0-alpha-2 in releases all not work.

Current State

Expected

Environment

Windows 10 Pro 21H2 19044.1706

Steps to Reproduce

just exec wasmedge.exe

@juntao
Copy link
Member

juntao commented Jun 16, 2022

Can you attach the wasm file you are trying to run? Thanks.

@Puellaquae
Copy link
Contributor Author

No need to attach wasm file. Runing in linux without arguments will show usage, but in windows, usage also can't show.

@calvin2021y
Copy link

this project need run ci pipeline tests for windows/macOS/linux before release.

@hydai
Copy link
Member

hydai commented Jun 21, 2022

Hi @Puellaquae

The current CI uses Windows Server 2022 with Windows 10 SDK 19041 to build WasmEdge on Windows. And I just run the WasmEdge on my Windows 11.

Not sure if this issue is related to the version of windows. When I setup a new Windows 10 environment, the WasmEdge failed with msvcp140.dll is missing. So I follow the guide on the Windows forum to fix it.

https://answers.microsoft.com/en-us/windows/forum/all/msvcp140dll-and-vcruntime140dll-missing-error-only/6eeb77ea-3ed3-4b2b-ab8a-26fa6a0fc121

Maybe we need to set the MIN_TARGET_OS_VERSION to make the Windows build uses older msvcp version. Still need time to figure it out.

@hydai
Copy link
Member

hydai commented May 24, 2023

Thanks, @Pospelove provided an awesome PR #2455 to fix this. However, the LLVM we used(llvm-windows) currently doesn't offer the MT mode. If we applied #2455 would make the Windows CI fail. I kept the variable CMAKE_MSVC_RUNTIME_LIBRARY, so users can set it to "MultiThreaded$<$<CONFIG:Debug>:Debug>" with disabling the AOT feature while building WasmEdge to avoid msvcp140.dll issue.

Currently, we are looking for how to make an MT mode LLVM. Before this is fixed, I will keep this issue open.

@hydai
Copy link
Member

hydai commented Jun 6, 2024

WasmEdge 0.14.0 can now be executed on Windows. Closing this.

@hydai hydai closed this as completed Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants