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
<5764c029b688c1c0d24a2e97cd7...@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.mo...@gmail.com


-- 
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

Reply via email to