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 QAA02477; Wed, 20 Aug 2003 16:01:26 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA19387 for ; Wed, 20 Aug 2003 16:01:25 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h7KE0sf10370; Wed, 20 Aug 2003 16:00:54 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA03136; Wed, 20 Aug 2003 16:00:53 +0200 (MET DST) Date: Wed, 20 Aug 2003 16:00:53 +0200 From: Xavier Leroy To: Richard Jones Cc: caml-list@inria.fr Subject: Re: [Caml-list] ocamlc -pack and ocamlopt -pack produce different cmi files! Message-ID: <20030820160053.A794@pauillac.inria.fr> References: <20030818092125.GA3907@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20030818092125.GA3907@redhat.com>; from rich@annexia.org on Mon, Aug 18, 2003 at 10:21:25AM +0100 X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 ocamlc:01 -pack:01 ocamlopt:01 model:01 cmx:01 digests:01 digest:01 bug:01 bin:01 cmo:01 ocaml:01 identical:03 reproduce:03 inherited:04 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > I have some (inherited) code which has a build script doing this: > > ocamlc -pack -g -o bin/c/simlib.cmo -I $SUB/zkit -I $SUB/model -I $SUB/cjs2 $FILESLIB $FILESMODEL $FILESCJS2 > > ocamlopt -pack -o bin/opt/simlib.cmx -I $SUB/zkit -I $SUB/model -I $SUB/cjs2 $FILESLIB $FILESMODEL $FILESCJS2 > > It turns out that the two simlib.cmi files built by these two steps > have different MD5 digests. Why is this, and is there some way to > ensure they have the same digest? The two .cmi files should be identical, so it looks like a bug. I can't reproduce it here on a simple example. What version of OCaml are you using, and could you send me a set of source files that reproduce the problem? - Xavier Leroy ------------------- 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