[Haskell-cafe] Failure in GHC compilation
simonpj at microsoft.com
Mon Jun 4 05:44:33 EDT 2007
I've extended the "what to look for if your build fails" section in
Please do keep adding to this page! Every time you trip over something, think about whether your experience could be used to help someone else.
| -----Original Message-----
| From: haskell-cafe-bounces at haskell.org [mailto:haskell-cafe-bounces at haskell.org] On Behalf Of Esa
| Ilari Vuokko
| Sent: 02 June 2007 21:09
| To: Monique Monteiro
| Cc: haskell-cafe at haskell.org
| Subject: Re: [Haskell-cafe] Failure in GHC compilation
| On 6/2/07, Monique Monteiro <monique.louise at gmail.com> wrote:
| > has anyone any idea about what may cause the following error in GHC
| > compilation?
| It's exactly what it says...too long argument list (it's limited in Windows.)
| This is usually caused by having split-objs on, which causes *a lot* of object
| files being generated, all of them passed to ar or ld.
| > c:\ghc\ghc-6.6.1\bin\ar.exe: creating libHSbase.a
| > xargs: c:/ghc/ghc-6.6.1/bin/ar: Argument list too long
| > make: *** [libHSbase.a] Error 126
| > make: *** Deleting file `libHSbase.a'
| > Failed making all in base: 1
| > make: *** [all] Error 1
| > make: Leaving directory `/cygdrive/c/GHC6.6.1/ghc-6.6.1/libraries'
| > make: *** [stage1] Error 2
| Untested: setting SplitObjs=NO in build.mk might help (as there will be less
| object files to pass to ar.
| If ghc head is already using cabal, this problem is solved there.
| It might also be possible to extend ghc build machinery to pass parameters
| in file for ar and ld - but that requires new enough mingw toolchain.
| Haskell-Cafe mailing list
| Haskell-Cafe at haskell.org
More information about the Haskell-Cafe