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.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
cfallin requested alexcrichton for a review on PR #1722.
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.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
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?
alexcrichton submitted PR Review.
alexcrichton submitted PR Review.
cfallin submitted PR Review.
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
.so
s; if there's a simpler incantation that works, all the better!
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.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
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.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
alexcrichton submitted PR Review.
alexcrichton created PR Review Comment:
Bummer! Dunno why it works on Ubuntu for me without this extra flag. Alas!
alexcrichton submitted PR Review.
alexcrichton submitted PR Review.
alexcrichton created PR Review Comment:
Wanna add the
-E
flag here as well?
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.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
cfallin submitted PR Review.
cfallin created PR Review Comment:
D'oh, editing fail. Thanks!
cfallin merged PR #1722.
Last updated: Dec 23 2024 at 13:07 UTC