Installing wx via cabal

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Installing wx via cabal

Kolář Dušan
Dear all,

   Running cabal install --global wx stops very soon with the following
error.

Building wxcore-0.12.1.2...
[ 1 of 22] Compiling Graphics.UI.WXCore.WxcObject (
src/haskell/Graphics/UI/WXCore/WxcObject.hs,
dist/build/Graphics/UI/WXCore/WxcObject.o )
[ 2 of 22] Compiling Graphics.UI.WXCore.WxcDefs (
src/haskell/Graphics/UI/WXCore/WxcDefs.hs,
dist/build/Graphics/UI/WXCore/WxcDefs.o )
[ 3 of 22] Compiling Graphics.UI.WXCore.WxcClassTypes (
src/haskell/Graphics/UI/WXCore/WxcClassTypes.hs,
dist/build/Graphics/UI/WXCore/WxcClassTypes.o )
[ 4 of 22] Compiling Graphics.UI.WXCore.WxcTypes (
src/haskell/Graphics/UI/WXCore/WxcTypes.hs,
dist/build/Graphics/UI/WXCore/WxcTypes.o )
[ 5 of 22] Compiling Graphics.UI.WXCore.WxcClassesAL (
src/haskell/Graphics/UI/WXCore/WxcClassesAL.hs,
dist/build/Graphics/UI/WXCore/WxcClassesAL.o )
ghc: out of memory (requested 1048576 bytes)
cabal: Error: some packages failed to install:

It seems quite strange as the machine seems to have 16GB RAM and a free
swap, can I somehow put options or so? I have ghc 10.4. installed.

Thanks

   Dusan

_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: Installing wx via cabal

Jeremy O'Donoghue
Hi Dusan,

I've never seen this problem, and I have far less than 16GB (it works
for me on a 2MB Windows XP laptop). One thing I have never tried is
compiling on a 64 bit system.

Can you tell me any more about your system (Windows/Mac/Linux, 32 or 64
bit OS). GHC 6.10.4 (which is the version I assume you mean) is supposed
to be supported.

You can mail me off-list to investigate further, as details may not be
so interesting to list subscribers. If we find anything significant, we
can post this to list later.

Regards
Jeremy

On Mon, 22 Feb 2010 08:57 +0100, "Dušan Kolář" <[hidden email]>
wrote:

> Dear all,
>
>    Running cabal install --global wx stops very soon with the following
> error.
>
> Building wxcore-0.12.1.2...
> [ 1 of 22] Compiling Graphics.UI.WXCore.WxcObject (
> src/haskell/Graphics/UI/WXCore/WxcObject.hs,
> dist/build/Graphics/UI/WXCore/WxcObject.o )
> [ 2 of 22] Compiling Graphics.UI.WXCore.WxcDefs (
> src/haskell/Graphics/UI/WXCore/WxcDefs.hs,
> dist/build/Graphics/UI/WXCore/WxcDefs.o )
> [ 3 of 22] Compiling Graphics.UI.WXCore.WxcClassTypes (
> src/haskell/Graphics/UI/WXCore/WxcClassTypes.hs,
> dist/build/Graphics/UI/WXCore/WxcClassTypes.o )
> [ 4 of 22] Compiling Graphics.UI.WXCore.WxcTypes (
> src/haskell/Graphics/UI/WXCore/WxcTypes.hs,
> dist/build/Graphics/UI/WXCore/WxcTypes.o )
> [ 5 of 22] Compiling Graphics.UI.WXCore.WxcClassesAL (
> src/haskell/Graphics/UI/WXCore/WxcClassesAL.hs,
> dist/build/Graphics/UI/WXCore/WxcClassesAL.o )
> ghc: out of memory (requested 1048576 bytes)
> cabal: Error: some packages failed to install:
>
> It seems quite strange as the machine seems to have 16GB RAM and a free
> swap, can I somehow put options or so? I have ghc 10.4. installed.
>
> Thanks
>
>    Dusan
>
> _______________________________________________
> Haskell-Cafe mailing list
> [hidden email]
> http://www.haskell.org/mailman/listinfo/haskell-cafe
--
  Jeremy O'Donoghue
  [hidden email]

_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: Installing wx via cabal

Christian Maeder-2
In reply to this post by Kolář Dušan
Dušan Kolář schrieb:
> Dear all,
>
>   Running cabal install --global wx stops very soon with the following
> error.
>
> Building wxcore-0.12.1.2...
[...]
> dist/build/Graphics/UI/WXCore/WxcClassesAL.o )
> ghc: out of memory (requested 1048576 bytes)
> cabal: Error: some packages failed to install:
>
> It seems quite strange as the machine seems to have 16GB RAM and a free
> swap, can I somehow put options or so? I have ghc 10.4. installed.

You may set the environment variable GHCRTS to allow more memory:

  export GHCRTS='-M3g'

Type "ghc +RTS -?" to see more options"

Cheers Christian

_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe