Stream: git-wasmtime

Topic: wasmtime / issue #2133 Build fails for target aarch64-unk...


view this post on Zulip Wasmtime GitHub notifications bot (May 05 2022 at 16:51):

alexcrichton unlabeled issue #2133:

I am currently in the process of packaging wasmtime for void linux, a distribution which supports multiple architectures and musl as an alternative to glibc.

Reading the following code, it looks like wasmtime is intended to support aarch64 on linux.

https://github.com/bytecodealliance/wasmtime/blob/0387169934e91722b8b6819773eacc6893718296/crates/runtime/src/traphandlers.rs#L158-L172

It builds fine for aarch64-unknown-linux-gnu but fails for aarch64-unknown-linux-musl with the following error:

error[E0412]: cannot find type `ucontext_t` in crate `libc`

   --> crates/runtime/src/traphandlers.rs:165:52
    |
165 |                     let cx = &*(cx as *const libc::ucontext_t);
    |                                                    ^^^^^^^^^^ not found in `libc`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0412`.
error: could not compile `wasmtime-runtime`.

Building for x86_64-unknown-linux-musl works fine.

This failure occurred with rust 1.44.1 and wasmtime 0.19.0

view this post on Zulip Wasmtime GitHub notifications bot (May 05 2022 at 16:51):

alexcrichton labeled issue #2133:

I am currently in the process of packaging wasmtime for void linux, a distribution which supports multiple architectures and musl as an alternative to glibc.

Reading the following code, it looks like wasmtime is intended to support aarch64 on linux.

https://github.com/bytecodealliance/wasmtime/blob/0387169934e91722b8b6819773eacc6893718296/crates/runtime/src/traphandlers.rs#L158-L172

It builds fine for aarch64-unknown-linux-gnu but fails for aarch64-unknown-linux-musl with the following error:

error[E0412]: cannot find type `ucontext_t` in crate `libc`

   --> crates/runtime/src/traphandlers.rs:165:52
    |
165 |                     let cx = &*(cx as *const libc::ucontext_t);
    |                                                    ^^^^^^^^^^ not found in `libc`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0412`.
error: could not compile `wasmtime-runtime`.

Building for x86_64-unknown-linux-musl works fine.

This failure occurred with rust 1.44.1 and wasmtime 0.19.0

view this post on Zulip Wasmtime GitHub notifications bot (Aug 09 2022 at 18:33):

alexcrichton commented on issue #2133:

This build now currently works for this target, so closing.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 09 2022 at 18:33):

alexcrichton closed issue #2133:

I am currently in the process of packaging wasmtime for void linux, a distribution which supports multiple architectures and musl as an alternative to glibc.

Reading the following code, it looks like wasmtime is intended to support aarch64 on linux.

https://github.com/bytecodealliance/wasmtime/blob/0387169934e91722b8b6819773eacc6893718296/crates/runtime/src/traphandlers.rs#L158-L172

It builds fine for aarch64-unknown-linux-gnu but fails for aarch64-unknown-linux-musl with the following error:

error[E0412]: cannot find type `ucontext_t` in crate `libc`

   --> crates/runtime/src/traphandlers.rs:165:52
    |
165 |                     let cx = &*(cx as *const libc::ucontext_t);
    |                                                    ^^^^^^^^^^ not found in `libc`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0412`.
error: could not compile `wasmtime-runtime`.

Building for x86_64-unknown-linux-musl works fine.

This failure occurred with rust 1.44.1 and wasmtime 0.19.0


Last updated: Dec 23 2024 at 12:05 UTC