Stream: git-wasmtime

Topic: wasmtime / issue #8696 Cranelift: no_std builds fail.


view this post on Zulip Wasmtime GitHub notifications bot (May 27 2024 at 12:15):

Lucky4Luuk added the bug label to Issue #8696.

view this post on Zulip Wasmtime GitHub notifications bot (May 27 2024 at 12:15):

Lucky4Luuk added the cranelift label to Issue #8696.

view this post on Zulip Wasmtime GitHub notifications bot (May 27 2024 at 12:15):

Lucky4Luuk opened issue #8696:

Steps to Reproduce

Expected Results

Library compiles and is usable.

Actual Results

Long list of errors output while compiling, due to a dependency on arbitrary in cranelift-control. This library relies on the std.

Versions and Environment

Cranelift version: 0.108.1

Operating system: Windows 10 x64.

Architecture: x86_64-unknown-none

view this post on Zulip Wasmtime GitHub notifications bot (May 27 2024 at 12:36):

bjorn3 commented on issue #8696:

Cranelift can't be compiled for no_std yet. Getting it working with no_std is tracked by https://github.com/bytecodealliance/wasmtime/issues/1158.

view this post on Zulip Wasmtime GitHub notifications bot (May 27 2024 at 15:00):

Lucky4Luuk commented on issue #8696:

Then why is it marked as no_std on crates.io?

view this post on Zulip Wasmtime GitHub notifications bot (May 27 2024 at 15:01):

Lucky4Luuk edited a comment on issue #8696:

Then why is it marked as no_std compatible on crates.io?

view this post on Zulip Wasmtime GitHub notifications bot (May 27 2024 at 15:11):

bjorn3 commented on issue #8696:

A couple of years ago it supported no_std, but as it wasn't being tested in CI, support for it broke. For a long while it wasn't fixed as the maintenance burden of no_std support was perceived to be too high. Only very recently has it been decided to add support for it back, but this hasn't been finished yet.

view this post on Zulip Wasmtime GitHub notifications bot (May 27 2024 at 17:11):

Lucky4Luuk closed issue #8696:

Steps to Reproduce

Expected Results

Library compiles and is usable.

Actual Results

Long list of errors output while compiling, due to a dependency on arbitrary in cranelift-control. This library relies on the std.

Versions and Environment

Cranelift version: 0.108.1

Operating system: Windows 10 x64.

Architecture: x86_64-unknown-none

view this post on Zulip Wasmtime GitHub notifications bot (May 27 2024 at 17:11):

Lucky4Luuk commented on issue #8696:

IMO it is worth taking off the tag from crates.io, just to avoid further questions like this in the future, until it actually supports no_std again. But thank you for the replies, I'll read through the thread and see if I can contribute.


Last updated: Nov 22 2024 at 16:03 UTC