Skip to content

Lacking pre-built binaries on RaspberryPi #200

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

Closed
bcpeinhardt opened this issue Jun 8, 2022 · 2 comments
Closed

Lacking pre-built binaries on RaspberryPi #200

bcpeinhardt opened this issue Jun 8, 2022 · 2 comments

Comments

@bcpeinhardt
Copy link

Hello!
I'm trying to use a raspberry pi 4 running ubuntu server as a dev environment. I'm running into issues with missing pre-built binaries. Currently, I'm stuck at

ubuntu@ubuntu:~/development/project_name$ npx wrangler dev
 ⛅️ wrangler 2.0.8 
-------------------
Running custom build: cargo install -q worker-build && worker-build --release
[INFO]: Checking for the Wasm target...
[INFO]: Compiling to Wasm...
    Finished release [optimized] target(s) in 0.26s
[INFO]: Installing wasm-bindgen...
Error: no prebuilt wasm-opt binaries are available for this platform: Unrecognized target!
To disable `wasm-opt`, add `wasm-opt = false` to your package metadata in your `Cargo.toml`.
Error: wasm-pack exited with status exit status: 1

✘ [ERROR] Command failed with exit code 1: cargo install -q worker-build && worker-build --release

If possible I'd like to somehow configure this to build from source or point it to a binary on my machine. Any suggestions would be appreciated.

@bcpeinhardt
Copy link
Author

Update: Working on a rustwasm/wasm-pack#913 based solution

@zebp
Copy link
Collaborator

zebp commented Jun 8, 2022

wasm-pack has this same issue on the new arm MacBooks, but you can get around it by specifying a path to a wasm-opt you get yourself via the WASM_OPT environment variable. That's what I've been doing for a while.

Closing because this is isn't workers-rs specific.

@zebp zebp closed this as completed Jun 8, 2022
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