Skip to content

iwasm: WASM module load failed: struct or array as field is not supported in constant expr #3410

Open
@bashor

Description

@bashor

Steps to reproduce

  1. Unpack zip kotlin-wasm-wasi-example-wasm-wasi-prod.wasm.zip
  2. Build iwasm with the following command
 cmake .. -DWAMR_BUILD_GC=1 -DWAMR_BUILD_BULK_MEMORY=1 -DWAMR_BUILD_EXCE_HANDLING=1 -DWAMR_BUILD_TAIL_CALL=1 -DWAMR_BUILD_CUSTOM_NAME_SECTION=1 -DWAMR_BUILD_EXCE_HANDLING=0 && make
  1. Run ./iwasm kotlin-wasm-wasi-example-wasm-wasi-prod.wasm

Expected behavior

It should print something like:

Hello from Kotlin via WASI
Current 'realtime' timestamp is: 1715281633864118000
Current 'monotonic' timestamp is: 210424654558083

Actual behavior

It prints:

iwasm: WASM module load failed: struct or array as field is not supported in constant expr

Metadata

Metadata

Assignees

No one assigned

    Labels

    GCGarbage Collection featuredoneThe feature/issue was implemented/resolvedenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions