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 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 49F88BC69 for ; Wed, 21 Nov 2007 19:51:48 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAO4MREdA6aaxkGdsb2JhbACCPjWMQQEBAQEHAgYTEQc X-IronPort-AV: E=Sophos;i="4.21,447,1188770400"; d="scan'208";a="19546403" Received: from py-out-1112.google.com ([64.233.166.177]) by mail4-smtp-sop.national.inria.fr with ESMTP; 21 Nov 2007 19:51:45 +0100 Received: by py-out-1112.google.com with SMTP id u52so7593280pyb for ; Wed, 21 Nov 2007 10:51:44 -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:mime-version:content-type; bh=ZGqZ8FEF2HUz4O8wlVuWifVkVQsYDRx7+uVejsbhves=; b=X6nzZ+5K2OBmy4TrFsnR7bT1J9Y9KSIf7TC7LKOk2OPdnzxN268x9DGuJMEN21yVZFBXkKLuc83CRTuFVO+a0B8keth/kagxQWLIap7YNniMc4jQKh3LnCj+wTiyYC6+E93SrJtsnKVVGrwDneuQJVdTIJUPzE+asNFs2e2B7BQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=qPjGGDbHGZIAy8Ez2OtOS/pQFNDP1wxfw7+yLAySrE3adoquqrdSNQJWguHogReRzPLSgZhcKIES8ThhiQp4V2zOWw/LDTN4Bu+Y+2IXCb0z/GDY65k8QtIBzVNslEZtG8hsYpkmIzpqZVfsj1mOjFmerZCNO8S4Afb5KkUg1fE= Received: by 10.65.93.19 with SMTP id v19mr17461539qbl.1195671103792; Wed, 21 Nov 2007 10:51:43 -0800 (PST) Received: by 10.65.224.20 with HTTP; Wed, 21 Nov 2007 10:51:43 -0800 (PST) Message-ID: <8cc3d8520711211051j1d867b32l3c67eea2261bbd4a@mail.gmail.com> Date: Wed, 21 Nov 2007 13:51:43 -0500 From: "viktor tron" To: caml-list Subject: ocamlbuild bug and questions Was: Re: [Caml-list] ocamlbuild: using *.itarget with flags MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_16445_1173299.1195671103764" 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_16445_1173299.1195671103764 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_16445_1173299.1195671103764 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_16445_1173299.1195671103764--