E1863: stack_limit is not supported for this target

View source

A meta stack_limit verb is accepted only when the selected backend can prove the frame size of the final symbol for the build target (ADR-0103).

A meta stack_limit verb is accepted only when the selected backend can prove the frame size of the final symbol for the build target (ADR-0103). Today the LLVM backend proves it for x86_64-unknown-linux-gnu, the primary Cortex-M target thumbv7em-none-eabihf and the secondary thumbv7em-none-eabi; the Cranelift backend proves it for no target. The check needs only the target of Actus.toml and the backend, so actus check reports it as well as actus build and actus run. The message names the backend and the target, as in stack_limit proof is not supported by backend `llvm` for target `aarch64-unknown-linux-gnu` . The error points at the verb that carries the contract, in whichever module it is declared.

Example

actus
meta stack_limit(bytes: 256u32)
verb main() {
}
toml
[package]
name = "example"
version = "0.1.0"
edition = "alpha"
entry = "main"

[build]
target = "aarch64-unknown-linux-gnu"
profile = "debug"
runtime = "std"

Fix

Build for a target the backend proves, or remove the meta stack_limit contract from the verb when the target cannot be changed.

actus
meta stack_limit(bytes: 256u32)
verb main() {
}
toml
[package]
name = "example"
version = "0.1.0"
edition = "alpha"
entry = "main"

[build]
target = "x86_64-unknown-linux-gnu"
profile = "debug"
runtime = "std"

Run actus explain E1863 in your terminal to read this entry offline. Browse Strict & toolchain or all error codes.