Browse thread
Bytecode run on AIX - "unknown C primitive" error
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2010-01-19 (20:30) |
From: | Dawid Toton <d0@w...> |
Subject: | 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