Issue 85 in teyjus: compilation fails due to non-revocable "-warn-error" ocaml option

5 views
Skip to first unread message

tey...@googlecode.com

unread,
Dec 16, 2013, 4:31:42 AM12/16/13
to teyjus...@googlegroups.com
Status: New
Owner: ----

New issue 85 by dankoi...@gmail.com: compilation fails due to
non-revocable "-warn-error" ocaml option
http://code.google.com/p/teyjus/issues/detail?id=85

Compilation fails on linux for teyjus-2.0-b2, using ocaml 4.01.0 and omake
0.9.8.6, because a warning message is forces to be an error:

+ ocamlopt.opt -warn-error A -I . -I . -I ../disassembler
-I ../simulator -I ../loader -c parse.ml
File "parse.ml", line 119, characters 10-16:
Warning 26: unused variable print'.
File "parse.ml", line 1:
Error: Some fatal warnings were triggered (1 occurrences)

Giving the option "--no-warn-error" to omake does not help, ocamlopt.opt is
still run with the "warn-error" argument.

This is probably something simple, but being new to ocaml I couldn't fix
it. (I cannot find the option in OMakefile-s)


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

tey...@googlecode.com

unread,
Dec 16, 2013, 5:18:50 AM12/16/13
to teyjus...@googlegroups.com

Comment #1 on issue 85 by fafo...@gmail.com: compilation fails due to
non-revocable "-warn-error" ocaml option
http://code.google.com/p/teyjus/issues/detail?id=85

Hi Danko,

Please use the trunk version, which is pretty stable and fixes this issue.

(Another solution is to downgrade OCaml to version 3)

tey...@googlecode.com

unread,
Dec 16, 2013, 5:25:12 AM12/16/13
to teyjus...@googlegroups.com

Comment #2 on issue 85 by dankoi...@gmail.com: compilation fails due to
non-revocable "-warn-error" ocaml option
http://code.google.com/p/teyjus/issues/detail?id=85

Thanks for your reply!

Trunk does not report the same message, but reports another one (should I
declare it as separate bug?):

+ ocamlopt.opt -warn-error A -I . -I ../compiler -I ../disassembler
-I ../simulator -I ../loader -c parsefront.ml
File "parsefront.ml", line 105, characters 51-54:
Error: This expression has type Absyn.aterm
but an expression was expected of type Absyn.atypesymbol list

tey...@googlecode.com

unread,
Dec 16, 2013, 5:28:32 AM12/16/13
to teyjus...@googlegroups.com

Comment #3 on issue 85 by fafo...@gmail.com: compilation fails due to
non-revocable "-warn-error" ocaml option
http://code.google.com/p/teyjus/issues/detail?id=85

Sorry for the error message, it's my fault (forgot a file in the last
patch).
It should work now

tey...@googlecode.com

unread,
Dec 16, 2013, 5:31:13 AM12/16/13
to teyjus...@googlegroups.com

Comment #4 on issue 85 by dankoi...@gmail.com: compilation fails due to
non-revocable "-warn-error" ocaml option
http://code.google.com/p/teyjus/issues/detail?id=85

It works now, thank you very much!

tey...@googlecode.com

unread,
Dec 16, 2013, 5:32:43 AM12/16/13
to teyjus...@googlegroups.com
Updates:
Status: Fixed

Comment #5 on issue 85 by fafo...@gmail.com: compilation fails due to
non-revocable "-warn-error" ocaml option
http://code.google.com/p/teyjus/issues/detail?id=85

(No comment was entered for this change.)
Reply all
Reply to author
Forward
0 new messages