caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] ocamlbuild / menhir with --infer / ocamlc options other than -I
@ 2013-01-08 15:35 Pierre-Yves Strub
  2013-01-08 15:44 ` Gabriel Scherer
  0 siblings, 1 reply; 3+ messages in thread
From: Pierre-Yves Strub @ 2013-01-08 15:35 UTC (permalink / raw)
  To: caml-list

Hi,

I have a parser that opens a module compiled with -rectypes. Although I 
added the rectypes tags (true: rectypes) to my ocamlbuild configuration, 
ocamlbuild does not add the -rectypes flag to the --ocamlc command given 
to menhir.

 From the source code (ocaml_tools.menhir), it seems that only the 
include flags are passed to the --ocamlc command:

   Cmd(S[menhir;
         A"--ocamlc"; Quote(S[!Options.ocamlc; ocaml_include_flags mly]);
         T(tags_of_pathname mly++"ocaml"++"parser"++"menhir");
         A"--infer"; Px mly])

Bests,
     Pierre-Yves.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] ocamlbuild / menhir with --infer / ocamlc options other than -I
  2013-01-08 15:35 [Caml-list] ocamlbuild / menhir with --infer / ocamlc options other than -I Pierre-Yves Strub
@ 2013-01-08 15:44 ` Gabriel Scherer
  2013-01-11  8:51   ` Pierre-Yves Strub
  0 siblings, 1 reply; 3+ messages in thread
From: Gabriel Scherer @ 2013-01-08 15:44 UTC (permalink / raw)
  To: Pierre-Yves Strub; +Cc: caml-list

Thanks for the report.

I'm not quite sure but I believe this is similar to the issue PR#5763:
  http://caml.inria.fr/mantis/view.php?id=5763

Could you check if the proposed patch solves your problem?

If not, could you submit an issue on the bugtracker, hopefully with a
short example demonstrating the problem to make reproduction easier?

On Tue, Jan 8, 2013 at 4:35 PM, Pierre-Yves Strub <pierre-yves@strub.nu> wrote:
> Hi,
>
> I have a parser that opens a module compiled with -rectypes. Although I
> added the rectypes tags (true: rectypes) to my ocamlbuild configuration,
> ocamlbuild does not add the -rectypes flag to the --ocamlc command given to
> menhir.
>
> From the source code (ocaml_tools.menhir), it seems that only the include
> flags are passed to the --ocamlc command:
>
>   Cmd(S[menhir;
>         A"--ocamlc"; Quote(S[!Options.ocamlc; ocaml_include_flags mly]);
>         T(tags_of_pathname mly++"ocaml"++"parser"++"menhir");
>         A"--infer"; Px mly])
>
> Bests,
>     Pierre-Yves.
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] ocamlbuild / menhir with --infer / ocamlc options other than -I
  2013-01-08 15:44 ` Gabriel Scherer
@ 2013-01-11  8:51   ` Pierre-Yves Strub
  0 siblings, 0 replies; 3+ messages in thread
From: Pierre-Yves Strub @ 2013-01-11  8:51 UTC (permalink / raw)
  To: caml-list

Hi,

Issue PR#5763 is identical to my problem.

Thanks,
     Pierre-Yves.

On 01/08/2013 04:44 PM, Gabriel Scherer wrote:
> Thanks for the report.
>
> I'm not quite sure but I believe this is similar to the issue PR#5763:
>    http://caml.inria.fr/mantis/view.php?id=5763
>
> Could you check if the proposed patch solves your problem?
>
> If not, could you submit an issue on the bugtracker, hopefully with a
> short example demonstrating the problem to make reproduction easier?
>
> On Tue, Jan 8, 2013 at 4:35 PM, Pierre-Yves Strub <pierre-yves@strub.nu> wrote:
>> Hi,
>>
>> I have a parser that opens a module compiled with -rectypes. Although I
>> added the rectypes tags (true: rectypes) to my ocamlbuild configuration,
>> ocamlbuild does not add the -rectypes flag to the --ocamlc command given to
>> menhir.
>>
>>  From the source code (ocaml_tools.menhir), it seems that only the include
>> flags are passed to the --ocamlc command:
>>
>>    Cmd(S[menhir;
>>          A"--ocamlc"; Quote(S[!Options.ocamlc; ocaml_include_flags mly]);
>>          T(tags_of_pathname mly++"ocaml"++"parser"++"menhir");
>>          A"--infer"; Px mly])
>>
>> Bests,
>>      Pierre-Yves.
>>
>> --
>> Caml-list mailing list.  Subscription management and archives:
>> https://sympa.inria.fr/sympa/arc/caml-list
>> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
>> Bug reports: http://caml.inria.fr/bin/caml-bugs


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-01-11  8:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-08 15:35 [Caml-list] ocamlbuild / menhir with --infer / ocamlc options other than -I Pierre-Yves Strub
2013-01-08 15:44 ` Gabriel Scherer
2013-01-11  8:51   ` Pierre-Yves Strub

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).