Now I am trying to write a compiler with ocamlfindsome packages, especially ppx_sexp_convwith opam.
In some cases, dependencies are ppx_sexp_convrequired compiler-libs, so ocamlfind ocamlc -package ppx_sexp_convan option is added when compiling files -I ~/.opam/VERSION/lib/compiler-libs.
The problem is, that compiler-libscontains very common file name, such as parsing.cmi, main.cmi, lexing.cmi.
This leads to file conflicts .cmiand makes a lot of noisy warnings as follows:
$ ocamlfind ocamlc -package ppx_sexp_conv -c parser.mli
findlib: [WARNING] Interface main.cmi occurs in several directories: ., /home/nomaddo/.opam/4.02.3/lib/ocaml/compiler-libs
findlib: [WARNING] Interface lexer.cmi occurs in several directories: ., /home/nomaddo/.opam/4.02.3/lib/ocaml/compiler-libs
findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /home/nomaddo/.opam/4.02.3/lib/ocaml/compiler-libs, /home/nomaddo/.opam/4.02.3/lib/ocaml
findlib: [WARNING] Interface parser.cmi occurs in several directories: ., /home/nomaddo/.opam/4.02.3/lib/ocaml/compiler-libs
`` ``
Note that main.cmi, parsing.cmi, lexing.cmiand main.cmiexist in the same directory.
I believe that such file names are common and everyone wants to use.
My question is how to calm such noisy warnings.
Thanks to them, it is difficult to find more important warnings and errors right away ...
My environment: ocaml 4.02.3 with opam 1.2.2.
source
share