Stream: git-wasmtime

Topic: wasmtime / issue #6477 Missing symbols in c-api header fi...


view this post on Zulip Wasmtime GitHub notifications bot (May 30 2023 at 20:38):

blitz-research opened issue #6477:

I am trying to get the wasmtime c-api going, so that I can run the output of my wasm emitting compiler on native platforms as well as in the browser. Is this an appropriate use of wasmtime?

I have managed to build the simple hello.c example here...

https://github.com/bytecodealliance/wasmtime/blob/main/examples/hello.c

...with the prebuilt c-api release here...

https://github.com/bytecodealliance/wasmtime/releases/download/v9.0.2/wasmtime-v9.0.2-x86_64-windows-c-api.zip

...but there appear to be symbols missing from the wasm.h file in the download - at the least, wasm_engine_delete and wasm_store_delete, although I suspect there are more. I can still build hello.c, but I think only because C is evil like that (?) and the functions do actually exist in the libs so the code is there, just no prototypes in the headers.

Is this right? Technically 'it works' I guess, but I am very nervous to use wasmtime in this state as it feels like something isn't right.

I have also grepped the c-api crate in this repository and both symbols are only found in comments in include/doc-wasm.h. This repository doesn't even have a wasm.h file, or maybe it's generated or something?

Is c-api wasmtime pretty much over these days (or surely others would have encountered this) or am I just going crazy (always an option)?!?

Bye,
Mark

view this post on Zulip Wasmtime GitHub notifications bot (May 30 2023 at 22:47):

blitz-research edited issue #6477.

view this post on Zulip Wasmtime GitHub notifications bot (May 30 2023 at 22:47):

blitz-research edited issue #6477:

oops, fixed.

view this post on Zulip Wasmtime GitHub notifications bot (May 30 2023 at 22:47):

blitz-research edited issue #6477:

oops, found my issue.

view this post on Zulip Wasmtime GitHub notifications bot (May 30 2023 at 22:47):

blitz-research closed issue #6477:

oops, found my issue.


Last updated: Dec 23 2024 at 13:07 UTC