File "/Users/sebastienmondet/.opam/4.03.0+trunk/lib/ocaml/ocamlbuild/ocamlbuildlib.cma(Ocamlbuild_pack)", line 1:
Warning 31: files /Users/sebastienmondet/.opam/4.03.0+trunk/lib/ocaml/ocamlbuild/ocamlbuildlib.cma(Ocamlbuild_pack) and /Users/sebastienmondet/.opam/4.03.0+trunk/lib/ocaml/ocamlbuild/ocamlbuildlib.cma(Ocamlbuild_pack) both define a module named Ocamlbuild_pack
File "none", line 1:
Error: Some fatal warnings were triggered (1 occurrences)
Command exited with code 2.
/Users/sebastienmondet/.opam/4.03.0+trunk/bin/ocamlopt.opt unix.cmxa -I /Users/sebastienmondet/.opam/4.03.0+trunk/lib/ocaml/ocamlbuild /Users/sebastienmondet/.opam/4.03.0+trunk/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml /Users/sebastienmondet/.opam/4.03.0+trunk/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
File "src/plugins/ocamlbuild/MyOCamlbuildBase.ml", line 130, characters 43-62:
Warning 3: deprecated: Ocamlbuild_plugin.String.uncapitalize
Use String.uncapitalize_ascii instead.
File "src/plugins/ocamlbuild/MyOCamlbuildBase.ml", line 143, characters 51-70:
Warning 3: deprecated: Ocamlbuild_plugin.String.uncapitalize
Use String.uncapitalize_ascii instead.
This bug has been migrated from artifact #1519 on forge.ocamlcore.org. It was assigned to user102. It was closed on 2016-04-29 07:24:19.
user21778 posted on 2015-12-10 20:21:40:
Here is the extract of the error log:
File "/Users/sebastienmondet/.opam/4.03.0+trunk/lib/ocaml/ocamlbuild/ocamlbuildlib.cma(Ocamlbuild_pack)", line 1: Warning 31: files /Users/sebastienmondet/.opam/4.03.0+trunk/lib/ocaml/ocamlbuild/ocamlbuildlib.cma(Ocamlbuild_pack) and /Users/sebastienmondet/.opam/4.03.0+trunk/lib/ocaml/ocamlbuild/ocamlbuildlib.cma(Ocamlbuild_pack) both define a module named Ocamlbuild_pack File "none", line 1: Error: Some fatal warnings were triggered (1 occurrences) Command exited with code 2.
user102 replied on 2015-12-10 21:31:52:
This error means that EVERY project shipping with the myocamlbuild version generated by OASIS will break !
As of OCaml 4.02 String.uncapitalize_ascii doesn't exist, so it also means that ALL project will have to depend on OCaml >= 4.03.
I would expect to have a few version of OCaml with both uncapitalize and uncapitalize_ascii, rather than a drastic change...
user21778 replied on 2015-12-10 21:38:44:
Both uncapitalize and uncapitalize_ascii are there, but the former is just deprecated (with the
[@@deprecated]
attribute).The problem here seems to be compiling with some warning turned into an error.
(BTW, I would have guessed the problem is with warning 31 and not warning 3)
user21778 replied on 2015-12-10 21:41:06:
Confirming that the error comes from warining 31.
In the logs I see that other files compiled fine with the
String.capitalize
.The error happens when linking src/cli/Main.byte with
ocamlc ... -o ...
.user102 replied on 2015-12-10 23:07:32:
ocamlbuild.cma is probably included twice (for an unknown reason).
Can you give the full command line when compiling Main.byte ?
user21778 replied on 2015-12-10 23:12:14:
Here is what I have:
user21778 replied on 2015-12-10 23:13:51:
Attaching the whole logs form opam
user102 replied on 2015-12-11 00:57:28:
Here is the duplicate: -I +ocamlbuild ocamlbuildlib.cma and -package ocamlbuild
I suppose one of them should be removed.
user112 replied on 2016-04-21 18:06:15:
Is there an immediate plan for fixing oasis itself under 4.03.0? It's supposed to be released soon.
user102 replied on 2016-04-21 19:32:22:
Now that I have access to travis + OPAM build all this is a lot more easy to test and fix.
Will fix it for next release.
user923 replied on 2016-04-26 13:55:25:
Would it be possible to have a release reasonably quickly ?
user102 replied on 2016-04-26 14:37:37:
Yes, but I have no clue how I can make it backward compatible with OCaml < 4.03.00 (which is a must have).