Skip to content
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

Build fails on Raspberry Pi4 #5182

Closed
andrewdavidmackenzie opened this issue Nov 2, 2022 · 3 comments
Closed

Build fails on Raspberry Pi4 #5182

andrewdavidmackenzie opened this issue Nov 2, 2022 · 3 comments

Comments

@andrewdavidmackenzie
Copy link

I am trying to compile my project that uses wasmtie an dhence cranelift on my Raspberry Pi 4 (using rustc 1.67.0-nightly (11ebe6512 2022-11-01)) and I get the following error:

error: failed to run custom build command for `cranelift-codegen v0.89.1`

Caused by:
  process didn't exit successfully: `/home/pi/workspace/flow/target/release/build/cranelift-codegen-d67391bc450271b1/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at 'error when identifying target: "no supported isa found for arch `armv7`"', /home/pi/.cargo/registry/src/github.com-1285ae84e5963aae/cranelift-codegen-0.89.1/build.rs:42:53
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `flowr v0.70.0 (/home/pi/workspace/flow/flowr)`, intermediate artifacts can be found at `/home/pi/workspace/flow/target`
make: *** [Makefile:89: install-flow] Error 101

I couldn't find any information on supported platforms/architectures, so thought I'd ask here.

@cfallin
Copy link
Member

cfallin commented Nov 2, 2022

arm32 (armv7 in the output above) is unfortunately not supported. Wasmtime+Cranelift will run on RPi4 hardware with a 64-bit OS (arm64 aka aarch64 aka ARMv8) though. #1173 tracks this.

@cfallin cfallin closed this as completed Nov 2, 2022
@andrewdavidmackenzie
Copy link
Author

Thanks for quick response.
Moving to the new 64bit raspbian may solve the issue, on the same hw then?

@cfallin
Copy link
Member

cfallin commented Nov 2, 2022

Yes, it should! You should be able to download our release binaries for aarch64-linux and use them directly, or build from source, either way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants