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

error could not find wasm-opt, set the WASMOPT environment variable to override during build #283

Open
vivekskrishna opened this issue Jun 28, 2024 · 2 comments

Comments

@vivekskrishna
Copy link

Tried runnign go run mage.go build with
tinygo version 0.31.2 and go version 1.21 5 and got following error
go: downloading github.com/petar-dambovaliev/aho-corasick v0.0.0-20230725210150-fb29fc3c913e

error: could not find wasm-opt, set the WASMOPT environment variable to override
Error: running "tinygo build -gc=custom -opt=2 -o build/mainraw.wasm -scheduler=none -target=wasi -tags='custommalloc nottinygc_envoy no_fs_access memoize_builders coraza.rule.multiphase_evaluation'" failed with exit code 1
exit status 1

Any diea how to resolve this. When googling i found this is because binaryen is not available. is it something that needs to be installed?

@jcchavezs
Copy link
Member

jcchavezs commented Jun 29, 2024 via email

@M4tteoP
Copy link
Member

M4tteoP commented Jul 2, 2024

FYI #282 is merged. Master now builds with tinygo 0.31.2 and go 1.20. I confirm the issue JC pointed to, I faced the same problem and it is why I used tinygo binary downloaded from the repository and I had to install the binaryen dependency

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

3 participants