cargo-component icon indicating copy to clipboard operation
cargo-component copied to clipboard

`type mismatch` when building rust with C

Open chancehudson opened this issue 7 months ago • 0 comments

Hello, I'm trying to build a rust program into wasm. My rust program compiles some C code and invokes it via extern/ffi. When I compile this program i'm getting the following error:

error: failed to validate component output

Caused by:
    type mismatch: values remaining on stack at end of block (at offset 0x4ac7)

This error occurs in debug and release configurations. Any ideas/help would be appreciated.

chancehudson avatar Jul 10 '24 00:07 chancehudson