Skip to content

Cannot compile example-host #266

Closed
@geekingfrog

Description

@geekingfrog

On latest main branch (65a4f09e5c8f563d9c3ebf9208e53033a6628693), when I do:

  • cd component-model/examples/example-host
  • cargo build

I get a compilation error with wasmtime-wasi:

error[E0080]: evaluation of constant value failed
   --> ~/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/wasmtime-wasi-27.0.0/src/bindings.rs:148:9
    |
148 | /         wasmtime::component::bindgen!({
149 | |             path: "wit",
150 | |             world: "wasi:cli/command",
151 | |             tracing: true,
...   |
181 | |             require_store_data_send: true,
182 | |         });
    | |__________^ evaluation panicked: assertion failed: 1 == <DirectoryEntry as wasmtime::component::ComponentType>::ALIGN32

error[E0080]: evaluation of constant value failed
   --> ~/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/wasmtime-wasi-27.0.0/src/bindings.rs:328:5
    |
328 | /     wasmtime::component::bindgen!({
329 | |         path: "wit",
330 | |         world: "wasi:cli/command",
331 | |         tracing: true,
...   |
417 | |         },
418 | |     });
    | |______^ evaluation panicked: assertion failed: 1 == <DirectoryEntry as wasmtime::component::ComponentType>::ALIGN32

For more information about this error, try `rustc --explain E0080`.

rustc 1.87.0 (17067e9ac 2025-05-09) on x86 linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions