Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation error #4

Open
welvinyu opened this issue Feb 16, 2016 · 4 comments
Open

compilation error #4

welvinyu opened this issue Feb 16, 2016 · 4 comments

Comments

@welvinyu
Copy link

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

@catena2w
Copy link

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

@amiller
Copy link
Owner

amiller commented Aug 25, 2016

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
Copy link
Owner

amiller commented Aug 25, 2016

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

@yijunyu
Copy link

yijunyu commented Aug 29, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants