Stream: git-wasmtime

Topic: wasmtime / PR #1722 Docs: add section on running under qemu.


view this post on Zulip Wasmtime GitHub notifications bot (May 18 2020 at 17:57):

cfallin opened PR #1722 from docs-qemu-run to master:

This is an unsolicited but hopefully useful addition to the cross-compilation docs added in #1721; it describes how to run the cross-compiled binary under userspace qemu if the user does not have access to native hardware. This is sometimes useful for testing and development on the various machine backends.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (May 18 2020 at 17:57):

cfallin requested alexcrichton for a review on PR #1722.

view this post on Zulip Wasmtime GitHub notifications bot (May 18 2020 at 18:00):

cfallin updated PR #1722 from docs-qemu-run to master:

This is an unsolicited but hopefully useful addition to the cross-compilation docs added in #1721; it describes how to run the cross-compiled binary under userspace qemu if the user does not have access to native hardware. This is sometimes useful for testing and development on the various machine backends.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (May 18 2020 at 18:03):

alexcrichton created PR Review Comment:

I don't think I ever had to update this env var when I was testing, although is this required for you locally?

view this post on Zulip Wasmtime GitHub notifications bot (May 18 2020 at 18:03):

alexcrichton submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (May 18 2020 at 18:03):

alexcrichton submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (May 18 2020 at 18:18):

cfallin submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (May 18 2020 at 18:18):

cfallin created PR Review Comment:

It is at least on my setup (Arch Linux and its associated cross-build packages):

[cfallin@cfallin-laptop wasmtime]$ qemu-aarch64 target/aarch64-unknown-linux-gnu/release/wasmtime
/lib/ld-linux-aarch64.so.1: No such file or directory
[cfallin@cfallin-laptop wasmtime]$ qemu-aarch64 -L /usr/aarch64-linux-gnu/ target/aarch64-unknown-linux-gnu/release/wasmtime
target/aarch64-unknown-linux-gnu/release/wasmtime: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory
[cfallin@cfallin-laptop wasmtime]$ LD_LIBRARY_PATH=/usr/aarch64-linux-gnu/lib64/ qemu-aarch64 -L /usr/aarch64-linux-gnu/ target/aarch64-unknown-linux-gnu/release/wasmtime
wasmtime 0.16.0
Wasmtime WebAssembly Runtime

(on Arch the .../lib64 vs .../lib differs but otherwise it appears Ubuntu should work the same)

It's possible this has to do with some rpath-related or other magic in the .sos; if there's a simpler incantation that works, all the better!

view this post on Zulip Wasmtime GitHub notifications bot (May 18 2020 at 18:28):

cfallin updated PR #1722 from docs-qemu-run to master:

This is an unsolicited but hopefully useful addition to the cross-compilation docs added in #1721; it describes how to run the cross-compiled binary under userspace qemu if the user does not have access to native hardware. This is sometimes useful for testing and development on the various machine backends.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (May 18 2020 at 18:30):

cfallin updated PR #1722 from docs-qemu-run to master:

This is an unsolicited but hopefully useful addition to the cross-compilation docs added in #1721; it describes how to run the cross-compiled binary under userspace qemu if the user does not have access to native hardware. This is sometimes useful for testing and development on the various machine backends.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (May 18 2020 at 18:34):

alexcrichton submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (May 18 2020 at 18:34):

alexcrichton created PR Review Comment:

Bummer! Dunno why it works on Ubuntu for me without this extra flag. Alas!

view this post on Zulip Wasmtime GitHub notifications bot (May 18 2020 at 18:34):

alexcrichton submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (May 18 2020 at 18:34):

alexcrichton submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (May 18 2020 at 18:34):

alexcrichton created PR Review Comment:

Wanna add the -E flag here as well?

view this post on Zulip Wasmtime GitHub notifications bot (May 18 2020 at 18:44):

cfallin updated PR #1722 from docs-qemu-run to master:

This is an unsolicited but hopefully useful addition to the cross-compilation docs added in #1721; it describes how to run the cross-compiled binary under userspace qemu if the user does not have access to native hardware. This is sometimes useful for testing and development on the various machine backends.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (May 18 2020 at 18:44):

cfallin submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (May 18 2020 at 18:44):

cfallin created PR Review Comment:

D'oh, editing fail. Thanks!

view this post on Zulip Wasmtime GitHub notifications bot (May 18 2020 at 20:06):

cfallin merged PR #1722.


Last updated: Nov 22 2024 at 17:03 UTC