Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>What is happening is that the kernel is killing the <code>ld</code> linker process because it is using too much memory.</p> <p>The reason <code>ld</code> is using so much memory is because of a feature called "split objs" which has the consequence that standard libraries like <code>libHSbase.a</code> contain 10s of thousands of tiny little <code>.o</code> files. The linker is not optimised for this use-case and ends up using a lot of memory.</p> <p>The "split objs" feature is intended to make compiled programs much smaller by linking in only the bits of the standard libraries that are actually used. It works by splitting each compiled Haskell module into a separate <code>.o</code> file for each function.</p> <p>So this is obviously a problem for systems with less memory, like your netbook. It is likely to happen with anything you link, not just <code>cabal</code>. It is possible to build ghc from source with the splitobjs feature turned off. For example, Gentoo does this automatically for machines with 512Mb of RAM or less. So if you want to use ghc reliably on your netbook you'll probably need to <a href="http://hackage.haskell.org/trac/ghc/wiki/Building/Hacking" rel="noreferrer">build it from source</a> without <a href="http://hackage.haskell.org/trac/ghc/wiki/Building/Using#Commonbuild.mkoptions" rel="noreferrer">splitobjs</a>. You can build ghc on a slightly more powerful machine and then transfer it to your netbook.</p> <p>In future this problem will go away when we switch to using shared libraries by default on Linux.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload