From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 098EF7FD02 for ; Wed, 6 May 2015 19:54:44 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of omeragacan@gmail.com) identity=pra; client-ip=209.85.212.181; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="omeragacan@gmail.com"; x-sender="omeragacan@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of omeragacan@gmail.com designates 209.85.212.181 as permitted sender) identity=mailfrom; client-ip=209.85.212.181; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="omeragacan@gmail.com"; x-sender="omeragacan@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-wi0-f181.google.com) identity=helo; client-ip=209.85.212.181; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="omeragacan@gmail.com"; x-sender="postmaster@mail-wi0-f181.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BWAQCQVEpVlLXUVdFchD4GgxjLTgc8EAEBAQEBAQERAQEBAQcLCwkfMIQ5ER0BGx4DEhAPAiYCJAERAQUBIgE0h3QBAxKlVj4xiziBa4J3iSMKGScNV4QsASUBBQ6BE5IMgUUFnQCUbxIjgQwJhDUiMYJFAQEB X-IPAS-Result: A0BWAQCQVEpVlLXUVdFchD4GgxjLTgc8EAEBAQEBAQERAQEBAQcLCwkfMIQ5ER0BGx4DEhAPAiYCJAERAQUBIgE0h3QBAxKlVj4xiziBa4J3iSMKGScNV4QsASUBBQ6BE5IMgUUFnQCUbxIjgQwJhDUiMYJFAQEB X-IronPort-AV: E=Sophos;i="5.13,380,1427752800"; d="scan'208";a="139275999" Received: from mail-wi0-f181.google.com ([209.85.212.181]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 06 May 2015 19:54:43 +0200 Received: by widdi4 with SMTP id di4so31703914wid.0 for ; Wed, 06 May 2015 10:54:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=ONj8Fy6O81MWXhVtWzeYUVI6i5Nt6dhCF7HZBO8RanA=; b=p55kymC18NqqrbwQx/ujpTdWu4cYbnpE53kmey8PaQ53EFExooSY5uLGxwYNnxI2SJ 1I+ddeiouWeN4SrZd+0LZxPnnjzSPz3bpR1HHQVOIPmc1pbY835pXCWOasVC/T6Lo6lq gXOxVIEOOs6WxvBWjAaWnvD3wpOZgkJ9ZmJO1xg1P0kbuQQO9GzTUD2QEs4IDDuJ/oaI 2hBngVAd4vRVkBFjlUndRPo2oJO5csD5A61ZmDPPrQObd+CPgaTzFARQXcX3Y4bsx3Z8 JVurKAHyqapSgBnij9qdljPrdkiZt+FoeW09b+OqKOTOH0f7gSueJgZ4yXLD4ytoKHGw FIjw== X-Received: by 10.180.105.193 with SMTP id go1mr6984653wib.92.1430934883573; Wed, 06 May 2015 10:54:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.63.8 with HTTP; Wed, 6 May 2015 10:54:03 -0700 (PDT) From: =?UTF-8?Q?=C3=96mer_Sinan_A=C4=9Facan?= Date: Wed, 6 May 2015 13:54:03 -0400 Message-ID: To: OCaml Mailing List , oleg@okmij.org Content-Type: text/plain; charset=UTF-8 Subject: [Caml-list] MetaOCaml error while running generated code that needs -rectypes 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.