jacquev6 / DrawGrammar

Draw railroad diagrams of EBNF grammars. In browser and on command line
http://jacquev6.github.io/DrawGrammar
56 stars 6 forks source link

Compilation fails #7

Closed matthijsgroen closed 5 years ago

matthijsgroen commented 5 years ago
[ERROR] The compilation of DrawGrammar failed at "/Users/matthijsgroen/.opam/opam-init/hooks/sandbox.sh build jbuilder build -p DrawGrammar -j
        7".

#=== ERROR while compiling DrawGrammar.0.2.1 ==================================#
# context     2.0.1 | macos/x86_64 | ocaml-base-compiler.4.06.1 | https://opam.ocaml.org#2913c56a
# path        ~/.opam/default/.opam-switch/build/DrawGrammar.0.2.1
# command     ~/.opam/opam-init/hooks/sandbox.sh build jbuilder build -p DrawGrammar -j 7
# exit-code   1
# env-file    ~/.opam/log/DrawGrammar-26014-ffb3fd.env
# output-file ~/.opam/log/DrawGrammar-26014-ffb3fd.out
### output ###
# [...]
#       ocamlc src/.draw_grammar.eobjs/draw_grammar.{cmi,cmo,cmt} (exit 2)
# (cd _build/default && /Users/matthijsgroen/.opam/default/bin/ocamlc.opt -w -40 -g -bin-annot -I src/.draw_grammar.eobjs -I /Users/matthijsgroen/.opam/default/lib/General -I /Users/matthijsgroen/.opam/default/lib/JsOfOCairo -I /Users/matthijsgroen/.opam/default/lib/bytes -I /Users/matthijsgroen/.opam/default/lib/cairo2 -I /Users/matthijsgroen/.opam/default/lib/js_of_ocaml -I /Users/matthijsgro[...]
# File "src/draw_grammar.ml", line 109, characters 28-33:
# Error: Signature mismatch:
#        ...
#        In module Matrix:
#        Values do not match:
#          val init_translate : float -> float -> t
#        is not included in
#          val init_translate : x:float -> y:float -> t
#        File "S.incl.mli", line 80, characters 2-45: Expected declaration
#        File "src/cairo.mli", line 143, characters 2-42: Actual declaration

<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build DrawGrammar 0.2.1
+-
- No changes have been performed

any indication what the problem could be? I'm totally new to opam, I was just using it to try to get DrawGrammar running

jacquev6 commented 5 years ago

This seems related to the non-backward-compatible change Christophe made in ocaml-cairo. You may work around that by downgrading to cairo2 version 0.5. When I adapt JsOfOCairo to this change, I'll fix its clients as well, including DrawGrammar.

jacquev6 commented 5 years ago

Status update:

Next steps:

jacquev6 commented 5 years ago

@matthijsgroen you should now be able to install DrawGrammar easily:

opam update
opam install DrawGrammar

Please let me know if you still encounter any problem!