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

Add wasm-2.0.1 package #24152

Merged
merged 2 commits into from
Jul 24, 2023
Merged

Add wasm-2.0.1 package #24152

merged 2 commits into from
Jul 24, 2023

Conversation

rossberg
Copy link
Contributor

No description provided.

@rossberg
Copy link
Contributor Author

Hm, I'm a bit confused. Does ocamlopt not exist for 5.0 on some platforms? If so, how can I fix the failure on my end?

#=== ERROR while compiling wasm.2.0.1 =========================================#
# context              2.2.0~alpha2~dev | linux/arm32 | ocaml-base-compiler.5.0.0 | pinned(https://github.com/WebAssembly/spec/archive/opam-2.0.1.zip)
# path                 ~/.opam/5.0/.opam-switch/build/wasm.2.0.1
# command              ~/.opam/opam-init/hooks/sandbox.sh build make -C interpreter opt unopt
# exit-code            2
# env-file             ~/.opam/log/wasm-7-1d4153.env
# output-file          ~/.opam/log/wasm-7-1d4153.out
### output ###
# make: Entering directory '/home/opam/.opam/5.0/.opam-switch/build/wasm.2.0.1/interpreter'
# echo >_tags "true: bin_annot"
# echo >>_tags "true: debug"
# echo >>_tags "<{util,syntax,binary,text,valid,runtime,exec,script,host,main,tests}/*.cmx>: for-pack(Wasm)"
# ocamlbuild -lexflags -ml -cflags '-w +a-4-27-42-44-45-70 -warn-error +a-3' -I util -I syntax -I binary -I text -I valid -I runtime -I exec -I script -I host -I main -I tests  -quiet main.native
# + ocamlopt -c -w +a-4-27-42-44-45-70 -warn-error +a-3 -g -bin-annot -for-pack Wasm -I exec -I valid -I util -I text -I tests -I syntax -I script -I runtime -I main -I host -I binary -o exec/ixx.cmx exec/ixx.ml
# /bin/sh: 1: ocamlopt: not found
# Command exited with code 127.
# make: *** [Makefile:73: main.native] Error 10

Co-authored-by: Anil Madhavapeddy <anil@recoil.org>
@avsm
Copy link
Member

avsm commented Jul 24, 2023

Pushed a fix; once you release WebAssembly/spec#1665 it'll all just work on those architectures too (dune selects the best available target between bytecode and native code)

@avsm avsm merged commit c2c6b46 into ocaml:master Jul 24, 2023
@avsm
Copy link
Member

avsm commented Jul 24, 2023

Thanks! You may want to announce this on https://discuss.ocaml.org, where we have a Community category and an announce tag for this purpose.

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

Successfully merging this pull request may close these issues.

2 participants