From: Gerd Stolpmann <gerd@gerd-stolpmann.de>
To: Steve Stevenson <steve@cs.clemson.edu>, caml-list@inria.fr
Subject: Re: [Caml-list] Help using unix library?
Date: Mon, 23 Apr 2001 21:52:01 +0200 [thread overview]
Message-ID: <01042321574905.02753@ice> (raw)
In-Reply-To: <15071.19327.151495.618688@merlin.cs.clemson.edu>
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.
Another solution is to create the right interpreter:
ocamlc -make-runtime -o myinterpreter unix.cma
(you must enumerate all libraries that refer to additional C libraries), then
ocamlc -use-runtime myintepreter -g -o ebv0 unix.cma $(BASICOBJECTS)
Gerd
--
----------------------------------------------------------------------------
Gerd Stolpmann Telefon: +49 6151 997705 (privat)
Viktoriastr. 100
64293 Darmstadt EMail: gerd@gerd-stolpmann.de
Germany
----------------------------------------------------------------------------
-------------------
To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr
next prev parent reply other threads:[~2001-04-24 7:09 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 [this message]
2001-04-24 9:23 ` Sven LUTHER
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=01042321574905.02753@ice \
--to=gerd@gerd-stolpmann.de \
--cc=caml-list@inria.fr \
--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