Wasm-pack: no prebuilt wasm-opt binaries error

Created on 7 Sep 2020  路  7Comments  路  Source: rustwasm/wasm-pack

馃悰 Bug description

I'm running wasm-pack on a raspberry pie 3b (arm v71). and are trying the game of life tutorial. Build 'fails' with an error. (I say 'fails', as I get something that works after all.)

~/rust/wasm-game-of-life $ wasm-pack build Finished release [optimized] target(s) in 0.50s Error: no prebuilt wasm-opt binaries are available for this platform: Unrecognized target! To disablewasm-opt, addwasm-opt = falseto your package metadata in your 'Cargo.toml'.

馃 Expected Behavior

Looking at wasm-opt.rs, I would have expected the build to successfully complete, giving the message "Skipping wasm-opt because it is not supported on this platform".
It also doesn't seem to look for a local wasm-opt in the path, as described above pub fn find_wasm_opt. I downloaded the wasm-opt source, build it locally and added the bin dir it to the path... source doesn't show any signs of looking at the path...

馃憻 Steps to reproduce

Get a raspberry pie, install raspbian OS, install git, rust, wasm, etc
git clone https://github.com/rustwasm/wasm_game_of_life.git
cd wasm_game_of_life/
wasm_pack build

馃實 Your environment

Include the relevant details of your environment.
wasm-pack version: 0.9.1
rustc version: 1.46.0

bug wasm-opt

Most helpful comment

Same problem on an ARM Mac.

All 7 comments

I ran into a completely different issue with wasm-opt as well which was solved by downgrading to 0.8.1. I reckon that will not solve anything for you considering the lack of binaries.

Have you tried disabling wasm-opt altogether? To disable wasm-opt, add wasm-opt = false to your package metadata in your Cargo.toml. Obviously doesn't address the issue here, but perhaps it'll at least allow you to continue.

I think this is a duplicate of https://github.com/rustwasm/wasm-pack/issues/886

I think this is a duplicate of #886

No, because that bug occurs when wasm-opt is actually running. In my case, the wasm-opt binaries are not found at all.

Same issue here with a raspberry-pi 4

everything compiles well but wasm-opt fails.

Same problem on an ARM Mac.

Same problem occurs on 12.2-STABLE FreeBSD 12.2-STABLE GENERIC amd64

exactly the same issue on m1 Mac. Any resolution?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tbillington picture tbillington  路  3Comments

jsheard picture jsheard  路  4Comments

ashleygwilliams picture ashleygwilliams  路  3Comments

rbtcollins picture rbtcollins  路  3Comments

rpjohnst picture rpjohnst  路  5Comments