[Haskell-cafe] hGetContents: resource exhausted

Lally Singh lally.singh at gmail.com
Mon Jul 26 20:37:04 EDT 2010

On Mon, Jul 26, 2010 at 7:59 AM, Ben Millwood <haskell at benmachine.co.uk> wrote:
> On Mon, Jul 26, 2010 at 10:47 AM, Magnus Therning <magnus at therning.org> wrote:
>> On Sun, Jul 25, 2010 at 23:47, Lally Singh <lally.singh at gmail.com> wrote:
>>> Hey all,
>>>  This is on OpenSolaris.  Simple attempts to build cabal packages
>>> give me this error, and I don't know what it means.  Here's an
>>> example:
>>> [07/25 18:51::lally at sol type-level]$ runghc Setup.hs configure
>>> Configuring type-level-0.2.4...
>>> Setup.hs: fd:8: hGetContents: resource exhausted (Resource temporarily
>>> unavailable)
>>> Setup.hs: fd:8: resource exhausted
>>> Does anyone know what this means?  I'm trying to just get the llvm
>>> bindings installed (requiring mtl & type-level).
>> A quick guess: you're running out of filedescriptors.
> The error gives the descriptor number as 8, so I don't think that's
> terribly likely :)
> Resource temporarily unavailable is the string that corresponds to the
> EAGAIN error, which is typically presented by operations that would
> block being used in non-blocking mode. I have no idea what would cause
> it to be a fatal error in a hGetContents call.

I checked that my ulimit was > 8 :-)  It was 256, I knocked it up to
65,535, but that didn't help.

I've got my own source build of ghc.  Is there anything I can put in
to track down what's going on?

Thanks for all the help folks,


More information about the Haskell-Cafe mailing list