From mboxrd@z Thu Jan 1 00:00:00 1970 X-Sympa-To: caml-list@inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p9VK9iIX014830 for ; Mon, 31 Oct 2011 21:09:44 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuoBANb/rk7RVdQ2kGdsb2JhbABEoWGHTQgiAQEBAQkJDQcUBCGBcgEBAQECARICLAEbHQEDDAYFBAciGSEBAREBBQEcBhMih2AIlwQKi1OCYIUZPYhwAgUKhVyDHASUDoo2gn09g3A X-IronPort-AV: E=Sophos;i="4.69,434,1315173600"; d="scan'208";a="127321870" Received: from mail-vw0-f54.google.com ([209.85.212.54]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 31 Oct 2011 21:09:38 +0100 Received: by vws11 with SMTP id 11so9162712vws.27 for ; Mon, 31 Oct 2011 13:09:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=lW4/WU7jz8sXRfsNLXxILILftHmJjjSIbYJNkenmcDg=; b=qTQcrPftXr8Jo6+yZhAt/DZdNNurl8m9N9IOsj8OnhDbv+s0hPPu/ybNduojdz3YnL PrJfjxMfamZQHmwhZJ1bx3SFuVWtWN571gL9lMSplmBH9hFwPAGFmcHOibmV1qx6IITw k+XHCk65jP+xFI7Qj+Lmi+KOcfpo66f9FFBpQ= Received: by 10.220.117.130 with SMTP id r2mr2535394vcq.85.1320091777159; Mon, 31 Oct 2011 13:09:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.113.195 with HTTP; Mon, 31 Oct 2011 13:09:16 -0700 (PDT) In-Reply-To: References: From: Philippe Veber Date: Mon, 31 Oct 2011 21:09:16 +0100 Message-ID: To: Sebastien Mondet Cc: caml users Content-Type: multipart/alternative; boundary=485b39618c2c72d3d604b09dd1e2 X-Validation-by: philippe.veber@gmail.com Subject: Re: [Caml-list] oasis, inter-dependent libraries and syntax extension --485b39618c2c72d3d604b09dd1e2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable S=E9bastien's suggestion is indeed a good start but alas for me not enough. The build still fails at ocamldep time, because the library B (with the syntax extension) seems not to be taken into account. If I replace my syntax extension with some findlib package (say tyxml), the compilation works fine. So the question remains, how can I specify that a library/executable in a package depends on a syntax extension that is defined as a library of the same package? Thanks to oasisdb, I've browsed a couple of packages that could be in the same situation, like a test executable for a syntax extension, but found none. Maybe I'm not dealing correctly with the situation ? ph. 2011/10/31 Sebastien Mondet > > Hi > > > I ran into the same problem last week. > I added a line to the _tags file after the OASIS-generated stuff: > > ... > # OASIS_STOP > > : syntax_camlp4o > > > (found in the slide 18: > http://oasis.forge.ocamlcore.org/documentation.html ) > > > Sebastien > > > > > > > On Mon, Oct 31, 2011 at 12:23, Philippe Veber w= rote: > >> Hi, >> I have an oasis project defining three inter-dependent libraries A, B and >> C. B is a syntax extension, and depends on A. C depends on both A and B.= I >> have written an _oasis file for this, which works fine if I don't use the >> extension in C, but fails if I do, during ocamldep (ocamldep lacks the >> appropriate options to understand the new syntax). Has anybody run into >> this problem ? >> >> ph. >> >> > --485b39618c2c72d3d604b09dd1e2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable S=E9bastien's suggestion is indeed a good start but alas for me not eno= ugh. The build still fails at ocamldep time, because the library B (with th= e syntax extension) seems not to be taken into account. If I replace my syn= tax extension with some findlib package (say tyxml), the compilation works = fine. So the question remains, how can I specify that a library/executable = in a package depends on a syntax extension that is defined as a library of = the same package?

Thanks to oasisdb, I've browsed a couple of packages that could be = in the same situation, like a test executable for a syntax extension, but f= ound none. Maybe I'm not dealing correctly with the situation ?

ph.

2011/10/31 Sebastien Mondet <sebastien.mo= ndet@gmail.com>

Hi


I ran into t= he same problem last week.
I added a line to the _tags file after= the OASIS-generated stuff:

=A0 =A0...
=A0 =A0# OASIS_STOP

=A0 =A0<src/*/*.ml>: syn= tax_camlp4o


(found in the sli= de 18:


Sebastien
<= /font>


=



On Mon, Oct 31,= 2011 at 12:23, Philippe Veber <philippe.veber@gmail.com> wrote:
Hi,
I have an oasis project defining thre= e inter-dependent libraries A, B and C. B is a syntax extension, and depend= s on A. C depends on both A and B. I have written an _oasis file for this, = which works fine if I don't use the extension in C, but fails if I do, = during ocamldep (ocamldep lacks the appropriate options to understand the n= ew syntax). Has anybody run into this problem ?

ph.



--485b39618c2c72d3d604b09dd1e2--