harukamm / block_of_ocaml

Print AST of OCaml code as XML
3 stars 2 forks source link

Which is ocaml version for make this project? #1

Open xlisp opened 5 years ago

xlisp commented 5 years ago

➜  block_of_ocaml_2 git:(master) make
ocamlfind ocamldep my_parse.mli > ._bcdi/my_parse.di
ocamlfind ocamldep main.ml > ._d/main.d
ocamlfind ocamldep my_compile.ml > ._d/my_compile.d
ocamlfind ocamldep my_parse.ml > ._d/my_parse.d
ocamlfind ocamldep astToBlock.ml > ._d/astToBlock.d
ocamlfind ocamldep xml.ml > ._d/xml.d
ocamlfind ocamlc -package compiler-libs.common,compiler-libs.bytecomp -c xml.ml
findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /Users/clojure/.opam/4.06.1/lib/ocaml, /Users/clojure/.opam/4.06.1/lib/ocaml/compiler-libs
ocamlfind ocamlc -package compiler-libs.common,compiler-libs.bytecomp -c astToBlock.ml
findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /Users/clojure/.opam/4.06.1/lib/ocaml, /Users/clojure/.opam/4.06.1/lib/ocaml/compiler-libs
ocamlfind ocamlc -package compiler-libs.common,compiler-libs.bytecomp -c my_parse.mli
findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /Users/clojure/.opam/4.06.1/lib/ocaml, /Users/clojure/.opam/4.06.1/lib/ocaml/compiler-libs
ocamlfind ocamlc -package compiler-libs.common,compiler-libs.bytecomp -c my_parse.ml
findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /Users/clojure/.opam/4.06.1/lib/ocaml, /Users/clojure/.opam/4.06.1/lib/ocaml/compiler-libs
ocamlfind ocamlc -package compiler-libs.common,compiler-libs.bytecomp -c my_compile.ml
findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /Users/clojure/.opam/4.06.1/lib/ocaml, /Users/clojure/.opam/4.06.1/lib/ocaml/compiler-libs
ocamlfind ocamlc -package compiler-libs.common,compiler-libs.bytecomp -c main.ml
findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /Users/clojure/.opam/4.06.1/lib/ocaml, /Users/clojure/.opam/4.06.1/lib/ocaml/compiler-libs
File "main.ml", line 49, characters 8-29:
Error: Unbound value Clflags.print_timings
make[1]: *** [main.cmo] Error 2
make: *** [byte-code] Error 2
➜  block_of_ocaml_2 git:(master)
xlisp commented 5 years ago

➜  block_of_ocaml_3 git:(master) make
ocamlfind ocamldep my_parse.mli > ._bcdi/my_parse.di
ocamlfind ocamldep main.ml > ._d/main.d
ocamlfind ocamldep my_compile.ml > ._d/my_compile.d
ocamlfind ocamldep my_parse.ml > ._d/my_parse.d
ocamlfind ocamldep astToBlock.ml > ._d/astToBlock.d
ocamlfind ocamldep xml.ml > ._d/xml.d
ocamlfind ocamlc -package compiler-libs.common,compiler-libs.bytecomp -c xml.ml
findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /Users/clojure/.opam/4.07.0/lib/ocaml, /Users/clojure/.opam/4.07.0/lib/ocaml/compiler-libs
ocamlfind ocamlc -package compiler-libs.common,compiler-libs.bytecomp -c astToBlock.ml
findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /Users/clojure/.opam/4.07.0/lib/ocaml, /Users/clojure/.opam/4.07.0/lib/ocaml/compiler-libs
ocamlfind ocamlc -package compiler-libs.common,compiler-libs.bytecomp -c my_parse.mli
findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /Users/clojure/.opam/4.07.0/lib/ocaml, /Users/clojure/.opam/4.07.0/lib/ocaml/compiler-libs
ocamlfind ocamlc -package compiler-libs.common,compiler-libs.bytecomp -c my_parse.ml
findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /Users/clojure/.opam/4.07.0/lib/ocaml, /Users/clojure/.opam/4.07.0/lib/ocaml/compiler-libs
ocamlfind ocamlc -package compiler-libs.common,compiler-libs.bytecomp -c my_compile.ml
findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /Users/clojure/.opam/4.07.0/lib/ocaml, /Users/clojure/.opam/4.07.0/lib/ocaml/compiler-libs
File "my_compile.ml", line 45, characters 4-152:
Error: This expression has type error:bool -> unit
       but an expression was expected of type unit
       because it is in the result of a conditional with no else branch
make[1]: *** [my_compile.cmo] Error 2
make: *** [byte-code] Error 2
➜  block_of_ocaml_3 git:(master)