Trying to build from the darcs repository
Simon Marlow
marlowsd at gmail.com
Mon Jan 25 07:22:28 EST 2010
On 24/01/2010 13:51, Marco Túlio Gontijo e Silva wrote:
> Hi Florian.
>
> Dom, 2010-01-24 às 13:10 +0100, Florian Weimer escreveu:
>> How much memory does GHC need to build on amd64 GNU/Linux? I'm trying
>> to build from the darcs repository, and this command
>>
>> "inplace/bin/ghc-stage1" -H32m -O -package-name terminfo-0.3.1.1
>> -hide-all-packages -i ilibraries/terminfo/.
>> --ilibraries/terminfo/dist-install/build
>> -ilibraries/terminfo/dist-install/build/autogen
>> -Ilibraries/terminfo/dist-install/build
>> -Ilibraries/terminfo/dist-install/build/autogen
>> --Ilibraries/terminfo/. optP-include
>> -optPlibraries/terminfo/dist-install/build/autogen/cabal_macros.h
>> -package base-4.2.0.0 -package extensible-exceptions-0.1.1.1
>> -split-objs -Wall -XForeignFunctionInterface -XDeriveDataTypeable
>> -XEmptyDataDecls -XScopedTypeVariables -XFlexibleInstances -O2
>> -XGenerics -fno-warn-deprecated-flags -odir
>> -libraries/terminfo/dist-install/build -hidir
>> -libraries/terminfo/dist-install/build -stubdir
>> -libraries/terminfo/dist-install/build -hisuf hi -osuf o -hcsuf hc
>> --c libraries/terminfo/./System/Console/Terminfo/Effects.hs -o
>> -libraries/terminfo/dist-install/build/System/Console/Terminfo/Effects.o
>>
>> needs more than 3.5 GB of RAM.
>
> I guess this is related to
> http://hackage.haskell.org/trac/ghc/ticket/3831 .
For now, I think you want to use -O rather than -O2 for building the
libraries (GhcLibHcOpts in mk/build.mk) until we can figure out what's
going on in #3831.
Cheers,
Simon
More information about the Glasgow-haskell-users
mailing list