From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id 448087ED7A for ; Mon, 1 Oct 2012 10:15:30 +0200 (CEST) Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of lambda.q.q@gmail.com) identity=pra; client-ip=209.85.216.182; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="lambda.q.q@gmail.com"; x-sender="lambda.q.q@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail4-smtp-sop.national.inria.fr: domain of lambda.q.q@gmail.com designates 209.85.216.182 as permitted sender) identity=mailfrom; client-ip=209.85.216.182; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="lambda.q.q@gmail.com"; x-sender="lambda.q.q@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-qc0-f182.google.com) identity=helo; client-ip=209.85.216.182; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="lambda.q.q@gmail.com"; x-sender="postmaster@mail-qc0-f182.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjsCABNQaVDRVdi2k2dsb2JhbABFrGiIbIheCCMBAQEBCQkLCRQEI4IgAQEBAwESAiwBOQMBCwEFBQQHOyISAQUBHAYTIodRAwkGm3wJA48ahFwnDYlOAQUMixMFhkYDiFKFMIdngRWNNxYpgVaCNg X-IronPort-AV: E=Sophos;i="4.80,514,1344204000"; d="scan'208";a="157413252" Received: from mail-qc0-f182.google.com ([209.85.216.182]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 01 Oct 2012 10:15:29 +0200 Received: by qcsl39 with SMTP id l39so5680382qcs.27 for ; Mon, 01 Oct 2012 01:15:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=2IMxSgfF1L61Me8dEzdEMxUkUVekvUudnFnvpeBVscY=; b=ko9t/2Tqn1e9moR89LtJQwD3j03zDDykiW5IWHJWh4e5PLXyHrJ5fW1B6mxZikmwdE fwxux0f95qYaog53eAdYCYdUNF4mXqYfUz6hkuHHnV3lUe71VFyWNy8UcqSlzU6hDJHz 4STbldE4rYs+ygfivVHf0tZVtWrxeZZFboj/pbdQragadVUbAUKTdbXJ/St81U+vdnNT RJc/Xn22DB23jxbx0ZPmgugz/2Aj99IylV/wkiVh5AF/b2jhey1rYSVL2ZTGMSKtQBFa R0Lq++diq+n/zDuyP5It/+VfjE0Xipj1Ax372dL57IxPIYpTikPyXmMhiuo7Mq1SUUW3 B1Mg== MIME-Version: 1.0 Received: by 10.224.28.14 with SMTP id k14mr35445789qac.72.1349079327859; Mon, 01 Oct 2012 01:15:27 -0700 (PDT) Sender: lambda.q.q@gmail.com Received: by 10.49.109.106 with HTTP; Mon, 1 Oct 2012 01:15:27 -0700 (PDT) In-Reply-To: References: Date: Mon, 1 Oct 2012 12:15:27 +0400 X-Google-Sender-Auth: essCpXONauAkprnBordZhLixzFo Message-ID: From: Ivan To: caml-list Content-Type: multipart/alternative; boundary=14dae9cfc3921c63cf04cafb02c3 Subject: [Caml-list] Re: using typerex with ocamlfind enabled ocamlbuild (ocaml 3.11.2) --14dae9cfc3921c63cf04cafb02c3 Content-Type: text/plain; charset=ISO-8859-1 ... and if I cheat ocamlfind by substituting ocamlc.opt with a link to ocp-ocamlc.opt, I get the following error from ocamlbuild: $ ocamlfind ocamlc -where > /home/crox/factory/parallax/src/ssp/_build/ocamlc.where ocamlc.opt: unknown option `-where'. I think that's because ocamlfind do not treat -where as a standard ocamlc option: $ ocamlc.opt -where /usr/lib/ocaml but $ ocamlfind ocamlc -where ocamlc.opt: unknown option `-where'. May be this is a bug, but I didn't found it on ocaml's mantis... On 1 October 2012 08:40, Ivan wrote: > I'am using ocaml 3.11 and want to use ocamlbuild, batteries and typerex. > I've downloaded ocamlfind enabled myocamlbuild.ml. But, it seems, that > there is no opportunity to include support of typerex without breaking > support for ocamlfind. > So, I've tried to edit my /etc/ocamlfind.conf, or to specify an > environment variable: OCAMLFIND_COMMANDS to 'ocamlc=ocp-ocamlc' but > neither works. It seems that myocamlbuild overrides this setups. > > Please, can anybody help me to solve this. Or, maybe, there is a better > way to use batteries and typerex? > --14dae9cfc3921c63cf04cafb02c3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable ... and if I cheat ocamlfind by substituting ocamlc.opt with a link to ocp-= ocamlc.opt, I get the following error from ocamlbuild:

$ ocamlfind ocamlc -where > /home/crox/factory/parallax/src/ss= p/_build/ocamlc.where
ocamlc.opt: unknown option `-whe= re'.
I think that's because ocamlfind do no= t treat -where as a standard ocamlc option:
$ ocamlc.opt -where =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0
/usr/li= b/ocaml
but
$ ocamlfind ocamlc -where =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
=
ocamlc.opt: unknown option `-where'.
May be this is a bug, but I didn't found it on ocaml= 9;s mantis...

On 1 October 2012 08:40, Ivan <ivg@ie= ee.org> wrote:
I'am using ocaml 3.11 and want to use ocamlbuild, batteries and typerex= .
I've downloaded ocamlfind enabled myocamlbuild.ml. But, it seems, that there is no= =A0opportunity=A0to include support of typerex without breaking support for= ocamlfind.
So, I've tried to edit my /etc/ocamlfind.conf, or to specify an en= vironment variable:=A0=A0OCAMLFIND_COMMANDS to 'ocamlc=3Docp-ocamlc'= ; but neither works. It seems that myocamlbuild overrides this setups.

Please, can anybody help me to solve this. Or, maybe, there = is a better way to use batteries and typerex?

--14dae9cfc3921c63cf04cafb02c3--