Closed andrewnc closed 4 years ago
I disabled the bytecode target and now only compile to native code. This may fix the issue. Try:
opam unpin xs
opam pin add xs https://github.com/smabie/xs.git
If this fails to resolve the issue I will get access to an osx machine tomorrow. Let me know. Thanks!
First! Thanks for helping out.
Unfortunately, that did not resolve the issue. This seems like the same error.
[ERROR] The compilation of xs failed at "/Users/andrewcarr/.opam/opam-init/hooks/sandbox.sh build dune build -p xs -j 3 @install".
#=== ERROR while compiling xs.~dev ============================================#
# context 2.0.6 | macos/x86_64 | ocaml-base-compiler.4.10.0 | pinned(git+https://github.com/smabie/xs.git#6b5d6333)
# path ~/.opam/default/.opam-switch/build/xs.~dev
# command ~/.opam/opam-init/hooks/sandbox.sh build dune build -p xs -j 3 @install
# exit-code 1
# env-file ~/.opam/log/xs-52361-b1a82b.env
# output-file ~/.opam/log/xs-52361-b1a82b.out
### output ###
# ocamlc src/.xslib.objs/byte/xslib__Parser.{cmi,cmo,cmt} (exit 2)
# (cd _build/default && /Users/andrewcarr/.opam/default/bin/ocamlc.opt -w -40 -warn-error -a+31-6 -w -6 -g -bin-annot -I src/.xslib.objs/byte -I /Users/andrewcarr/.opam/default/lib/angstrom -I /Users/andrewcarr/.opam/default/lib/base -I /Users/andrewcarr/.opam/default/lib/base/base_internalhash_types -I /Users/andrewcarr/.opam/default/lib/base/caml -I /Users/andrewcarr/.opam/default/lib/base/md[...]
# File "src/parser.ml", line 111, characters 4-9:
# 111 | | Ok xs -> mk_tree xs
# ^^^^^
# Error: This pattern matches values of type
# ('a, 'b) Core._result = ('a, 'b) Stdlib.result
# but a pattern was expected which matches values of type
# consume:Angstrom.Consume.t ->
# (Xslib.Defs.parse_val, string) Stdlib.result
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><> π«
ββ The following actions failed
β Ξ» build xs ~dev
ββ
βΆβ No changes have been performed```
Ok, I fixed the problem. Simply run
opam unpin xs
opam pin add xs https://github.com/smabie/xs.git
eval $(opam env)
xs # to start the interpreter
Again and it will work. Thanks for the interest!
That worked like a charm! Thank you.
Also, I should have mentioned, you probably want to rlwrap
xs for nice editing functionality.
All dependencies were installed and built fine, just the build of the language itself failed.
on Catalina 10.15.4