From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=AWL,DNS_FROM_RFC_ABUSE autolearn=disabled version=3.1.3 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 65B29BC69 for ; Tue, 4 Dec 2007 06:00:54 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAACZtVEdCM8demGdsb2JhbACPTgEBAQcEBic X-IronPort-AV: E=Sophos;i="4.23,246,1194217200"; d="scan'208";a="4866820" Received: from mail9.dslextreme.com ([66.51.199.94]) by mail2-smtp-roc.national.inria.fr with SMTP; 04 Dec 2007 06:00:49 +0100 Received: (qmail 13890 invoked from network); 4 Dec 2007 05:00:47 -0000 Received: from unknown (HELO foobears.dynamic.pixar.com) (erickt@138.72.136.25) by mail9.dslextreme.com with (RC4-MD5 encrypted) SMTP; Mon, 03 Dec 2007 21:00:47 -0800 Message-ID: <4754DEF5.20403@dslextreme.com> Date: Mon, 03 Dec 2007 21:00:37 -0800 From: Erick Tryzelaar User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Ashish Agarwal Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] error building native code with ocamlbuild References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; byte-code:01 bug:01 ocamlopt:01 wrote:01 unix:01 unix:01 caml-list:01 native:03 native:03 library:03 library:03 looks:08 wrong:10 example:10 file:11 Ashish Agarwal wrote: > Using ocamlbuild on the following example to build native code > includes a library twice, causing an error, but byte-code works fine. > Am I doing something wrong or is it a bug? Thanks for any help. It looks like you're getting the unix library added twice, which ocamlopt doesn't like. In your case, I don't think you even need the myocamlbuild.ml file. ocamlbuild already has the unix library set up for it, so the _tags file should be enough for you.