title: Is there a maximum number of modules that can be compiled via Cabal?
body: <p>Is there a maximum number of modules that can be compiled via Cabal / via GHC?</p>
  
  <p>I do have a rather large project (many auto generated modules) which does not compile using cabal, but no error message shows up. Cabal just silently exits with <code>exit code 127</code> (Mac OS X, happens in 10.6 and 10.8, only these 2 platforms tested; GHC 7.4.2).</p>
  
  <p><strong>EDIT</strong> Output of <code>cabal build -v3</code>:</p>
  
  <pre><code>&gt;&gt;&gt; cabal build -v3
  Using internal setup method with build-type Simple and args:
  ["build","--verbose=3"]
  creating dist/build
  creating dist/build/autogen
  Building java-bindings-1.0...
  Preprocessing library java-bindings-1.0...
  Building library...
  creating dist/build
  ("/usr/bin/ghc",["--make","-package-name","java-bindings-1.0","-v","-hide-all-packages","-fbuilding-cabal-package","-i","-idist/build","-i.","-idist/build/autogen","-Idist/build/autogen","-Idist/build","-optP-include","-optPdist/build/autogen/cabal_macros.h","-odir","dist/build","-hidir","dist/build","-stubdir","dist/build","-package-id","base-4.5.1.0-81d626fb996bc7e140a3fd4481b338cd","-package-id","java-bridge-0.20130602-5cb59a7e71733b25cf4b8a8ae649598b","-O","-XHaskell98","Java.Applet", (references to the other modules)
  /usr/bin/ghc returned ExitFailure 127
  </code></pre>
  
  <p>Now that I see that output I believe it maybe is the number of command line arguments that are being passed to ghc - I believe there is a maximum length imposed by the operating system... Is there a way to circumvent this limitation?</p>