caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Sven LUTHER <luther@dpt-info.u-strasbg.fr>
To: Gerd Stolpmann <gerd@gerd-stolpmann.de>
Cc: Steve Stevenson <steve@cs.clemson.edu>, caml-list@inria.fr
Subject: Re: [Caml-list] Help using unix library?
Date: Tue, 24 Apr 2001 11:23:38 +0200	[thread overview]
Message-ID: <20010424112338.A6472@lambda.u-strasbg.fr> (raw)
In-Reply-To: <01042321574905.02753@ice>; from gerd@gerd-stolpmann.de on Mon, Apr 23, 2001 at 09:52:01PM +0200

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


      reply	other threads:[~2001-04-24  9:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-19 20:33 Steve Stevenson
2001-04-23 19:52 ` Gerd Stolpmann
2001-04-24  9:23   ` Sven LUTHER [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010424112338.A6472@lambda.u-strasbg.fr \
    --to=luther@dpt-info.u-strasbg.fr \
    --cc=caml-list@inria.fr \
    --cc=gerd@gerd-stolpmann.de \
    --cc=steve@cs.clemson.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).