caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "viktor tron" <viktor.tron.ml@gmail.com>
To: caml-list <caml-list@yquem.inria.fr>
Subject: ocamlbuild bug and questions Was: Re: [Caml-list] ocamlbuild: using *.itarget with flags
Date: Thu, 22 Nov 2007 11:36:14 -0500	[thread overview]
Message-ID: <8cc3d8520711220836t26f5ed0ft66e7d9ebf3e8797b@mail.gmail.com> (raw)
In-Reply-To: <8cc3d8520711211051j1d867b32l3c67eea2261bbd4a@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1575 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2396 bytes --]

  reply	other threads:[~2007-11-22 16:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-21 18:51 viktor tron
2007-11-22 16:36 ` viktor tron [this message]
2007-11-23  8:05   ` Nicolas Pouillard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8cc3d8520711220836t26f5ed0ft66e7d9ebf3e8797b@mail.gmail.com \
    --to=viktor.tron.ml@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).