From: Jacques Carette <carette@mcmaster.ca>
To: bob zhang <bobzhang1988@gmail.com>
Cc: oleg@okmij.org, caml-list@inria.fr
Subject: Re: [Caml-list] ANN: Brand-new BER MetaOCaml for OCaml 4.00.1
Date: Tue, 19 Feb 2013 20:51:41 -0500 [thread overview]
Message-ID: <51242C2D.3030506@mcmaster.ca> (raw)
In-Reply-To: <CANcqPu7UTgE=z3YdMHKQsVjZm7XsDGiS7=apd2KzAy25eS=76A@mail.gmail.com>
You need to use 'metaocamlmktop' to make a custom top-level which
supports metaocaml. I have tested this, and it works.
I will let Oleg answer the other queries.
Jacques
On 13-02-18 10:37 PM, bob zhang wrote:
> Dear Oleg,
> After reading the patch of BER MetaOCaml today, I found that it is
> not too hard to port camlp4/Fan to support metaocaml.
> I tried to compile and install metaocaml with the patches you provided:
>
> I get an install error
> ./build/partial-install.sh: line 25: config/config.sh: No such file or
> directory
> make: *** [install] Error 1
>
> After I ignore the error message, the metaocaml toplevel works
> perfectly well.
>
> But if I customized my own toplevel (I used my toplevel as
> 'ocamlmktop -custom -o mocaml')
> mocaml is bundled with compiler-libs, the toplevel does not work, I
> get the following
> error message:
> # let spower7 = .! spower7_code;;
> Error: Reference to undefined global `Runcode'
>
> Currently metaocaml does not support native code, but it seems that
> the patch only installs ocamlc, is it possible to get ocamlc.opt
> installed as well? (not the ocamlopt.opt) ocamlbuild is not installed
> either. It would be even nicer that ocamlopt.opt could be installed
> without supporting metaocaml, otherwise I have to switch between
> different compilers from time to time.
>
> Would you mind get the ocamlbuild, ocamlc.opt also works? I would
> be happy to port Fan/Camlp4 to support metaoaml, and it would be
> really cool to get compile-time and run-time metaprogramming work together
>
> Thank you in advance!
next prev parent reply other threads:[~2013-02-20 1:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-19 3:37 bob zhang
2013-02-20 1:51 ` Jacques Carette [this message]
2013-02-20 14:03 ` bob zhang
2013-02-20 12:20 ` [Caml-list] " oleg
2013-02-20 14:11 ` bob zhang
-- strict thread matches above, loose matches on Subject: below --
2013-02-01 6:53 [Caml-list] " oleg
2013-02-01 7:53 ` Francois Berenger
2013-02-26 18:09 ` Anil Madhavapeddy
2013-01-31 7:49 oleg
2013-01-31 12:23 ` rixed
2013-02-01 2:12 ` Francois Berenger
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=51242C2D.3030506@mcmaster.ca \
--to=carette@mcmaster.ca \
--cc=bobzhang1988@gmail.com \
--cc=caml-list@inria.fr \
--cc=oleg@okmij.org \
/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).