caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Markus Mottl <markus.mottl@gmail.com>
To: "Matej Košík" <5764c029b688c1c0d24a2e97cd764f@gmail.com>
Cc: Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] ocamlfind + sexplib + bin_io
Date: Sat, 28 Apr 2012 14:46:10 -0400	[thread overview]
Message-ID: <CAP_800rAh_h20bGc5Mk07XeqH1M7dw9ZZ27eQOMP8nxZbFkL4g@mail.gmail.com> (raw)
In-Reply-To: <4F9C3326.6010900@gmail.com>

On Sat, Apr 28, 2012 at 14:12, Matej Košík
<5764c029b688c1c0d24a2e97cd764f@gmail.com> wrote:
> On 04/27/2012 08:29 PM, Markus Mottl wrote:
>> Hi,
>>
>> even the following should work if everything is installed correctly:
>>
>>   ocamlfind ocamlc -linkpkg -package sexplib.syntax,bin_prot.syntax
>> -syntax camlp4o main.ml
>
> If I try this command, I get the same error:
>
>        Camlp4: Uncaught exception: Not_found
>
>        File "main.ml", line 1, characters 0-1:
>        Error: Preprocessor error
>
> Now, I am not sure what should be the conclusion.

Well, the conclusion would be that there is something wrong with the
installation ;-)

> I hesitate to claim that versions of (sexplib+bin_prot) libraries
> published in GODI are faulty---if I do not use ocamlfind, I can use
> those libraries just fine.

It could be that there is more than one installation of these
libraries on your system and that they are in conflict.  E.g. if you
ever installed type_conv outside of Godi.

> Do not you think that camlp4 is never expected (for any kind of input)
> throw an exception? Are we sure that the reported steps do not simply
> trigger a camlp4 bug?

There is surely a reason for this exception.  It might indeed be due
to incompatible preprocessing modules.

To make sure that things compile, please delete any potential other
installations of the above libraries from your system.  One problem
that seems to have happened for some people is that they previously
installed type-conv and bin-prot.  These packages have been renamed to
type_conv and bin_prot (complex reason).  If they have been previously
installed, you may now have both packages on your system.  It seems
Godi cannot determine renamed packages and will leave old ones in
place.  Please make sure to manually delete all files and directories
in your Godi installation that match "*type-conv*" or "*bin-prot*".
If in doubt, just completely reinstall Godi.  I've just tested the
current release, and it works for me.

Regards,
Markus

-- 
Markus Mottl        http://www.ocaml.info        markus.mottl@gmail.com


      reply	other threads:[~2012-04-28 18:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-27 18:21 Matej Košík
     [not found] ` <CE03BFB3-8F84-4AA4-A536-48E8DAC0DF22@metastack.com>
2012-04-27 18:37   ` Matej Košík
2012-04-27 19:29     ` Markus Mottl
2012-04-28 18:12       ` Matej Košík
2012-04-28 18:46         ` Markus Mottl [this message]

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=CAP_800rAh_h20bGc5Mk07XeqH1M7dw9ZZ27eQOMP8nxZbFkL4g@mail.gmail.com \
    --to=markus.mottl@gmail.com \
    --cc=5764c029b688c1c0d24a2e97cd764f@gmail.com \
    --cc=caml-list@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).