The following error occurred while building the substrate smart contract:
You can just install wasm-opt from this repo as per your distro.