OCamlPro / ocp-indent

Indentation tool for OCaml, to be used from editors like Emacs and Vim.
http://www.typerex.org/ocp-indent.html
Other
200 stars 63 forks source link

1.7.0 failed to build on Fedora 28 #278

Closed cheese closed 5 years ago

cheese commented 5 years ago

ocaml-4.06.0-2.fc28.x86_64 ocaml-dune-1.7.3-1.fc28.x86_64 ocaml-result-1.2-3.fc28.x86_64 ocaml-cmdliner-1.0.2-6.fc28.x86_64

+ dune build -j4
      ocamlc src/.ocp_indent_lib.objs/byte/indentConfig.{cmo,cmt} (exit 2)
(cd _build/default && /usr/bin/ocamlc.opt -w @a-4-29-40-41-42-44-45-48-58-59-60-40 -strict-sequence -strict-formats -short-paths -keep-locs -w -9 -g -bin-annot -I src/.ocp_indent_lib.objs/byte -I /usr/lib64/ocaml/bytes -I src/.ocp_indent_lexer.objs/byte -I src/.ocp_indent_lexer.objs/native -I src/.ocp_indent_utils.objs/byte -I src/.ocp_indent_utils.objs/native -intf-suffix .ml -no-alias-deps -opaque -o src/.ocp_indent_lib.objs/byte/indentConfig.cmo -c -impl src/indentConfig.ml)
File "src/indentConfig.ml", line 83, characters 19-34:
Error (warning 52): Code should not depend on the actual values of
this constructor's arguments. They are only for information
and may change in future versions. (See manual section 8.5)
File "src/indentConfig.ml", line 141, characters 12-27:
Error (warning 52): Code should not depend on the actual values of
this constructor's arguments. They are only for information
and may change in future versions. (See manual section 8.5)
File "src/indentConfig.ml", line 144, characters 12-28:
Error (warning 52): Code should not depend on the actual values of
this constructor's arguments. They are only for information
and may change in future versions. (See manual section 8.5)
File "src/indentConfig.ml", line 150, characters 12-36:
Error (warning 52): Code should not depend on the actual values of
this constructor's arguments. They are only for information
and may change in future versions. (See manual section 8.5)
File "src/indentConfig.ml", line 157, characters 12-33:
Error (warning 52): Code should not depend on the actual values of
this constructor's arguments. They are only for information
and may change in future versions. (See manual section 8.5)
File "_none_", line 1:
Error (warning 52): Code should not depend on the actual values of
this constructor's arguments. They are only for information
and may change in future versions. (See manual section 8.5)
File "_none_", line 1:
Error (warning 52): Code should not depend on the actual values of
this constructor's arguments. They are only for information
and may change in future versions. (See manual section 8.5)
File "_none_", line 1:
Error (warning 52): Code should not depend on the actual values of
this constructor's arguments. They are only for information
and may change in future versions. (See manual section 8.5)
    ocamlopt src/.ocp_indent_lib.objs/native/indentConfig.{cmx,o} (exit 2)
(cd _build/default && /usr/bin/ocamlopt.opt -w @a-4-29-40-41-42-44-45-48-58-59-60-40 -strict-sequence -strict-formats -short-paths -keep-locs -w -9 -g -I src/.ocp_indent_lib.objs/byte -I src/.ocp_indent_lib.objs/native -I /usr/lib64/ocaml/bytes -I src/.ocp_indent_lexer.objs/byte -I src/.ocp_indent_lexer.objs/native -I src/.ocp_indent_utils.objs/byte -I src/.ocp_indent_utils.objs/native -intf-suffix .ml -no-alias-deps -opaque -o src/.ocp_indent_lib.objs/native/indentConfig.cmx -c -impl src/indentConfig.ml)
File "src/indentConfig.ml", line 83, characters 19-34:
Error (warning 52): Code should not depend on the actual values of
this constructor's arguments. They are only for information
and may change in future versions. (See manual section 8.5)
File "src/indentConfig.ml", line 141, characters 12-27:
Error (warning 52): Code should not depend on the actual values of
this constructor's arguments. They are only for information
and may change in future versions. (See manual section 8.5)
File "src/indentConfig.ml", line 144, characters 12-28:
Error (warning 52): Code should not depend on the actual values of
this constructor's arguments. They are only for information
and may change in future versions. (See manual section 8.5)
File "src/indentConfig.ml", line 150, characters 12-36:
Error (warning 52): Code should not depend on the actual values of
this constructor's arguments. They are only for information
and may change in future versions. (See manual section 8.5)
File "src/indentConfig.ml", line 157, characters 12-33:
Error (warning 52): Code should not depend on the actual values of
this constructor's arguments. They are only for information
and may change in future versions. (See manual section 8.5)
File "_none_", line 1:
Error (warning 52): Code should not depend on the actual values of
this constructor's arguments. They are only for information
and may change in future versions. (See manual section 8.5)
File "_none_", line 1:
Error (warning 52): Code should not depend on the actual values of
this constructor's arguments. They are only for information
and may change in future versions. (See manual section 8.5)
File "_none_", line 1:
Error (warning 52): Code should not depend on the actual values of
this constructor's arguments. They are only for information
and may change in future versions. (See manual section 8.5)
      ocamlc src/.ocp_indent_lib.objs/byte/indentBlock.{cmo,cmt} (exit 2)
(cd _build/default && /usr/bin/ocamlc.opt -w @a-4-29-40-41-42-44-45-48-58-59-60-40 -strict-sequence -strict-formats -short-paths -keep-locs -w -9 -g -bin-annot -I src/.ocp_indent_lib.objs/byte -I /usr/lib64/ocaml/bytes -I src/.ocp_indent_lexer.objs/byte -I src/.ocp_indent_lexer.objs/native -I src/.ocp_indent_utils.objs/byte -I src/.ocp_indent_utils.objs/native -intf-suffix .ml -no-alias-deps -opaque -o src/.ocp_indent_lib.objs/byte/indentBlock.cmo -c -impl src/indentBlock.ml)
File "src/indentBlock.ml", line 1640, characters 4-65:
Error (warning 57): Ambiguous or-pattern variables under guard;
variable tok may match different arguments. (See manual section 8.5)
    ocamlopt src/.ocp_indent_lib.objs/native/indentBlock.{cmx,o} (exit 2)
(cd _build/default && /usr/bin/ocamlopt.opt -w @a-4-29-40-41-42-44-45-48-58-59-60-40 -strict-sequence -strict-formats -short-paths -keep-locs -w -9 -g -I src/.ocp_indent_lib.objs/byte -I src/.ocp_indent_lib.objs/native -I /usr/lib64/ocaml/bytes -I src/.ocp_indent_lexer.objs/byte -I src/.ocp_indent_lexer.objs/native -I src/.ocp_indent_utils.objs/byte -I src/.ocp_indent_utils.objs/native -intf-suffix .ml -no-alias-deps -opaque -o src/.ocp_indent_lib.objs/native/indentBlock.cmx -c -impl src/indentBlock.ml)
File "src/indentBlock.ml", line 1640, characters 4-65:
Error (warning 57): Ambiguous or-pattern variables under guard;
variable tok may match different arguments. (See manual section 8.5)
AltGr commented 5 years ago

These are just warnings treated as errors, which makes sense with a new version of OCaml. You can try dune build --profile=release to allow them.

cheese commented 5 years ago

These are just warnings treated as errors, which makes sense with a new version of OCaml. You can try dune build --profile=release to allow them.

OK. That makes the warnings non-error.