I keep getting segfaults, so I created a swap partition like this:
root@lianro:~/# dd if=/dev/zero of=/swap bs=1M count=1024 root@linaro:~/# mkswap -c /swap root@linaro:~/# swapon /swap
It got better; instead of breaking randomly after about one minute it breaks randomly after a long time, last time it almost finished but I got a segfault on one of the last modules.
Swap doesn't seem to be used at all at any point during the compilation. I have plenty of disk space free.
What can be the problem?