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: Fri, 27 Apr 2012 15:29:47 -0400	[thread overview]
Message-ID: <CAP_800oybKMq2BrS5D-bAPaAxxDNzHdjv6obJ-0YS8jOyu1BUw@mail.gmail.com> (raw)
In-Reply-To: <4F9AE764.4060409@gmail.com>

Hi,

even the following should work if everything is installed correctly:

  ocamlfind ocamlc -linkpkg -package sexplib.syntax,bin_prot.syntax
-syntax camlp4o main.ml

The currently best supported versions of type_conv, sexplib, and
bin_prot can be found in my fork of Jane Street's Core library here:

  https://bitbucket.org/mmottl/ocaml-core-mmottl

Installation is fairly easy: it only requires uninstalling all Jane
Street Godi packages, type_conv, bin_prot, and sexplib, installing
Oasis 0.3, and running one script "build-and-install", which will
install ocamlfind packages for all libraries.

It may unfortunately still take a little while before Jane Street will
release their latest version of Core, which should integrate the above
and also finally into Godi.  Until then people who want to use Core or
any of type_conv, sexplib, and bin_prot are probably well-advised to
not use the Godi packages.

Regards,
Markus

On Fri, Apr 27, 2012 at 14:37, Matej Košík
<5764c029b688c1c0d24a2e97cd764f@gmail.com> wrote:
> On 04/27/2012 07:24 PM, David Allsopp wrote:
>> Try adding -verbose to the call - ocamlfind will display the commands it is executing which may help refine the problem.
>
> With this:
>
> ocamlfind ocamlc -verbose -linkpkg -package
> sexplib,sexplib.syntax,bin_prot,bin_prot.syntax -syntax camlp4o main.ml
>
> I get the following output:
>
> Effective set of preprocessor predicates: preprocessor,syntax,camlp4o
> Effective set of compiler predicates:
> pkg_unix,pkg_bigarray,pkg_num.core,pkg_num,pkg_sexplib,pkg_camlp4,pkg_type_conv,pkg_sexplib.syntax,pkg_bin_prot,pkg_type-conv,pkg_bin_prot.syntax,syntax,autolink,byte
> + ocamlc.opt -verbose -I /home/mkosik/lib/godi/lib/ocaml/pkg-lib/num -I
> /home/mkosik/lib/godi/lib/ocaml/std-lib/camlp4 -I
> /home/mkosik/lib/godi/lib/ocaml/pkg-lib/type_conv -I
> /home/mkosik/lib/godi/lib/ocaml/pkg-lib/sexplib -I
> /home/mkosik/lib/godi/lib/ocaml/pkg-lib/type-conv -I
> /home/mkosik/lib/godi/lib/ocaml/pkg-lib/bin_prot -pp "camlp4 '-I'
> '/home/mkosik/lib/godi/lib/ocaml/std-lib/camlp4' '-I'
> '/home/mkosik/lib/godi/lib/ocaml/pkg-lib/type_conv' '-I'
> '/home/mkosik/lib/godi/lib/ocaml/std-lib' '-I'
> '/home/mkosik/lib/godi/lib/ocaml/std-lib' '-I'
> '/home/mkosik/lib/godi/lib/ocaml/std-lib' '-I'
> '/home/mkosik/lib/godi/lib/ocaml/pkg-lib/num' '-I'
> '/home/mkosik/lib/godi/lib/ocaml/pkg-lib/sexplib' '-I'
> '/home/mkosik/lib/godi/lib/ocaml/pkg-lib/sexplib' '-I'
> '/home/mkosik/lib/godi/lib/ocaml/pkg-lib/type-conv' '-I'
> '/home/mkosik/lib/godi/lib/ocaml/pkg-lib/bin_prot' '-I'
> '/home/mkosik/lib/godi/lib/ocaml/pkg-lib/bin_prot' '-parser' 'o'
> '-parser' 'op' '-printer' 'p' 'pa_type_conv.cma' 'unix.cma'
> 'bigarray.cma' 'nums.cma' 'sexplib.cma' 'pa_sexp_conv.cma'
> 'pa_type_conv.cma' 'bin_prot.cma' 'pa_bin_prot.cma' "
> /home/mkosik/lib/godi/lib/ocaml/std-lib/unix.cma
> /home/mkosik/lib/godi/lib/ocaml/std-lib/bigarray.cma
> /home/mkosik/lib/godi/lib/ocaml/std-lib/nums.cma
> /home/mkosik/lib/godi/lib/ocaml/pkg-lib/sexplib/sexplib.cma
> /home/mkosik/lib/godi/lib/ocaml/pkg-lib/bin_prot/bin_prot.cma main.ml
> + camlp4 '-I' '/home/mkosik/lib/godi/lib/ocaml/std-lib/camlp4' '-I'
> '/home/mkosik/lib/godi/lib/ocaml/pkg-lib/type_conv' '-I'
> '/home/mkosik/lib/godi/lib/ocaml/std-lib' '-I'
> '/home/mkosik/lib/godi/lib/ocaml/std-lib' '-I'
> '/home/mkosik/lib/godi/lib/ocaml/std-lib' '-I'
> '/home/mkosik/lib/godi/lib/ocaml/pkg-lib/num' '-I'
> '/home/mkosik/lib/godi/lib/ocaml/pkg-lib/sexplib' '-I'
> '/home/mkosik/lib/godi/lib/ocaml/pkg-lib/sexplib' '-I'
> '/home/mkosik/lib/godi/lib/ocaml/pkg-lib/type-conv' '-I'
> '/home/mkosik/lib/godi/lib/ocaml/pkg-lib/bin_prot' '-I'
> '/home/mkosik/lib/godi/lib/ocaml/pkg-lib/bin_prot' '-parser' 'o'
> '-parser' 'op' '-printer' 'p' 'pa_type_conv.cma' 'unix.cma'
> 'bigarray.cma' 'nums.cma' 'sexplib.cma' 'pa_sexp_conv.cma'
> 'pa_type_conv.cma' 'bin_prot.cma' 'pa_bin_prot.cma'  'main.ml' >
> /tmp/camlpp99eefa
> Camlp4: Uncaught exception: Not_found
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa-roc.inria.fr/wws/info/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>



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


  reply	other threads:[~2012-04-27 19:29 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 [this message]
2012-04-28 18:12       ` Matej Košík
2012-04-28 18:46         ` Markus Mottl

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_800oybKMq2BrS5D-bAPaAxxDNzHdjv6obJ-0YS8jOyu1BUw@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).