lambda-auth icon indicating copy to clipboard operation
lambda-auth copied to clipboard

compilation error

Open welvinyu opened this issue 9 years ago • 4 comments

I was not able to build the example using make. It first reports the following error: Makefile:145: .depend: No such file or directory make: *** No rule to make target `.depend'. Stop.

After the line 145 on the Makefile, I encounter the following error: ocamlfind ocamlc -I +compiler-libs -g -annot -bin-annot -w A-4-9 -warn-error A-4-9-10-27-32-33-34-39-45 -I +compiler-libs -package cryptokit -I +unix -c ttmap.ml findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /usr/local/lib/ocaml/compiler-libs, /usr/local/lib/ocaml File "ttmap.ml", line 1193, characters 6-25: Error: Unbound type constructor modtype_declaration Hint: Did you mean module_declaration or type_declaration? make: *** [ttmap.cmo] Error 2

I wonder if it has to do with the version of OCaml I installed?

$ ocaml -version The OCaml toplevel, version 4.02.3

welvinyu avatar Feb 16 '16 12:02 welvinyu

I have the same problem

$ make
Makefile:145: .depend: No such file or directory
make: *** No rule to make target `.depend'.  Stop.
$ ocaml -version
The OCaml toplevel, version 4.01.0

catena2w avatar Aug 24 '16 14:08 catena2w

I did $ touch .depend as a workaround and then it got past that first problem. I'm using 4.02.1 right now and also have the same problem as welvinyu so I'm looking into that next.

amiller avatar Aug 25 '16 18:08 amiller

I switched to 4.01.0 by using $ opam switch 4.01.0. I also had to remember to download the source tarball https://ocaml.org/releases/4.01.0.html which needs to be in the ../ocaml-4.01.0/ location. And the requirements are opam install sha batteries cryptokit benchmark ocamlfind, and then the examples still worked

amiller avatar Aug 25 '16 18:08 amiller

Thank you Andrew. After switching to 4.01.0, it works for me now. A minor caveat, the shared library cryptokit is installed to a path different from what's specified by the ld.conf file. Appending that path it solves the compilation problem. I think you can close this issue now.

yijunyu avatar Aug 29 '16 09:08 yijunyu