You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 5763 Reporter: pveber Assigned to:@gasche Status: closed (set by @xavierleroy on 2015-12-11T18:18:23Z) Resolution: fixed Priority: normal Severity: major Version: 4.00.0 Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues Monitored by: meyer
Bug description
This bug is very similar to #4572, this time it deals with the actual parser generation instead of the dependency discovery. In both cases menhir is passed an external command (either ocamldep or ocamlc) which should have the correct options. For the parser generation, the ocamlc command (passed through the --ocamlc switch) contains a '-I ' which is good in most frequent cases but is insufficient if the parser uses types that are defined in a third-party library. In my case it is a Camlp4 AST, and when I run ocamlbuild compilation it says 'Unbound module Camlp4'
There is a more thorough description of the problem and its current workaround on the caml-list:
The fix could be to change the function [menhir] in ocamlbuild/ocaml_tools.ml, in analogy with what is done in [menhir_modular], as the current workaround is based on [menhir_modular].
The attached fix is now included in the SVN trunk (but not in the next minor release branch, so you'll have to wait a bit for the fix to propagate downstream). I would be glad if you confirmed that the attached patch indeed solves your issue.
Original bug ID: 5763
Reporter: pveber
Assigned to: @gasche
Status: closed (set by @xavierleroy on 2015-12-11T18:18:23Z)
Resolution: fixed
Priority: normal
Severity: major
Version: 4.00.0
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Monitored by: meyer
Bug description
This bug is very similar to #4572, this time it deals with the actual parser generation instead of the dependency discovery. In both cases menhir is passed an external command (either ocamldep or ocamlc) which should have the correct options. For the parser generation, the ocamlc command (passed through the --ocamlc switch) contains a '-I ' which is good in most frequent cases but is insufficient if the parser uses types that are defined in a third-party library. In my case it is a Camlp4 AST, and when I run ocamlbuild compilation it says 'Unbound module Camlp4'
There is a more thorough description of the problem and its current workaround on the caml-list:
https://sympa.inria.fr/sympa/arc/caml-list/2012-09/msg00083.html
Additional information
The fix could be to change the function [menhir] in ocamlbuild/ocaml_tools.ml, in analogy with what is done in [menhir_modular], as the current workaround is based on [menhir_modular].
I can try to write a patch if it can help!
File attachments
The text was updated successfully, but these errors were encountered: