New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file resource limit reached on OSX when generating docs for GHC #495
Comments
another (unrelated issue?) is the missing link destinations for a whole mess of things, do those correspond to module recursions and/or .hs-boot definitions? |
see https://github.com/haskell/haddock/files/226599/makerun-warnings.txt (attached file link) for the warning outputs regarding links |
I have also run into this and know where to fix it. |
+1 It breaks the end of the haddock hyperlinekd source/doc generation for the ghc code base on mac without the ulimit intervention, so it'd be great to have this fixed before 8.0 gets cut properly :) |
theres a related issue in the ghc.mk file for the haddock subdir that makes it fail to copy the solarized.css and the .js that does the lovely tool tip highlighting, I hope to dig into that tomorrow, thomie gave some hints about where it might be |
@mpickering where does the issue lie may I ask? |
The fix needs to be something like this: |
would using something like https://hackage.haskell.org/package/base-4.8.2.0/docs/Control-Concurrent-QSemN.html make sense or not be safe? |
@mpickering whats that |
The intention is to force the whole file to be read into memory so the file handle could be closed. Is there a better way to do it without adding dependencies? |
what do you mean by dependencies? |
ohhh, i would probably just have the next line be something lik e
|
this seems to be a semi lazy io challenge in particular, or am i missing something? |
i've attached the shell invocation that came up in ghc that triggered the problem if you wanna try to use it to test stuff |
I think,
or perhaps better,
should be perfectly sufficient, no? |
True On Friday, April 22, 2016, Ben Gamari notifications@github.com wrote:
|
If that is the recommended way then that's fine but it always felt a bit hacky to me? |
Matthew Pickering notifications@github.com writes:
|
@cartazio do you think you could put together and test a patch for this? |
Ben, applying the patch I linked to earlier will fix the problem. |
I can test it next week, doing some fam travel so I don't have my -j10 friendly machine on me for a few days |
Previously it was possible for files to be left open, leading to haskell#495 where we'd run out of handles on Darwin.
Fixed in e0ada17. |
see https://ghc.haskell.org/trac/ghc/ticket/11956
The text was updated successfully, but these errors were encountered: