Stream: general

Topic: memory64


view this post on Zulip Scott Waye (Nov 12 2021 at 02:39):

Hi, is memory64 enabled in wasmtime 0.31? I get

error: Found argument '--enable-memory64' which wasn't expected, or isn't valid in this context
        Did you mean --enable-multi-memory?

view this post on Zulip Alex Crichton (Nov 12 2021 at 16:19):

@Scott Waye oh the flag is --wasm-features memory64, the --enable-* flags are the "old way" at this point

view this post on Zulip Scott Waye (Nov 12 2021 at 16:21):

Thank you!

view this post on Zulip Notification Bot (Nov 12 2021 at 16:27):

Scott Waye has marked this topic as resolved.

view this post on Zulip Scott Waye (Nov 12 2021 at 21:24):

In case any comes here, it's --wasm_features=memory64 <- dont forget the =

view this post on Zulip Scott Waye (Nov 13 2021 at 01:18):

I take that back, I'm just confusing myself. I think I do have a problem with the signature of fd_write though, is that possible:

C:\github\wasm64>wasmtime --wasm-features memory64 1.wasm
Error: failed to run main module `1.wasm`

Caused by:
    0: failed to instantiate "1.wasm"
    1: incompatible import type for `wasi_snapshot_preview1::fd_write`
    2: function types incompatible: expected func of type `(i32, i64, i64, i64) -> (i32)`, found func of type `(i32, i32, i32, i32) -> (i32)`

view this post on Zulip Notification Bot (Nov 13 2021 at 01:19):

Scott Waye has marked this topic as unresolved.


Last updated: Dec 23 2024 at 12:05 UTC