From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q28EZpcM024090 for ; Thu, 8 Mar 2012 15:35:51 +0100 X-IronPort-AV: E=Sophos;i="4.73,552,1325458800"; d="scan'208";a="135043662" Received: from top-wifi.irisa.fr ([131.254.66.192]) by mail4-relais-sop.national.inria.fr with ESMTP/TLS/AES128-SHA; 08 Mar 2012 15:35:46 +0100 Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=us-ascii From: Alan Schmitt In-Reply-To: Date: Thu, 8 Mar 2012 15:35:46 +0100 Cc: caml-list list Content-Transfer-Encoding: 7bit Message-Id: <38A39B83-F464-4532-84A1-738266DF1E9B@polytechnique.org> References: <74F89B4A-9C34-4A33-8DAA-8A12CF9EF03B@polytechnique.org> To: Pierre-Alexandre Voye X-Mailer: Apple Mail (2.1257) Subject: Re: [Caml-list] state of native dynlink on os x On 8 mars 2012, at 15:23, Pierre-Alexandre Voye wrote: > In Mac Lion, i get : > > $ ocamlopt.opt -shared plugin.cmx test.cmxa -o plugin.cmxs > ld: warning: -read_only_relocs cannot be used with x86_64 > $ ocamlopt.opt test.cmxa dynlink.cmxa loader.ml -o loader.native > File "loader.ml", line 1, characters 0-1: > Error: Cannot find file dynlink.cmxa You first need to patch ocaml with this: http://caml.inria.fr/mantis/view.php?id=4863 Alan