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 LAA24532; Tue, 24 Apr 2001 11:22:28 +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 LAA24516 for ; Tue, 24 Apr 2001 11:22:27 +0200 (MET DST) Received: from dpt-info.u-strasbg.fr (dpt-info.u-strasbg.fr [130.79.6.1]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f3O9MPP03395 for ; Tue, 24 Apr 2001 11:22:26 +0200 (MET DST) Received: from lambda.u-strasbg.fr (lambda.u-strasbg.fr [130.79.90.63]) by dpt-info.u-strasbg.fr (8.9.3/8.9.3) with ESMTP id LAA18395; Tue, 24 Apr 2001 11:21:09 +0200 Received: from luther by lambda.u-strasbg.fr with local (Exim 3.22 #1 (Debian)) id 14rz2o-0001gh-00; Tue, 24 Apr 2001 11:23:38 +0200 Date: Tue, 24 Apr 2001 11:23:38 +0200 To: Gerd Stolpmann Cc: Steve Stevenson , caml-list@inria.fr Subject: Re: [Caml-list] Help using unix library? Message-ID: <20010424112338.A6472@lambda.u-strasbg.fr> References: <15071.19327.151495.618688@merlin.cs.clemson.edu> <01042321574905.02753@ice> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.17i In-Reply-To: <01042321574905.02753@ice>; from gerd@gerd-stolpmann.de on Mon, Apr 23, 2001 at 09:52:01PM +0200 From: Sven LUTHER Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Mon, Apr 23, 2001 at 09:52:01PM +0200, Gerd Stolpmann wrote: > On Thu, 19 Apr 2001, Steve Stevenson wrote: > >Good afternoon: > > > > I have references to the unix library using ocaml 3.01. The make > >file has > > > > ebv0: $(BASICOBJECTS) > > ocamlc -g -o ebv0 unix.cma $(BASICOBJECTS) > > cp ebv0 Test/ebv0 > > > >where BASICOBJECTS are all ocaml .cmo files. The complaint is > > > >Fatal error: this bytecode file cannot run on this bytecode interpreter > >Mismatch on primitive `unix_dup' > > > >Does this sound like an installation problem or a mistake in my > >coding? I'm not using dup. > > Try > > ocamlc -custom -g -o ebv0 unix.cma $(BASICOBJECTS) > > This makes ebv0 a bit larger, but avoids that problem because ebv0 contains the > bytecode interpreter that is able to execute the code. By default (without > -custom), the generated executable uses the distributed ocamlrun interpreter. But you loose the portability of the bytecode by doing this. This may not be a problem for you though. Friendly, Sven Luther ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr