From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA04385; Sat, 17 Aug 2002 13:01:39 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA04424 for caml-list@pauillac.inria.fr; Sat, 17 Aug 2002 13:01:39 +0200 (MET DST) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id EAA12233 for ; Fri, 16 Aug 2002 04:13:01 +0200 (MET DST) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g7G2Cxn13745 for ; Fri, 16 Aug 2002 04:12:59 +0200 (MET DST) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 17fWai-00016b-00 for ; Fri, 16 Aug 2002 04:11:56 +0200 To: caml-list@inria.fr X-Injected-Via-Gmane: http://gmane.org/ Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 17fWai-00016T-00 for ; Fri, 16 Aug 2002 04:11:56 +0200 Path: not-for-mail From: "=?iso-8859-15?q?Micha=EBl_Gr=FCnewald?=" Newsgroups: gmane.comp.lang.caml.inria Subject: [Caml-list] Inconsistence between ocamlc and ocamlopt Date: 16 Aug 2002 04:14:32 +0200 Organization: (none) Message-ID: <8765ybh7nb.fsf@ketanu.dyndns.org> NNTP-Posting-Host: amontpellier-203-1-4-191.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1029463916 4244 80.14.105.191 (16 Aug 2002 02:11:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 16 Aug 2002 02:11:56 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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 - 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