Changes between Version 9 and Version 10 of Building/Troubleshooting


Ignore:
Timestamp:
Mar 31, 2009 9:29:22 AM (6 years ago)
Author:
simonmar
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Building/Troubleshooting

    v9 v10  
    243243make: *** [all] Error 1
    244244}}}
     245
     246=== getCurrentDirectory: resource exhausted (Too many open files) ===
     247
     248By default, Mac OS X limits the number of open files to 256.  This may cause problems when applying patches in step 3 of ''Getting a GHC source tree using darcs'' with darcs 1.0.9.
     249
     250{{{
     251$ darcs pull -a
     252Pulling from "http://darcs.haskell.org/ghc"...
     253This is the GHC darcs repository (HEAD branch)
     254
     255For more information, visit the GHC developer wiki at
     256  http://hackage.haskell.org/trac/ghc
     257**********************
     258darcs: getCurrentDirectory: resource exhausted (Too many open files)
     259}}}
     260
     261If this happens, try increasing the number of open files allowed by typing in {{{$ ulimit -n unlimited}}} and try pulling again.  If this fails, close all terminal windows, restart Terminal.app, and try again.
     262
     263If this still doesn't work, try pulling 100 patches at a time using the {{{darcs pull}}} command (notice the lack of the {{{-a}}} flag).  Hold down 'y' until 100 or so patches are accepted, then hit 'd' to skip the rest; repeat until all patches are applied.  If this fails, try with less than 100 patches at a time (e.g., 50).
     264
     265This issue has been reported as [http://bugs.darcs.net/issue560 issue 560] in the darcs bug tracking system.
     266
     267=== Ubuntu: {{{dash}}} vs {{{bash}}} ===
     268In Ubuntu 6.10 the default system shell {{{/bin/sh}}} was changed to {{{dash}}} (The Debian Almquist Shell) instead of {{{bash}}}, see [http://wiki.ubuntu.com/DashAsBinSh DashAsBinSh]. This has been reported to break the GHC build. Until the GHC scripts are updated, the easiest way to fix this problem is to (as {{{root}}}) change the {{{/bin/sh}}} link back to {{{/bin/bash}}}. There should be minimal effect on the rest of the system, bar a small speed penalty for script heavy processes due to {{{bash}}} slowness.