Closed lijunsong closed 8 years ago
Seeing similar issues. For me ocp-build (1.99.8-beta) builds on OS X 10.9.4 and OCaml 4.02.0 but ocp-index 1.4.2 fails. There are some warnings about mutating functions in String that are now deprecated. Unfortunately warnings as errors is turned on so this causes the build to fail.
File "src/approx_lexer.mll", line 110, characters 28-41: Warning 3: deprecated: String.create File "src/approx_lexer.mll", line 120, characters 19-32: Warning 3: deprecated: String.create File "src/approx_lexer.mll", line 124, characters 2-19: Warning 3: deprecated: String.unsafe_set File "src/approx_lexer.mll", line 223, characters 15-27: Warning 3: deprecated: String.set File "_obuild/ocp-indent.lexer/temp/approx_lexer.ml", line 1: Error: Some fatal warnings were triggered (4 occurrences)
This can be fixed by passing -warn-error A-3
to ocamlopt/ocamlc. Also please consider not to use warnings as errors in deployment builds (for development the option is fine) as this is likely to cause breakages with every new compiler version.
After I switched to 4.02.0, the error was gone...
Just tried again with opam update but I'm still seeing the same issue, unfortunately.
@lijunsong, ocaml 4.01 does not work out of the box in recent versions of OSX. There is now a patch in homebrew and opam to fix this. You could just reinstall ocaml.4.01 to fix the issue. (see https://github.com/ocaml/opam/issues/1236)
@sheijk ocp-indent master + ocaml 4.02 builds fine with OSX
Seems to be fixed.
Here is the error message. I don't know whether I need to post this error to ocp-build?