caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] MetaOCaml error while running generated code that needs -rectypes
@ 2015-05-06 17:54 Ömer Sinan Ağacan
  2015-05-07 15:59 ` oleg
  0 siblings, 1 reply; 5+ messages in thread
From: Ömer Sinan Ağacan @ 2015-05-06 17:54 UTC (permalink / raw)
  To: OCaml Mailing List, oleg

I'm trying to generate some code that needs -rectypes. I'm compiling all
modules using -rectypes and things mostly work fine, except I can't run
MetaOCaml generated code, because it's failing with:

  File "_none_", line 1:
  Error: Unit  imports from UnlambdaFuns, which uses recursive types.
         The compilation flag -rectypes is required

  Fatal error: exception Failure("Error type-checking generated code:
scope extrusion?")

It's good that MetaOCaml is printing the original error message. I think this
is related with how MetaOCaml compiling/linking generated code. Is this a bug?
Are there any easy workarounds for that or do we need to patch MetaOCaml to fix
this?

Thanks.

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

end of thread, other threads:[~2015-05-14 23:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-06 17:54 [Caml-list] MetaOCaml error while running generated code that needs -rectypes Ömer Sinan Ağacan
2015-05-07 15:59 ` oleg
2015-05-07 21:49   ` Ömer Sinan Ağacan
     [not found]     ` <20150510163426.EC8B1C38CA@www1.g3.pair.com>
2015-05-12 21:01       ` [Caml-list] MetaOCaml error while running generated code that Ömer Sinan Ağacan
2015-05-14 11:43         ` oleg

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).