From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr 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 5AC707F249 for ; Fri, 2 Nov 2012 01:56:54 +0100 (CET) Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of anil@recoil.org) identity=pra; client-ip=89.16.177.154; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="anil@recoil.org"; x-sender="anil@recoil.org"; x-conformance=sidf_compatible Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of anil@recoil.org) identity=mailfrom; client-ip=89.16.177.154; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="anil@recoil.org"; x-sender="anil@recoil.org"; x-conformance=sidf_compatible Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@dark.recoil.org) identity=helo; client-ip=89.16.177.154; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="anil@recoil.org"; x-sender="postmaster@dark.recoil.org"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AukCAJwZk1BZELGagWdsb2JhbABEsRuSOgEBFiYngh4BAQQBeQULCxguRRIGE4d0AwkKvSCLFGcFhVVhA5QngVGLMogA X-IronPort-AV: E=Sophos;i="4.80,695,1344204000"; d="scan'208";a="161143894" Received: from recoil.dh.bytemark.co.uk (HELO dark.recoil.org) ([89.16.177.154]) by mail4-smtp-sop.national.inria.fr with SMTP; 02 Nov 2012 01:56:53 +0100 Received: (qmail 1331 invoked by uid 634); 2 Nov 2012 00:56:52 -0000 X-Spam-Level: * X-Spam-Check-By: dark.recoil.org Received: from cpc7-cmbg14-2-0-cust238.5-4.cable.virginmedia.com (HELO [192.168.1.48]) (86.30.244.239) (smtp-auth username remote@recoil.org, mechanism cram-md5) by dark.recoil.org (qpsmtpd/0.84) with ESMTPA; Fri, 02 Nov 2012 00:56:51 +0000 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.1 \(1498\)) From: Anil Madhavapeddy In-Reply-To: <1351783121.24914.YahooMailNeo@web111506.mail.gq1.yahoo.com> Date: Fri, 2 Nov 2012 00:56:49 +0000 Cc: Sylvain Le Gall , "caml-list@inria.fr" Content-Transfer-Encoding: quoted-printable Message-Id: References: <1351173429.15638.YahooMailNeo@web111503.mail.gq1.yahoo.com> <58E915E9-0BD4-4F0B-9581-B446C93A4EB8@recoil.org> <1351274219.20181.YahooMailNeo@web111501.mail.gq1.yahoo.com> <1351783121.24914.YahooMailNeo@web111506.mail.gq1.yahoo.com> To: Dario Teixeira X-Mailer: Apple Mail (2.1498) X-Virus-Checked: Checked by ClamAV on dark.recoil.org Subject: Re: [Caml-list] Re: Conditional BuildDepends in OASIS On 1 Nov 2012, at 15:18, Dario Teixeira wrote: >=20 > Library "pa_pgocaml_batteries" > Build$: flag(batteries) > Install$: flag(batteries) > Path: src > Modules: Pa_pgsql > BuildDepends: pgocaml.batteries, camlp4.macro, camlp4.quotation= s.o, camlp4.extend > FindlibContainers: pgocaml.batteries > FindlibName: syntax > ByteOpt+: -ppopt -DUSE_BATTERIES > NativeOpt+: -ppopt -DUSE_BATTERIES >=20 > The problem occurs during the compilation of pa_pgocaml_batteries. > OCamlbuild issues the command below to determine dependencies, > which is manifestly wrong, since there is a "-syntax camlp4o" missing. >=20 > ocamlfind ocamldep -package pcre -package extlib -package csv -package ca= mlp4.quotations.o -package camlp4.macro -package camlp4.extend -package cal= endar -package batteries -modules src/pa_pgsql.ml > src/pa_pgsql.ml.depends >=20 > What I find perplexing is that the compilation of pgocaml_batteries had s= ucceeded, > so the required "-syntax camlp4o" must have had been given then, though a= t first > glance I can see no applicable difference in their declarations. >=20 It's probably your _tags file that is missing a: <**/*.ml>: syntax_camlp4o for the syntax extension. OASIS doesn't fully support using syntax extensi= ons yet, so you need to be careful to keep the _tags file manually in sync. -anil=