From: Christoph Bauer <christoph.bauer@lmsintl.com>
To: Dawid Toton <d0@wp.pl>,
"caml-list@yquem.inria.fr" <caml-list@yquem.inria.fr>
Subject: RE: [Caml-list] Bytecode run on AIX - "unknown C primitive" error
Date: Wed, 20 Jan 2010 10:20:42 +0100 [thread overview]
Message-ID: <9A8556989A396A408C72088C69EDE5633EC26A23@KAIP-EXMSG01.lmsintl.com> (raw)
In-Reply-To: <4B5616B9.7030105@wp.pl>
unfortunatly I haven't a solution for the bytecode stuff. I only use
ocaml with native compiled code. This works very well.
Christoph Bauer
> From: caml-list-bounces@yquem.inria.fr
> [mailto:caml-list-bounces@yquem.inria.fr] On Behalf Of Dawid Toton
> Sent: Tuesday, January 19, 2010 9:32 PM
> To: caml-list@yquem.inria.fr
> Subject: [Caml-list] Bytecode run on AIX - "unknown C primitive" error
>
> 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
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
next prev parent reply other threads:[~2010-01-20 9:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-19 20:31 Dawid Toton
2010-01-20 9:20 ` Christoph Bauer [this message]
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=9A8556989A396A408C72088C69EDE5633EC26A23@KAIP-EXMSG01.lmsintl.com \
--to=christoph.bauer@lmsintl.com \
--cc=caml-list@yquem.inria.fr \
--cc=d0@wp.pl \
/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).