fasterthanlime , Englisch
@fasterthanlime@hachyderm.io avatar

@bjorn3 !! all 689 crates in the dep graph of my website do compile under aarch64-apple-darwin (but do not link, either with the hacky patch in you-know-which-wasmtime-issue, or with the classic linker).

I'm really excited though!

bjorn3 ,
@bjorn3@hachyderm.io avatar

@fasterthanlime What is the linker error with the classic linker? As far as I'm aware it should work with the classic linker.

fasterthanlime OP ,
@fasterthanlime@hachyderm.io avatar

@bjorn3 So cargo-clif itself wouldn't build with the classic linker (exported via setting $RUSTFLAGS), I had to check out cranelift, apply the patch in https://github.com/bytecodealliance/wasmtime/issues/8730#issuecomment-2143671958 and then it'd build

For my crates, I also had to patch ring to comment out two assertions: https://gist.github.com/fasterthanlime/eb2a81ddd9d36eaa6d9275d265a5c04c

Here's an asciinema of both failing scenarios (classic linker first, XCode 15 second): https://asciinema.org/a/MK9nHfKbqFleHrHjlic5KHcwr — note that the patch I applied to cranelift may hurt here? not sure.

  • Alle
  • Abonniert
  • Moderiert
  • Favoriten
  • random
  • haupteingang
  • Alle Magazine