From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id E5835BBAF for ; Tue, 16 Sep 2008 23:58:18 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AikBAIvIz0hA6aa0lGdsb2JhbACSTT4BAQEBCQMKBxEDoCSGKz6BZw X-IronPort-AV: E=Sophos;i="4.32,410,1217800800"; d="scan'208";a="17361684" Received: from py-out-1112.google.com ([64.233.166.180]) by mail1-smtp-roc.national.inria.fr with ESMTP; 16 Sep 2008 23:58:18 +0200 Received: by py-out-1112.google.com with SMTP id a77so2124198pyh.33 for ; Tue, 16 Sep 2008 14:58:17 -0700 (PDT) Received: by 10.142.162.9 with SMTP id k9mr140923wfe.211.1221602297243; Tue, 16 Sep 2008 14:58:17 -0700 (PDT) Received: by 10.142.192.16 with HTTP; Tue, 16 Sep 2008 14:58:17 -0700 (PDT) Message-ID: <3a360f590809161458i5d5e6494l9ce37dec9c212311@mail.gmail.com> Date: Tue, 16 Sep 2008 17:58:17 -0400 From: "Hezekiah M. Carty" Sender: hcarty@mulethief.com To: peng.zang@gmail.com Subject: Re: [Caml-list] strange behavior with camlp4 and #use Cc: caml-list@yquem.inria.fr In-Reply-To: <200809161731.40062.peng.zang@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200809161731.40062.peng.zang@gmail.com> X-Google-Sender-Auth: 933ba33fd8b5bb6c X-Spam: no; 0.00; camlp:01 findlib:01 camlp:01 ocaml:01 ocaml:01 bug:01 bug:01 peng:98 peng:98 wrote:01 wrote:01 caml-list:01 grammar:02 caml:02 caml:02 On Tue, Sep 16, 2008 at 5:31 PM, Peng Zang wrote: > Hi, > > I am running 3.10.2 installed from GODI. Findlib is similarly installed. I > run into the following error > > "I/O error: Bad file descriptor" > > when I try to '#use somefile' several times (when camlp4 is turned on). Yes, this is an unfortunate error which came along with the new camlp4 in OCaml 3.10.x. The error is reported in the OCaml bug tracker here (please pardon the strange grammar in the bug title - I don't know what I was thinking when I wrote it): http://caml.inria.fr/mantis/view.php?id=4495 This bug may be related as well: http://caml.inria.fr/mantis/view.php?id=4593 It is marked as "assigned", so hopefully it will be fixed by the time OCaml 3.11 is released. As it is, the bug makes using both camlp4 and #use in the REPL prohibitive. Hez -- Hezekiah M. Carty Graduate Research Assistant University of Maryland Department of Atmospheric and Oceanic Science