OCaml Forge
SCM

Detail: [#1283] Does not compile with OCaml 4.01.x (current trunk)

Bugs: Browse | Download .csv | Monitor

[#1283] Does not compile with OCaml 4.01.x (current trunk)

Date:
2013-05-29 12:34
Priority:
3
State:
Open
Submitted by:
Damien Doligez (doligez)
Assigned to:
Nobody (None)
Resolution:
None
Severity:
None
Version:
None
Component:
None
Operating System:
None
Product:
None
Hardware:
None
 
URL:
Summary:
Does not compile with OCaml 4.01.x (current trunk)

Detailed description
lablgtk-extras will not work with OCaml 4.01 because of the combination of two problems:

1. use of the deprecated operator "or" instead of "||"
-> OCaml now has a warning for that

2. use of "-warn-error A" in the makefile

Suggested solution:

At line 32 in src/Makefile, change "-warn-error A" into "-warn-error a", at least for the released version.

Followup

Message
Date: 2016-04-26 16:34
Sender: Erkki Seppälä

This same problem now occurs again with 4.03.0, except the warnings are about different things:

File "gtksv_utils.ml", line 88, characters 38-54:
Warning 3: deprecated: String.lowercase
Use String.lowercase_ascii instead.
File "gtksv_utils.ml", line 88, characters 65-81:
Warning 3: deprecated: String.lowercase
Use String.lowercase_ascii instead.
File "gtksv_utils.ml", line 88, characters 38-54:
Warning 3: deprecated: String.lowercase
Use String.lowercase_ascii instead.
File "gtksv_utils.ml", line 88, characters 65-81:
Warning 3: deprecated: String.lowercase
Use String.lowercase_ascii instead.
File "_none_", line 1:
Warning 58: no cmx file was found in path for module GtkSourceView2Props, and its interface was not compiled with -opaque
File "gtksv_utils.ml", line 1:
Error: Some fatal warnings were triggered (1 occurrences)

I shall foresee that this will happen with each new release till the -warn-error A is gone from releases :/. Indeed the ocaml compiler documentation says:

Note: it is not recommended to use warning sets (i.e. letters) as arguments to -warn-error in production code, because this can break your build when future versions of OCaml add some new warnings.

Attached Files:

Changes:

No Changes Have Been Made to This Item