wabt icon indicating copy to clipboard operation
wabt copied to clipboard

The wasm2c command has no effect

Open JoeanAmier opened this issue 6 months ago • 5 comments

windows 11, Download 1.0.37 from release, there is no response when running commands, while commands from other tools are normal.

Image

Image

JoeanAmier avatar May 26 '25 11:05 JoeanAmier

No idea what could cause that. They are all built in the same way as far as I know.

Can you confirm you are running the correct binary? What does where wasm2c show?

sbc100 avatar May 27 '25 18:05 sbc100

Image

Only wasm2c has problems

JoeanAmier avatar May 29 '25 10:05 JoeanAmier

Thats quite a mystery. I don't know enough about windows to know how to start debugging. If you build from source does it have the same behaviour?

sbc100 avatar May 29 '25 13:05 sbc100

I'm also on Windows 11. When I try to run the via the command-line, I get nothing happening as above.

However if I just run the exe via File Explorer I get the following error: Image

The other binaries don't have this issue. This makes me think that compiling the WIndows binary with USE_INTERNAL_SHA256 -> ON instead might work better.

silbinarywolf avatar May 31 '25 04:05 silbinarywolf

I've put up a PR to resolve the issue.

In the meantime if you don't have the know-how to build from source but want to use wasm2c on Windows, here's a release build: wasm2c.zip Commit: 6d4abfd63eb45168c29982c5dccbf9b5a9cb293f

silbinarywolf avatar May 31 '25 11:05 silbinarywolf

Hi, On windows, OpenSSL is not automatically installed, nor is it installed by default.

I'm currently working on fixing issues related to the FindOpenSSL module.

If you want to solve the problem quickly, you can build it without any problems using the fix_FindOpenSSL branch in my repository.

https://github.com/tasogare3710/wabt/tree/fix_FindOpenSSL


Don't forget to install OpenSSL.

in windows

winget install --id ShiningLight.OpenSSL.Dev

in ubuntu

sudo apt install libssl-dev

tasogare3710 avatar Aug 20 '25 17:08 tasogare3710