Incompatibility with 2.0.3 (?)

48 views
Skip to first unread message

Stéphane Legrand

unread,
Jan 25, 2012, 2:30:27 PM1/25/12
to bitstring
Hi,

I tried to compile my project with the new 2.0.3 version but i get
this error:

ocamlbuild -use-ocamlfind -verbose 9 src.otarget
+ /usr/local/bin/ocamlfind ocamldep -package bitstring -package
bitstring.syntax -package cryptokit -package num -package unix -syntax
bitstring.syntax -modules src/OCMP_Authentication.ml > src/
OCMP_Authentication.ml.depends
No level labelled ";" in entry "expr"
Failure: "Grammar.extend"
Preprocessing error on file src/OCMP_Authentication.ml
Command exited with code 2.
Compilation unsuccessful after building 1 target (0 cached) in
00:00:00.
make: *** [all] Erreur 10


This is with ocaml 3.12.1.

If i go back to the previous version of bitstring, the compilation is
ok. Is there any known incompatibility with the 2.0.3 version ?

Thank you.

Regards,
Stéphane.

Richard W.M. Jones

unread,
Jan 28, 2012, 5:32:37 AM1/28/12
to bits...@googlegroups.com

Not that I'm aware of ... It compiles and runs fine for me
with 3.12.1.

Rich.

--
Richard Jones
Red Hat

Stéphane Legrand

unread,
Feb 3, 2012, 5:00:23 PM2/3/12
to bitstring
I have found a workaround to be able to compile my project with
bitstring 2.0.3. If i modify the installed META file to replace the
line "requires = "camlp4"" by the line "preprocessor = "camlp4of"", i
can compile again my project. The META file has been modified to fix
issue 5 ( http://code.google.com/p/bitstring/issues/detail?id=5). But
in my case this fix breaks the compilation.

Is there a way to force an equivalent workaround without editing the
META file ?

Regards,
Stéphane.

Stéphane Legrand

unread,
Feb 14, 2012, 3:46:53 PM2/14/12
to bitstring
I reply to myself, the answer is to add the option "syntax(camlp4o)"
to the _tags file :

<src/*.ml> : syntax(camlp4o),...

I found this solution here :
http://forge.ocamlcore.org/tracker/index.php?func=detail&aid=588&group_id=54&atid=291


Stéphane.
Reply all
Reply to author
Forward
0 new messages