I tried to build core today using my opam-installed ocaml compiler. It failed due to the error-enabled warnings.
It seems like we should try to get this to work out of the box, in case users want to work on core.
requesting all changes
adding changesets
adding manifests
adding file changes
added 140 changesets with 2188 changes to 1172 files
updating to branch default
cd ocaml-core
899 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ cd ocaml-core-yminsky/
/usr/local/src/ocaml-core-yminsky
$ ./build-and-install
=> base/type_conv
* uninstalling
* configuring
* compiling
/home/seanmcl/.opam/4.00.0/bin/ocamlopt.opt -I /home/seanmcl/.opam/4.00.0/lib/ocaml/ocamlbuild unix.cmxa /home/seanmcl/.opam/4.00.0/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa
myocamlbuild.ml /home/seanmcl/.opam/4.00.0/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
ocamlfind ocamldep -package camlp4.quotations -package camlp4.extend -modules lib/pa_type_conv.mli > lib/pa_type_conv.mli.depends
ocamlfind ocamlc -c -g -w @Aemr-28 -strict-sequence -package camlp4.quotations -package camlp4.extend -I lib -o lib/pa_type_conv.cmi lib/pa_type_conv.mli
ocamlfind ocamldep -package camlp4.quotations -package camlp4.extend -syntax camlp4o -modules lib/
pa_type_conv.ml > lib/pa_type_conv.ml.depends
ocamlfind ocamlc -c -g -w @Aemr-28 -strict-sequence -package camlp4.quotations -package camlp4.extend -syntax camlp4o -I lib -o lib/pa_type_conv.cmo lib/
pa_type_conv.ml
+ ocamlfind ocamlc -c -g -w @Aemr-28 -strict-sequence -package camlp4.quotations -package camlp4.extend -syntax camlp4o -I lib -o lib/pa_type_conv.cmo lib/
pa_type_conv.ml
Warning 8: this pattern-matching is not exhaustive.
Here is an example of a value that is not matched:
(TyTypePol (_, _, _)|TyAnP _|TyAnM _)
Warning 33: unused open Lexing.
Warning 32: unused value both.
Error: Error-enabled warnings (3 occurrences)
Command exited with code 2.
E: Failure("Command '/home/seanmcl/.opam/4.00.0/bin/ocamlbuild lib/pa_type_conv.cma -tag debug' terminated with error code 10")
make: *** [build] Error 1
*** ERROR: Couldn't compile type_conv
EXIT STATUS 1
/usr/local/src/ocaml-core-yminsky
$