* [Caml-list] Inconsistence between ocamlc and ocamlopt
@ 2002-08-16 2:14 Michaël Grünewald
0 siblings, 0 replies; only message in thread
From: Michaël Grünewald @ 2002-08-16 2:14 UTC (permalink / raw)
To: caml-list
Files algo.cmx and interpolation.cmx both define a module named Algo
I just experimented something really strange,
while building successfully a bytecode library using `ocamlfind ocamlc' it
fails when trying to build the native form for the library:
Files algo.cmx and interpolation.cmx both define a module named Algo
*** Error code 2
Which is false (and i cannot figure out how these two different files could
both define a module named algo), and the bytecode compiler
Here are the occurences for the word algo in the source files: always on
right side, it should not be a declaraion for the word ?
$ grep -i algo *.ml
interpolation.ml: module AP = Algo.Poly(K)
interpolation.ml: module AM = Algo.Matrice(K)(M)
main.ml:module AlgP = Algo.Poly(R);;
main.ml:module AlgM = Algo.Matrice(R)(M);;
Each modules are produced with lines like:
$ make VERBOSE=YES algebre.cma
ocamlfind ocamlc -c -o anneau.cmo anneau.ml
[...]
ocamlfind ocamlc -a -o algebre.cma anneau.cmo corps.cmo poly.cmo
matrice.cmo interpolation.cmo algo.cmo
or
$ make VERBOSE=YES algebre.cmxa
ocamlfind ocamlopt -c -o anneau.cmx anneau.ml
[...]
ocamlfind ocamlopt -a -o algebre.cmxa anneau.cmx corps.cmx poly.cmx
matrice.cmx interpolation.cmx algo.cmx
Files algo.cmx and interpolation.cmx both define a module named Algo
*** Error code 2
There is nothing surnatural in the compiler's incantations, so, what's going
wrong ? That is what i cannot guess (this has nothing to do with ocamlfind,
it fails in the same manner when not using it).
--
Michaël Grünewald <michael-grunewald@wanadoo.fr> - RSA PGP Key ID: 0x20D90C12
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-08-17 11:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-16 2:14 [Caml-list] Inconsistence between ocamlc and ocamlopt Michaël Grünewald
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox