Iâm unable to compile ocaml
src_ext/dune-local/dune.exe build --profile=release --promote-install-files opam-installer.install
Scanned 0 directoriesScanned 0 directoriesScanned 0 directoriesScanned 0 directoFile "_build/default/LICENSE", line 1, characters 0-0: 0)
Error: Rule failed to generate the following targets:
- default/doc/opam-installer/LICENSE
File "src/dune", line 6, characters 0-101:
6 | (rule
7 | (with-stdout-to ocaml-context-flags.sexp (run ocaml %{dep:../shell/context_flags.ml} flags)))
Error: Rule failed to generate the following targets:
- src/ocaml-context-flags.sexp
File "src/tools/dune", line 1, characters 0-0:
Error: Rule failed to generate the following targets:
- src/tools/opam_installer.ml
make: *** [Makefile:122: build-opam-installer] Error 1
make: *** Attente des tùches non terminées....
File "src/dune", line 6, characters 0-101:
6 | (rule
7 | (with-stdout-to ocaml-context-flags.sexp (run ocaml %{dep:../shell/context_flags.ml} flags)))
Error: Rule failed to generate the following targets:
- src/ocaml-context-flags.sexp
Done: 302/1068 (jobs: 4)make: *** [Makefile:130: opam.install] Error 1
ocaml src_ext/extlib/src/compat-level
sh: 1: ocamlfind: not found
File "_none_", line 1: )
Warning 58: no cmx file was found in path for module Graph__Delaunay, and its interface was not compiled with -opaque
File "src_ext/cmdliner/src/cmdliner_cline.mli", line 7, characters 5-11:
Error: Unbound module Result
File "src_ext/cmdliner/src/cmdliner_manpage.ml", line 7, characters 5-11:
Error: Unbound module Result
File "src_ext/ocamlgraph/src/graphml.ml", line 1:
Error: Could not find the .cmi file for interface
src_ext/ocamlgraph/src/graphml.ml.
File "src_ext/ocamlgraph/src/imperative.ml", line 1:
Error: Could not find the .cmi file for interface
src_ext/ocamlgraph/src/imperative.ml.
File "src_ext/ocamlgraph/src/persistent.ml", line 1:
Error: Could not find the .cmi file for interface
src_ext/ocamlgraph/src/persistent.ml.
File "src_ext/re/lib/re__.ml-gen", line 1:
Error: Corrupted compiled interface
src_ext/re/lib/.re.objs/byte/re__.cmi
File "src_ext/ocamlgraph/src/.graph.objs/_unknown_", line 1, characters 0-0:
Error: Rule failed to generate the following targets:
- src_ext/ocamlgraph/src/.graph.objs/dot_parser.mli.d
File "src_ext/seq/src/.select_version.eobjs/byte/_unknown_", line 1, characters 0-0:
Error: Rule failed to generate the following targets:
- src_ext/seq/src/.select_version.eobjs/byte/select_version.cmi
- src_ext/seq/src/.select_version.eobjs/byte/select_version.cmo
- src_ext/seq/src/.select_version.eobjs/byte/select_version.cmt
make: *** [Makefile:124: opam-installer.install] Error 1
gcc src_ext/mccs/src/glpk/wclique1.o
src_ext/mccs/src/glpk/misc/wclique1.c: In function â_glp_wclique1â:
src_ext/mccs/src/glpk/misc/wclique1.c:111:7: warning: âmemsetâ specified size between 2147483648 and 4294967295 exceeds maximum object size 2147483647 [-Wstringop-overflow=]
src_ext/mccs/src/glpk/misc/wclique1.c:113:7: warning: âmemsetâ specified size between 2147483648 and 4294967295 exceeds maximum object size 2147483647 [-Wstringop-overflow=]
File "_none_", line 1:
Error: Cannot find file src_ext/re/lib/.re.objs/native/re__.cmx
make: *** [Makefile:128: build-opam] Error 1
Seems to have to do with src_ext. But the funny thing thing is that doing, " ```
make -j 4 lib-ext
I donât remember any errors. And it doesnât seem to do anything when I try again ( even after a make clean and a git clean).
Edit:
It seems that ocaml works with he apt installation ( didnât work a few months again)
you have to install also
sudo apt-get install libipc-system-simple-perl libmbedtls-dev libstring-shellquote-perl
now itâs stops at âmakeâ
File âsrc/codegen/codegen.mlâ, line 262, characters 25-42:
Error: Unbound module Base64
File âsrc/optimization/inline.mlâ, line 135, characters 33-46:
Error: This expression has type TType.texpr option
but an expression was expected of type TType.texpr