From: Magnus Therning <magnus@therning.org>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: OCaml List <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] oasis building out-of-src and camlp4
Date: Wed, 23 Sep 2015 10:19:16 +0200 [thread overview]
Message-ID: <20150923081916.GE22004@sobel.cipherstone.com> (raw)
In-Reply-To: <A13D94D2-8ABB-4F74-A12E-6F8D33D475EE@recoil.org>
[-- Attachment #1: Type: text/plain, Size: 1460 bytes --]
On Wed, Sep 23, 2015 at 09:48:43AM +0200, Anil Madhavapeddy wrote:
> On 22 Sep 2015, at 23:12, Magnus Therning <magnus@therning.org> wrote:
> >
> > ~~~
> > + /usr/bin/ocamldep.opt -modules src/main.ml > src/main.ml.depends
> > File "src/main.ml", line 12, characters 4-8:
> > Error: Syntax error
> > Command exited with code 2.
> > Compilation unsuccessful after building 1 target (0 cached) in 00:00:00.
> > E: Failure("Command ''/usr/bin/ocamlbuild' src/main.byte -tag debug -build-dir /home/magnus/devo/tmp/oasis-camlp4-build/build' terminated with error code 10")
> > ~~~
> >
> > What am I missing here, how do I get the second example to build?
>
> The ocamldep invocation here is not passing the -pp parameter to run
> the source code through camlp4. I'm not sure how you fix that in
> CMake, but add the relevant lines (which should be the same as those
> passed to ocamlc/ocamlopt) to ocamldep and it should get further...
Ah, OK, I'll have to look into that.
I should point out though that I've not started using CMake yet. The
examples I showed use just `oasis` (with `ocamlbuild` as its tool). I'm
still trying to work out the incantations to use, the integration with
CMake comes later :)
/M
--
Magnus Therning OpenPGP: 0xAB4DFBA4
email: magnus@therning.org jabber: magnus@therning.org
twitter: magthe http://therning.org/magnus
LeBlanc's law: Later equals never.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 163 bytes --]
next prev parent reply other threads:[~2015-09-23 8:19 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-22 21:12 Magnus Therning
2015-09-23 7:48 ` Anil Madhavapeddy
2015-09-23 8:19 ` Magnus Therning [this message]
2015-09-23 8:38 ` Gabriel Scherer
2015-09-23 8:54 ` Magnus Therning
2015-09-23 9:19 ` Gabriel Scherer
2015-09-23 9:44 ` Magnus Therning
2015-09-29 22:59 ` Sylvain Le Gall
2015-09-30 11:49 ` Magnus Therning
2015-10-01 6:46 ` Sylvain Le Gall
2015-10-01 7:23 ` Magnus Therning
2015-10-02 9:32 ` Sylvain Le Gall
2015-10-02 9:38 ` Magnus Therning
2015-09-23 7:56 ` Anil Madhavapeddy
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=20150923081916.GE22004@sobel.cipherstone.com \
--to=magnus@therning.org \
--cc=anil@recoil.org \
--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