ocaml-batteries-team / batteries-included

Batteries Included project
http://ocaml-batteries-team.github.com/batteries-included/hdoc2/
Other
517 stars 106 forks source link

Batteries 1.5.0 does not compile on Debian 6.0.5 #325

Closed edmcman closed 11 years ago

edmcman commented 11 years ago

Batteries 1.5.0 fails to compile on my Debian 6.0.5 machine. It has ocaml 3.11.2.

ed@sourcecode:/tmp/batteries-1.5.0$ make Build mode: shared ocamlbuild -no-links syntax.otarget byte.otarget src/batteries_help.cmo META shared.otarget Finished, 0 targets (0 cached) in 00:00:00. ocamlfind ocamlc -c -g -annot -warn-error A -package camomile,num,str -I src -I benchsuite -I testsuite -I build -I libs -I qtest -I libs/estring -I src/syntax/pa_strings -I src/syntax/pa_comprehension -o src/batSet.cmo src/batSet.ml File "src/batSet.ml", line 1, characters 0-1: Error: The implementation src/batSet.ml does not match the interface src/batSet.cmi: Values do not match: val map : ('a -> 'a) -> 'a t -> 'a t is not included in val map : ('a -> 'b) -> 'a mappable -> 'b mappable Command exited with code 2. Compilation unsuccessful after building 326 targets (325 cached) in 00:00:00. make: *\ [all] Error 10

thelema commented 11 years ago

Batteries requires OCaml 3.12.1. You can use ocamlbrew or opam to easily install a newer ocaml version.

edmcman commented 11 years ago

Then the README.md file in batteries 1.5.0 is incorrect.

You will need the following libraries:

thelema commented 11 years ago

You are right. I'll fix it now.

edmcman commented 11 years ago

Cool, thanks :+1: