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=1.2 required=5.0 tests=AWL,HTML_MESSAGE,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 6BF50BC69 for ; Thu, 22 Nov 2007 17:36:16 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAL8+RUdA6aa1mGdsb2JhbACCPjWMPQEBBwIGKw X-IronPort-AV: E=Sophos;i="4.21,452,1188770400"; d="scan'208";a="19579244" Received: from py-out-1112.google.com ([64.233.166.181]) by mail4-smtp-sop.national.inria.fr with ESMTP; 22 Nov 2007 17:36:15 +0100 Received: by py-out-1112.google.com with SMTP id u52so8177165pyb for ; Thu, 22 Nov 2007 08:36:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=nR780EbIGEQ8im+M7kMLeQAD6FKU58f4JHyno2CisTM=; b=M8RGdj/7b/3Xdk2ZeJjPVnqFf9zAL4bs6ajqEkOU27h28pMxtaioZYHK55IZboETEzHYHZWszn2xW3d9IVQnCdaw7z3WB6qjD20adpYwN8hK4M5HjD878jmmXd56iWMKP0qHUZeovgN2yzdtsj0dbsbyq1Q+yDeI0HVobX6oh4E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=blb92zDGsgDek+Siuejc36GRcZv3NNqn+OLA+SZcp9twazFqrYVG+gNCpkI4mA6Ko0PCviPktXtwtzplq7huXPYKuO3wkH3yR66bmWgT5tW7y51pWlqMri2lSRS/x26Rh9UOjpNW5H5Q4PcL+Ws+mpzvzTGahTTNXPO5Ofp2+dE= Received: by 10.65.43.5 with SMTP id v5mr19863140qbj.1195749374073; Thu, 22 Nov 2007 08:36:14 -0800 (PST) Received: by 10.65.224.20 with HTTP; Thu, 22 Nov 2007 08:36:14 -0800 (PST) Message-ID: <8cc3d8520711220836t26f5ed0ft66e7d9ebf3e8797b@mail.gmail.com> Date: Thu, 22 Nov 2007 11:36:14 -0500 From: "viktor tron" To: caml-list Subject: ocamlbuild bug and questions Was: Re: [Caml-list] ocamlbuild: using *.itarget with flags In-Reply-To: <8cc3d8520711211051j1d867b32l3c67eea2261bbd4a@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_19954_19382397.1195749374062" References: <8cc3d8520711211051j1d867b32l3c67eea2261bbd4a@mail.gmail.com> X-Spam: no; 0.00; bug:01 flags:01 lexing:01 libs:01 ocaml:01 foo:01 cmxa:01 ocamlopt:01 foo:01 cmxa:01 syntax:01 lexing:01 libs:01 ocaml:01 ocamlopt:01 ------=_Part_19954_19382397.1195749374062 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 21/11/2007, Nicolas Pouillard < nicolas.pouillard@gmail.com> wrote: > > Excerpts from hmf's message of Wed Nov 21 12:30:28 +0100 2007: > > The manual states that in the *.itarget > > files a comment is either a blank or dash. > > Does this mean: > > > > - comment here > > > > is a comment? If so, it does not seem > > to work. > > The manual is wrong on that point, it's a sharp (#) not a dash (-). > > # comment here > I also noticed that. Plus what seems to be a couple of bugs? $ echo -n '# comment here' > _tags $ ocamlbuild target Lexical analysis error: Bad key in configuration line at line 1 (from file: "_tags") or even worse $ echo -n '# comment here:' > _tags $ ocamlbuild target Failure: lexing: empty token. Also: I had a number of question concerning ocamlbuild in my recent post about c libs from ocaml. I elaborate them here, but see my original post for the context. Does anyone have an illuminating insight? --- * I still don't know the most basic thing, how to build an output-obj o file. * I found no way to convince ocamlbuild to use the local library (in this example we build ocamlbuild foo.cmxa and then would simply want ocamlopt -o foo foo.cmxa foo_wrapper.ml but 'ocamlbuild foo_wrapper.native' rebuilds it all the same * I don't know what the possible tags are, how I add them. * If I use a syntax extension which has to be build, adding the pp... tag does not create a dependency which is checked. I don't know how to add this dependency. Help appreciated, but probably a more detailed manual will solve this with time. Viktor ------=_Part_19954_19382397.1195749374062 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

On 21/11/2007, Nicolas Pouillard < nicolas.pouillard@gmail.com> wrote:
Excerpts from hmf's message of Wed Nov 21 12:30:28 +0100 2007:
> The manual states that in the *.itarget
> files a comment is either a blank or dash.
> Does this mean:
>
> - comment here
>
> is a comment? If so, it does not seem
> to work.

The manual is wrong on that point, it's a sharp (#) not a dash (-).

# comment here

I also noticed that. Plus what seems to be a couple of bugs?

$ echo -n '# comment here' > _tags
$ ocamlbuild target
Lexical analysis error: Bad key in configuration line at line 1 (from file: "_tags")

or even worse

$ echo -n '# comment here:' > _tags
$ ocamlbuild target
Failure: lexing: empty token.

Also:  I had a number of question concerning ocamlbuild in my recent post about c libs from ocaml.
I elaborate them here, but see my original post for the context.
Does anyone have an illuminating insight?

---

*  I still don't know the most basic thing, how to build an output-obj o file.
*  I found no way to convince ocamlbuild to use the local library (in this example we build
ocamlbuild foo.cmxa
and then would simply want
ocamlopt -o foo foo.cmxa foo_wrapper.ml
but 'ocamlbuild foo_wrapper.native' rebuilds it all the same

* I don't know what the possible tags are, how I add them.

* If I use a syntax extension which has to be build, adding the pp... tag does not create a dependency which is checked. I don't know how to add this dependency.

Help appreciated, but probably a  more detailed manual will solve this with time.

Viktor











------=_Part_19954_19382397.1195749374062--