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 mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 0F970BBAF for ; Wed, 20 Jan 2010 11:07:34 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqpAANBkVktQW+UMgWdsb2JhbACPcIIAihIBARYkulKENgSFRA X-IronPort-AV: E=Sophos;i="4.49,309,1262559600"; d="scan'208";a="41812667" Received: from lo.gmane.org ([80.91.229.12]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/AES256-SHA; 20 Jan 2010 11:07:33 +0100 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NXXTH-0007KH-Cc for caml-list@inria.fr; Wed, 20 Jan 2010 11:07:31 +0100 Received: from ks300734.kimsufi.com ([91.121.65.225]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Jan 2010 11:07:31 +0100 Received: from sylvain by ks300734.kimsufi.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Jan 2010 11:07:31 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Sylvain Le Gall Subject: Re: Bytecode run on AIX - "unknown C primitive" error Date: Wed, 20 Jan 2010 10:07:08 +0000 (UTC) Message-ID: References: <4B5616B9.7030105@wp.pl> <9A8556989A396A408C72088C69EDE5633EC26A23@KAIP-EXMSG01.lmsintl.com> X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ks300734.kimsufi.com User-Agent: slrn/pre1.0.0-11 (Linux) Sender: news X-Spam: no; 0.00; le-gall:01 bytecode:01 bytecode:01 ocaml:01 ocamlopt:01 ocamlopt:01 ocaml:01 ocamlrun:01 trivial:01 libpath:01 stublibs:01 getsockopt:01 ocamlrun:01 dumped:01 beginner's:01 On 20-01-2010, Christoph Bauer wrote: > unfortunatly I haven't a solution for the bytecode stuff. I only use > ocaml with native compiled code. This works very well. > I confirm that ocamlopt/AIX works well (thanks to Christoph). The best solution is maybe to understand why ocamlopt cannot be built ? Regards Sylvain Le Gall > 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 >> Regards, Sylvain Le Gall