Stream: git-wasmtime

Topic: wasmtime / issue #9875 Publishing musl aarch64 build prod...


view this post on Zulip Wasmtime GitHub notifications bot (Dec 19 2024 at 22:23):

whitequark opened issue #9875:

Feature

I would like wasmtime releases to be built for musllinux on aarch64 platform.

Benefit

Improved portability of wasmtime-py when installed from PyPI (https://github.com/bytecodealliance/wasmtime-py/issues/263).

Implementation

As far as I know this target should build fine, so only CI scripts need to be updated.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 20 2024 at 01:44):

alexcrichton commented on issue #9875:

I think it's definitely fine to add this, but it will require someone to figure out how to write a build container for it. For x64 I was able to be "just dangerous enough" to cobble something together, but I've never personally successfully cross-compiled from an x64 system to aarch64-musl. Something like cross may work though perhaps? (we notably want dynamically linked artifacts which is distinct from the default I believe for the Rust target)

view this post on Zulip Wasmtime GitHub notifications bot (Dec 20 2024 at 01:57):

whitequark commented on issue #9875:

Ah, that is a little cursed. I'm supposed to be on vacation right now so I think I'll avoid doing a CI modification this complex :see_no_evil:

view this post on Zulip Wasmtime GitHub notifications bot (Dec 20 2024 at 20:09):

alexcrichton commented on issue #9875:

Looks like cross does support aarch64 musl, so I'm attempting to integrate using that image in https://github.com/bytecodealliance/wasmtime/pull/9885.

Would you happen to have an aarch64-musl system you can test on? I don't have one myself outside of possibly setting up QEMU.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 20 2024 at 20:19):

whitequark commented on issue #9875:

Would you happen to have an aarch64-musl system you can test on?

I do!

I don't have one myself outside of possibly setting up QEMU.

Do you have an Android phone? If you set up Termux, it will give you such a system (unless it's really ancient). You get a normal musllinux system.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 20 2024 at 20:53):

bjorn3 commented on issue #9875:

Doesn't Termux use Bionic like the rest of Android?

view this post on Zulip Wasmtime GitHub notifications bot (Dec 20 2024 at 21:10):

whitequark commented on issue #9875:

Doesn't Termux use Bionic like the rest of Android?

It does. Turns out I completely misunderstood how it works! But fortunately it also has proot which still lets you do whichever distro you like.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 20 2024 at 21:10):

whitequark edited a comment on issue #9875:

Doesn't Termux use Bionic like the rest of Android?

It does. Turns out I completely misunderstood how it works! But fortunately it also has proot which still lets you do whichever distro (and libc) you like on native aarch64.


Last updated: Dec 23 2024 at 13:07 UTC