-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building for RISCV64? #102
Comments
Hey, @matsbror, thank you for reporting this. For context, we do know at least the Wasmtime / Spin dependency for the shim (the part executing Wasm) does compile and run correctly on RISC-V. |
I am on v0.13.1. On my RISCV64-board, I try to build it directly like:
as I had issues with the Makefile It fails trying to compile ring.
I have wasmtime cli running fine so I know that that part is working. I remember I had issues with the ring crate a long time ago when running the sightglass benchmarks in wasmtime. Then I believe I resolved by using a local copy of
aws-config in turns is used by I will continue to investigate if there is a way to remove or upgrade these dependencies so that ring 0.17.8 is used instead. EDIT: I should add that I get the same error when cross-compiling on an x86 machine. |
Adding @tschneidereit who had success running Spin on a RISCV64 board. |
I managed to build |
We should put the other triggers behind Cargo features, to make this kind of thing easier. Specifically, to unblock your use case, you can:
|
Unfortunately I still do not have success.
at the top-level Cargo.toml, but it failed as rustls required v0.16.20 |
When I experimented with this last Fall, there was no version of Ring released that would've supported RISCV, so I hacked something up that Worked On My Machine. By now this should all be much easier, luckily: there's a pretty recent release of |
Thanks @tschneidereit , but how do I replace the dependency on |
it seems like [patch.crates-io]
tokio-rustls = { git = 'https://github.com/rustls/tokio-rustls.git', tag = "v/0.26.0" } If that doesn't work out of the box, it's possible that slight adjustments would fix it. If that works, a PR to the |
I managed to resolve the issue for me. I updated the dependency in This one resolved the issue for However, I cannot (now) make a PR for spin on this as I am not able to run tests (even on |
Did anyone try to build for RISCV64?
The regular Make (with TARGET set to
riscv64gc-unknown-linux-gnu
) doesn't work.The text was updated successfully, but these errors were encountered: