TerrorJack opened issue #8443:
Previous versions of
wasmtime-cli
could be built withcargo install --all-features wasmtime-cli
without issues. However, withv20.0.0
I'm getting the following errors in a cleanrust
container image:error[E0412]: cannot find type `Value` in this scope --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-cranelift-20.0.0/src/func_environ.rs:533:78 | 533 | fn hook_malloc_exit(&mut self, builder: &mut FunctionBuilder, retvals: &[Value]) { | ^^^^^ not found in this scope | help: consider importing one of these items | 1 + use cranelift_codegen::ir::Value; | 1 + use cranelift_codegen::settings::Value; | 1 + use crate::ir::Value; | 1 + use crate::settings::Value; | and 1 other candidate error[E0433]: failed to resolve: use of undeclared type `UserFuncName` --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-cranelift-20.0.0/src/func_environ.rs:899:13 | 899 | UserFuncName::User(user) => FuncIndex::from_u32(user.index), | ^^^^^^^^^^^^ use of undeclared type `UserFuncName` | help: consider importing one of these items | 1 + use cranelift_codegen::ir::UserFuncName; | 1 + use crate::ir::UserFuncName; | error[E0412]: cannot find type `Value` in this scope --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-cranelift-20.0.0/src/func_environ.rs:2567:51 | 2567 | fn handle_before_return(&mut self, retvals: &[Value], builder: &mut FunctionBuilder) { | ^^^^^ not found in this scope | help: consider importing one of these items | 1 + use cranelift_codegen::ir::Value; | 1 + use cranelift_codegen::settings::Value; | 1 + use crate::ir::Value; | 1 + use crate::settings::Value; | and 1 other candidate error[E0599]: no function or associated item named `check_malloc` found for struct `BuiltinFunctionIndex` in the current scope --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-cranelift-20.0.0/src/func_environ.rs:79:1 | 79 | wasmtime_environ::foreach_builtin_function!(declare_function_signatures); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `BuiltinFunctionIndex` | note: if you're trying to build a new `BuiltinFunctionIndex` consider using one of the following associated functions: BuiltinFunctionIndex::from_u32 BuiltinFunctionIndex::memory32_grow BuiltinFunctionIndex::table_copy BuiltinFunctionIndex::table_init and 20 others --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-environ-20.0.0/src/builtin.rs:109:5 | 109 | pub const fn from_u32(i: u32) -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 184 | foreach_builtin_function!(declare_indexes); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: this error originates in the macro `wasmtime_environ::foreach_builtin_function` which comes from the expansion of the macro `foreach_builtin_function` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0599]: no function or associated item named `check_free` found for struct `BuiltinFunctionIndex` in the current scope --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-cranelift-20.0.0/src/func_environ.rs:79:1 | 79 | wasmtime_environ::foreach_builtin_function!(declare_function_signatures); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `BuiltinFunctionIndex` | note: if you're trying to build a new `BuiltinFunctionIndex` consider using one of the following associated functions: BuiltinFunctionIndex::from_u32 BuiltinFunctionIndex::memory32_grow BuiltinFunctionIndex::table_copy BuiltinFunctionIndex::table_init and 20 others --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-environ-20.0.0/src/builtin.rs:109:5 | 109 | pub const fn from_u32(i: u32) -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 184 | foreach_builtin_function!(declare_indexes); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: this error originates in the macro `wasmtime_environ::foreach_builtin_function` which comes from the expansion of the macro `foreach_builtin_function` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0599]: no function or associated item named `check_load` found for struct `BuiltinFunctionIndex` in the current scope --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-cranelift-20.0.0/src/func_environ.rs:79:1 | 79 | wasmtime_environ::foreach_builtin_function!(declare_function_signatures); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `BuiltinFunctionIndex` | note: if you're trying to build a new `BuiltinFunctionIndex` consider using one of the following associated functions: BuiltinFunctionIndex::from_u32 BuiltinFunctionIndex::memory32_grow BuiltinFunctionIndex::table_copy BuiltinFunctionIndex::table_init and 20 others --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-environ-20.0.0/src/builtin.rs:109:5 | 109 | pub const fn from_u32(i: u32) -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 184 | foreach_builtin_function!(declare_indexes); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: this error originates in the macro `wasmtime_environ::foreach_builtin_function` which comes from the expansion of the macro `foreach_builtin_function` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0599]: no function or associated item named `check_store` found for struct `BuiltinFunctionIndex` in the current scope --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-cranelift-20.0.0/src/func_environ.rs:79:1 | 79 | wasmtime_environ::foreach_builtin_function!(declare_function_signatures); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `BuiltinFunctionIndex` | note: if you're trying to build a new `BuiltinFunctionIndex` consider using one of the following associated functions: BuiltinFunctionIndex::from_u32 BuiltinFunctionIndex::memory32_grow BuiltinFunctionIndex::table_copy BuiltinFunctionIndex::table_init and 20 others --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-environ-20.0.0/src/builtin.rs:109:5 | 109 | pub const fn from_u32(i: u32) -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 184 | foreach_builtin_function!(declare_indexes); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: this error originates in the macro `wasmtime_environ::foreach_builtin_function` which comes from the expansion of the macro `foreach_builtin_function` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0599]: no function or associated item named `malloc_start` found for struct `BuiltinFunctionIndex` in the current scope --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-cranelift-20.0.0/src/func_environ.rs:79:1 | 79 | wasmtime_environ::foreach_builtin_function!(declare_function_signatures); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `BuiltinFunctionIndex` | note: if you're trying to build a new `BuiltinFunctionIndex` consider using one of the following associated functions: BuiltinFunctionIndex::from_u32 BuiltinFunctionIndex::memory32_grow BuiltinFunctionIndex::table_copy BuiltinFunctionIndex::table_init and 20 others --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-environ-20.0.0/src/builtin.rs:109:5 | 109 | pub const fn from_u32(i: u32) -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 184 | foreach_builtin_function!(declare_indexes); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: this error originates in the macro `wasmtime_environ::foreach_builtin_function` which comes from the expansion of the macro `foreach_builtin_function` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0599]: no function or associated item named `free_start` found for struct `BuiltinFunctionIndex` in the current scope --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-cranelift-20.0.0/src/func_environ.rs:79:1 | 79 | wasmtime_environ::foreach_builtin_function!(declare_function_signatures); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `BuiltinFunctionIndex` | note: if you're trying to build a new `BuiltinFunctionIndex` consider using one of the following associated functions: BuiltinFunctionIndex::from_u32 BuiltinFunctionIndex::memory32_grow BuiltinFunctionIndex::table_copy BuiltinFunctionIndex::table_init and 20 others --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-environ-20.0.0/src/builtin.rs:109:5 | 109 | pub const fn from_u32(i: u32) -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 184 | foreach_builtin_function!(declare_indexes); | ^^^^^^^^^^^^^^^^^ [message truncated]
TerrorJack closed issue #8443:
Previous versions of
wasmtime-cli
could be built withcargo install --all-features wasmtime-cli
without issues. However, withv20.0.0
I'm getting the following errors in a cleanrust
container image:error[E0412]: cannot find type `Value` in this scope --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-cranelift-20.0.0/src/func_environ.rs:533:78 | 533 | fn hook_malloc_exit(&mut self, builder: &mut FunctionBuilder, retvals: &[Value]) { | ^^^^^ not found in this scope | help: consider importing one of these items | 1 + use cranelift_codegen::ir::Value; | 1 + use cranelift_codegen::settings::Value; | 1 + use crate::ir::Value; | 1 + use crate::settings::Value; | and 1 other candidate error[E0433]: failed to resolve: use of undeclared type `UserFuncName` --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-cranelift-20.0.0/src/func_environ.rs:899:13 | 899 | UserFuncName::User(user) => FuncIndex::from_u32(user.index), | ^^^^^^^^^^^^ use of undeclared type `UserFuncName` | help: consider importing one of these items | 1 + use cranelift_codegen::ir::UserFuncName; | 1 + use crate::ir::UserFuncName; | error[E0412]: cannot find type `Value` in this scope --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-cranelift-20.0.0/src/func_environ.rs:2567:51 | 2567 | fn handle_before_return(&mut self, retvals: &[Value], builder: &mut FunctionBuilder) { | ^^^^^ not found in this scope | help: consider importing one of these items | 1 + use cranelift_codegen::ir::Value; | 1 + use cranelift_codegen::settings::Value; | 1 + use crate::ir::Value; | 1 + use crate::settings::Value; | and 1 other candidate error[E0599]: no function or associated item named `check_malloc` found for struct `BuiltinFunctionIndex` in the current scope --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-cranelift-20.0.0/src/func_environ.rs:79:1 | 79 | wasmtime_environ::foreach_builtin_function!(declare_function_signatures); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `BuiltinFunctionIndex` | note: if you're trying to build a new `BuiltinFunctionIndex` consider using one of the following associated functions: BuiltinFunctionIndex::from_u32 BuiltinFunctionIndex::memory32_grow BuiltinFunctionIndex::table_copy BuiltinFunctionIndex::table_init and 20 others --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-environ-20.0.0/src/builtin.rs:109:5 | 109 | pub const fn from_u32(i: u32) -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 184 | foreach_builtin_function!(declare_indexes); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: this error originates in the macro `wasmtime_environ::foreach_builtin_function` which comes from the expansion of the macro `foreach_builtin_function` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0599]: no function or associated item named `check_free` found for struct `BuiltinFunctionIndex` in the current scope --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-cranelift-20.0.0/src/func_environ.rs:79:1 | 79 | wasmtime_environ::foreach_builtin_function!(declare_function_signatures); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `BuiltinFunctionIndex` | note: if you're trying to build a new `BuiltinFunctionIndex` consider using one of the following associated functions: BuiltinFunctionIndex::from_u32 BuiltinFunctionIndex::memory32_grow BuiltinFunctionIndex::table_copy BuiltinFunctionIndex::table_init and 20 others --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-environ-20.0.0/src/builtin.rs:109:5 | 109 | pub const fn from_u32(i: u32) -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 184 | foreach_builtin_function!(declare_indexes); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: this error originates in the macro `wasmtime_environ::foreach_builtin_function` which comes from the expansion of the macro `foreach_builtin_function` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0599]: no function or associated item named `check_load` found for struct `BuiltinFunctionIndex` in the current scope --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-cranelift-20.0.0/src/func_environ.rs:79:1 | 79 | wasmtime_environ::foreach_builtin_function!(declare_function_signatures); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `BuiltinFunctionIndex` | note: if you're trying to build a new `BuiltinFunctionIndex` consider using one of the following associated functions: BuiltinFunctionIndex::from_u32 BuiltinFunctionIndex::memory32_grow BuiltinFunctionIndex::table_copy BuiltinFunctionIndex::table_init and 20 others --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-environ-20.0.0/src/builtin.rs:109:5 | 109 | pub const fn from_u32(i: u32) -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 184 | foreach_builtin_function!(declare_indexes); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: this error originates in the macro `wasmtime_environ::foreach_builtin_function` which comes from the expansion of the macro `foreach_builtin_function` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0599]: no function or associated item named `check_store` found for struct `BuiltinFunctionIndex` in the current scope --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-cranelift-20.0.0/src/func_environ.rs:79:1 | 79 | wasmtime_environ::foreach_builtin_function!(declare_function_signatures); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `BuiltinFunctionIndex` | note: if you're trying to build a new `BuiltinFunctionIndex` consider using one of the following associated functions: BuiltinFunctionIndex::from_u32 BuiltinFunctionIndex::memory32_grow BuiltinFunctionIndex::table_copy BuiltinFunctionIndex::table_init and 20 others --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-environ-20.0.0/src/builtin.rs:109:5 | 109 | pub const fn from_u32(i: u32) -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 184 | foreach_builtin_function!(declare_indexes); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: this error originates in the macro `wasmtime_environ::foreach_builtin_function` which comes from the expansion of the macro `foreach_builtin_function` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0599]: no function or associated item named `malloc_start` found for struct `BuiltinFunctionIndex` in the current scope --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-cranelift-20.0.0/src/func_environ.rs:79:1 | 79 | wasmtime_environ::foreach_builtin_function!(declare_function_signatures); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `BuiltinFunctionIndex` | note: if you're trying to build a new `BuiltinFunctionIndex` consider using one of the following associated functions: BuiltinFunctionIndex::from_u32 BuiltinFunctionIndex::memory32_grow BuiltinFunctionIndex::table_copy BuiltinFunctionIndex::table_init and 20 others --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-environ-20.0.0/src/builtin.rs:109:5 | 109 | pub const fn from_u32(i: u32) -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 184 | foreach_builtin_function!(declare_indexes); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: this error originates in the macro `wasmtime_environ::foreach_builtin_function` which comes from the expansion of the macro `foreach_builtin_function` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0599]: no function or associated item named `free_start` found for struct `BuiltinFunctionIndex` in the current scope --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-cranelift-20.0.0/src/func_environ.rs:79:1 | 79 | wasmtime_environ::foreach_builtin_function!(declare_function_signatures); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `BuiltinFunctionIndex` | note: if you're trying to build a new `BuiltinFunctionIndex` consider using one of the following associated functions: BuiltinFunctionIndex::from_u32 BuiltinFunctionIndex::memory32_grow BuiltinFunctionIndex::table_copy BuiltinFunctionIndex::table_init and 20 others --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-environ-20.0.0/src/builtin.rs:109:5 | 109 | pub const fn from_u32(i: u32) -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 184 | foreach_builtin_function!(declare_indexes); | ^^^^^^^^^^^^^^^^^ [message truncated]
alexcrichton commented on issue #8443:
This was fixed in https://github.com/bytecodealliance/wasmtime/pull/8444 (and is definitely a bug which is now tested on CI). Would you like that to be backported to a 20.0.1 release?
TerrorJack commented on issue #8443:
Not needed, but thanks for asking, good to know it's on CI now :)
Last updated: Dec 23 2024 at 12:05 UTC