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] No package named wasm_of_ocaml-compiler found. #16

Closed
jayphelps opened this issue Dec 11, 2023 · 3 comments
Closed

[ERROR] No package named wasm_of_ocaml-compiler found. #16

jayphelps opened this issue Dec 11, 2023 · 3 comments

Comments

@jayphelps
Copy link

jayphelps commented Dec 11, 2023

When using the README install instructions once I get to opam install wasm_of_ocaml-compiler I get the error [ERROR] No package named wasm_of_ocaml-compiler found.

I've tried restarting my shell env, no effect. Also tried the same steps over again, three times.

@jmid
Copy link
Collaborator

jmid commented Dec 11, 2023

@JasonGross figured out improved installation instructions in #13 (the PR needs rebasing though)
Can you try those instructions?

@jayphelps
Copy link
Author

jayphelps commented Dec 11, 2023

@jmid @JasonGross Those instructions seem to get further since they don't error with No package named but that final command still does fail with this:

➜  ocaml opam install wasm_of_ocaml-compiler


<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><>  🐫 
[wasm_of_ocaml-compiler.5.3.0] synchronised (no changes)

Constructing initial basis...
Number of 0-1 knapsack inequalities = 1810
Constructing conflict graph...
Conflict graph has 551 + 213 = 764 vertices
The following actions will be performed:
  ∗ install wasm_of_ocaml-compiler 5.3.0*

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫 
⬇ retrieved wasm_of_ocaml-compiler.5.3.0  (no changes)
[ERROR] The compilation of wasm_of_ocaml-compiler.5.3.0 failed at "dune build -p wasm_of_ocaml-compiler -j 9 @install".

#=== ERROR while compiling wasm_of_ocaml-compiler.5.3.0 =======================#
# context     2.1.5 | macos/arm64 | ocaml.4.14.0 | pinned(git+https://github.com/ocaml-wasm/wasm_of_ocaml.git#c4ad40dc849188cc11cc981e2e5bc5c1b1fbea48)
# path        ~/.opam/default/.opam-switch/build/wasm_of_ocaml-compiler.5.3.0
# command     ~/.opam/opam-init/hooks/sandbox.sh build dune build -p wasm_of_ocaml-compiler -j 9 @install
# exit-code   1
# env-file    ~/.opam/log/wasm_of_ocaml-compiler-74422-b08e7c.env
# output-file ~/.opam/log/wasm_of_ocaml-compiler-74422-b08e7c.out
### output ###
# File "runtime/wasm/dune", line 11, characters 14-24:
# 11 |          (run wasm-merge -g --enable-gc --enable-exception-handling --enable-reference-types --enable-tail-call --enable-strings --enable-multivalue --enable-bulk-memory %{read-lines:args} -o -)
#                    ^^^^^^^^^^
# Error: Program wasm-merge not found in the tree or in PATH
#  (context: default)



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫 
┌─ The following actions failed
│ λ build wasm_of_ocaml-compiler 5.3.0
└─ 
╶─ No changes have been performed

But putting wasm-merge from Binaryen in my PATH did solve it. So if wasm-merge is a requirement that probably should either be part of the install or stated as a pre-req.

@jayphelps
Copy link
Author

Thanks folks!

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