From: "David E. Narvaez" <den9562@rit.edu> To: caml-list@inria.fr Subject: [Caml-list] ocamldep and stdlib Date: Fri, 10 Dec 2021 16:37:29 -0500 [thread overview] Message-ID: <1801314.tdWV9SEqCh@titanium> (raw) Greetings, I am fairly inexperienced with OCaml but I have inherited a Makefile from a project, and it uses ocamldep in a way that is equivalent to the following example: $ cat hello.ml module StringSet = Set.Make(String) ;; module StringMap = Map.Make(String) ;; $ ocamldep -I /usr/lib64/ocaml/ hello.ml hello.cmo : \ /usr/lib64/ocaml/string.cmi \ /usr/lib64/ocaml/set.cmi \ /usr/lib64/ocaml/map.cmi hello.cmx : \ /usr/lib64/ocaml/string.cmx \ /usr/lib64/ocaml/set.cmx \ /usr/lib64/ocaml/map.cmx The problem is those dependency files do not exist, instead I have these files: $ ls -1 /usr/lib64/ocaml/*{string,set,map}.cm[ix] /usr/lib64/ocaml/stdlib__map.cmi /usr/lib64/ocaml/stdlib__map.cmx /usr/lib64/ocaml/stdlib__set.cmi /usr/lib64/ocaml/stdlib__set.cmx /usr/lib64/ocaml/stdlib__string.cmi /usr/lib64/ocaml/stdlib__string.cmx I have noticed that I do not get incorrect filenames (in fact, any filenames) if I do not specify the location of the ocaml libraries: $ ocamldep hello.ml hello.cmo : hello.cmx : but I was hoping I did not have to change the call in the Makefile. I have tested this in OCaml 4.09.0 and 4.12.1. Is this a bug? or what is the correct way of using ocmaldep in this case? Thanks in advance for your help. -- David E. Narvaez
next reply other threads:[~2021-12-10 21:37 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-12-10 21:37 David E. Narvaez [this message] 2021-12-10 22:12 ` Sébastien Hinderer 2021-12-11 11:44 ` Nicolás Ojeda Bär
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1801314.tdWV9SEqCh@titanium \ --to=den9562@rit.edu \ --cc=caml-list@inria.fr \ --subject='Re: [Caml-list] ocamldep and stdlib' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).