From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id EA4D3BBAF for ; Tue, 19 Jan 2010 21:30:25 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkEBAI+lVUvUTWUHkGdsb2JhbACbfgEBAQEJCQwHEwS8dIQzBA X-IronPort-AV: E=Sophos;i="4.49,305,1262559600"; d="scan'208";a="45371294" Received: from mx3.wp.pl ([212.77.101.7]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 19 Jan 2010 21:30:25 +0100 Received: (wp-smtpd smtp.wp.pl 18396 invoked from network); 19 Jan 2010 21:30:23 +0100 Received: from pfpleia.if.uj.edu.pl (d0@[149.156.90.26]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with AES256-SHA encrypted SMTP for ; 19 Jan 2010 21:30:23 +0100 Message-ID: <4B5616B9.7030105@wp.pl> Date: Tue, 19 Jan 2010 21:31:53 +0100 From: Dawid Toton User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: caml-list@yquem.inria.fr Subject: Bytecode run on AIX - "unknown C primitive" error Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-WP-AV: skaner antywirusowy poczty Wirtualnej Polski S. A. X-WP-SPAM: NO 0000000 [UdOU] X-Spam: no; 0.00; bytecode:01 ocaml:01 ocamlopt:01 ocamlrun:01 bytecode:01 trivial:01 libpath:01 ocaml:01 stublibs:01 getsockopt:01 ocamlrun:01 dumped:01 arcor:98 unix:01 unix:01 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