From: Dawid Toton <d0@wp.pl>
To: caml-list@yquem.inria.fr
Subject: Bytecode run on AIX - "unknown C primitive" error
Date: Tue, 19 Jan 2010 21:31:53 +0100 [thread overview]
Message-ID: <4B5616B9.7030105@wp.pl> (raw)
I have installed part of this OCaml port
http://home.arcor.de/chr_bauer/ocaml-aix.html
on a computer running on AIX. It seems that everything built correctly
except ocamlopt. So I have ocamlrun and standard library and this should
be enough for bytecode to run.
I have to build the bytecode on a different machine (because it's
difficult to do on AIX). I believe this shouldn't induce any problems.
Trivial bytecode executes correctly regardless where it is created.
I set LIBPATH to point to ocaml/stublibs and try running some bytecode
uning Unix module. This results in:
Fatal error: unknown C primitive `unix_getsockopt_bool'
If I compile simple "let _ = Unix.sleep 1" on the target machine, I get
bytecode that causes ocamlrun to crash with:
Illegal instruction (core dumped)
Does anybody have an idea for workaround? Some understanding what's
going on?
I'm using AIX 5.3
Dawid
next reply other threads:[~2010-01-19 20:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-19 20:31 Dawid Toton [this message]
2010-01-20 9:20 ` [Caml-list] " Christoph Bauer
2010-01-20 10:07 ` Sylvain Le Gall
2010-01-20 10:36 ` [Caml-list] " Christoph Bauer
2010-01-20 18:18 ` [Caml-list] " Dawid Toton
2010-01-22 11:24 ` Christoph Bauer
2010-01-27 15:10 ` [Caml-list] OCaml on AIX Dawid Toton
2010-04-19 14:56 ` Christoph Bauer
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=4B5616B9.7030105@wp.pl \
--to=d0@wp.pl \
--cc=caml-list@yquem.inria.fr \
/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