* strange behavior with camlp4 and #use
@ 2008-09-16 21:31 Peng Zang
2008-09-16 21:58 ` [Caml-list] " Hezekiah M. Carty
0 siblings, 1 reply; 3+ messages in thread
From: Peng Zang @ 2008-09-16 21:31 UTC (permalink / raw)
To: caml-list
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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).
I can reproduce this weird behavior as follows:
Objective Caml version 3.10.2
# #use "topfind";;
# #camlp4o;;
# #use "foo.ml";;
- : int = 1
# #use "foo.ml";;
- : int = 1
# #use "foo.ml";;
I/O error: Bad file descriptor
Does anyone else get this weird behavior? Why would it fail on the later
times? Was a file descriptor left unclosed? Is this a bug?
Peng
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
iD8DBQFI0CW8fIRcEFL/JewRAnD+AKDJo65H/y8oeT+ByCrQg8S2ZBHrhQCff+DD
wF9xbAA90UTcMjW/vJvAy/U=
=+e8p
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] strange behavior with camlp4 and #use
2008-09-16 21:31 strange behavior with camlp4 and #use Peng Zang
@ 2008-09-16 21:58 ` Hezekiah M. Carty
2008-09-16 23:58 ` Peng Zang
0 siblings, 1 reply; 3+ messages in thread
From: Hezekiah M. Carty @ 2008-09-16 21:58 UTC (permalink / raw)
To: peng.zang; +Cc: caml-list
On Tue, Sep 16, 2008 at 5:31 PM, Peng Zang <peng.zang@gmail.com> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] strange behavior with camlp4 and #use
2008-09-16 21:58 ` [Caml-list] " Hezekiah M. Carty
@ 2008-09-16 23:58 ` Peng Zang
0 siblings, 0 replies; 3+ messages in thread
From: Peng Zang @ 2008-09-16 23:58 UTC (permalink / raw)
To: caml-list; +Cc: Hezekiah M. Carty
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday 16 September 2008 05:58:17 pm Hezekiah M. Carty wrote:
> > "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
Ahhh! Thank you much. I hope it gets fixed in 3.11 too.
Peng
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
iD8DBQFI0EgffIRcEFL/JewRAqLvAJ4vhhhDteX2VnqtZclc2QWIUTQ5fwCggoZ+
xnckfNJTsRtFoq0H2HbO9Yw=
=8qPT
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-09-16 23:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-16 21:31 strange behavior with camlp4 and #use Peng Zang
2008-09-16 21:58 ` [Caml-list] " Hezekiah M. Carty
2008-09-16 23:58 ` Peng Zang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox