fitzgen requested alexcrichton for a review on PR #8049.
fitzgen requested wasmtime-core-reviewers for a review on PR #8049.
fitzgen requested wasmtime-default-reviewers for a review on PR #8049.
fitzgen opened PR #8049 from fitzgen:update-mach
to bytecodealliance:main
:
Rebase of #6164 with added audit.
Fixes #6000
Fixes #8044
fitzgen edited PR #8049:
Rebase of #6164 with added audit.
Fixes #6000
Fixes #6164
Fixes #8044
fitzgen requested cfallin for a review on PR #8049.
bjorn3 submitted PR review.
bjorn3 created PR review comment:
The region crate used by cranelift-jit still depends on mach.
fitzgen submitted PR review.
fitzgen created PR review comment:
That's fine, its not a dependency of wasmtime, and we can snip that dependency in a follow up PR if desired.
cfallin submitted PR review:
Thanks!
fitzgen updated PR #8049.
fitzgen has enabled auto merge for PR #8049.
bjorn3 submitted PR review.
bjorn3 created PR review comment:
Looks like the region PR for moving to mach2 has been open for several months: https://github.com/darfink/region-rs/pull/27 And worse the last release has been from over 2 years ago and once the current version gets released, it will lock the libc crate to version 0.2.107 from 2 years ago (for OpenBSD 6.9 support, which has been EOL since May 2022. libc presumably dropped support for it because it is EOL)
fitzgen commented on PR #8049:
@cfallin would you be up for fixing the aarch64 macOS build here? The last commit was too aggressive, and seems to have removed things that are still needed in
mach2
. The problem is I can't even docargo check --target ...
because I can't run the build scripts on my machine.
cfallin commented on PR #8049:
I can take a look, sure.
cfallin updated PR #8049.
cfallin updated PR #8049.
cfallin commented on PR #8049:
Pushed a fix; with this it
cargo check
s on macOS/aarch64. There's some weird inconsistency between theexception_behavior_t
(ac_int
) and the constants for the parameter (defined asc_uint
s); got atry_into
/unwrap
for now.
cfallin commented on PR #8049:
Ah, but with that there is a panic at that
unwrap
during a cargo test. Looking further.
cfallin updated PR #8049.
cfallin commented on PR #8049:
OK, so the issue (one issue anyway) is that
MACH_EXCEPTION_CODES
is defined as0x8000_0000
, which works great for itsu32
type, but not thei32
type behindexception_behavior_t
. I had hoped this was just a C-ism and tried anas
cast to YOLO the signedness; that now runs into aSIGABRT
oncargo test
. This is officially Above My macOS Knowledge and needs someone else to look at it, I think!
alexcrichton commented on PR #8049:
Testing locally I'm seeing something that looks like it's running into this comment, namely the bindings for
__Request__exception_raise_t
are not aligned. I don't know if the bindings are right or what's going on here, but I vaguely remember seeing in the past another project define the type locally and use 64-bit values as well.
alexcrichton commented on PR #8049:
Notably the
mach2
crate usesinteger_t
there, which isi32
, noti64
.
alexcrichton updated PR #8049.
alexcrichton commented on PR #8049:
I've pushed a commit which passes tests locally by copying over the copy of the struct that we have today and additionally queues up all tests to run in CI.
alexcrichton updated PR #8049.
alexcrichton merged PR #8049.
Last updated: Nov 22 2024 at 16:03 UTC