Excerpts from Florent Monnier's message of Wed Sep 02 22:02:11 +0200 2009:
> > > Trying to compile batteries (version 20090405 on ocaml 3.11.1),
> > > I get this error:
> > >
> > > + ocamlfind ocamlc -c -g -I src/syntax/pa_strings -I src -I src/core -I
> > > src/main -I src/libs -I src/core/extlib_threads -I src/core/extlib -I
> > > src/core/baselib -I src/core/baselib_threads -I src/libs/common -I
> > > src/libs/camlzip -I src/libs/sexplib -I src/libs/findlib -I
> > > src/libs/compilers -I src/libs/ocamlnet -I build/optcomp -o
> > > src/syntax/pa_strings/pa_estring.cmi src/syntax/pa_strings/pa_estring.mli
> > > File "src/syntax/pa_strings/pa_estring.mli", line 12, characters 0-19:
> > > Error: Unbound module Camlp4.PreCast
> > >
> > > this line 12 is only:
> > > open Camlp4.PreCast
> > >
> > >
> > > Does someone have an idea of what could cause this error ?
> >
> > I don't see any "-I +camlp4" can you add it?
> 
> if I run the command like this on the command line it passes right
> but when I run again the make command it doesn't continue because
> ocamlbuild complains about sanity violation
> Anyway as it is for packaging purpose I will need to patch the Makefile,
> the problem is that I don't see where to add this statement in the Makefile:
> http://git.ocamlcore.org/cgi-bin/gitweb.cgi?p=batteries/batteries.git;a=blob;f=Makefile.in;hb=HEAD
> 
> (also I've search in the debian package, and it seems they haven't patch the 
> Makefile at all)

If you are using ocamlbuild, then a -tag use_camlp4 could do the job.

-- 
Nicolas Pouillard
http://nicolaspouillard.fr

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to