View previous topic :: View next topic |
Author |
Message |
grant123 Veteran
Joined: 23 Mar 2005 Posts: 1080
|
Posted: Sun Sep 30, 2012 8:51 am Post subject: vanilla-sources won't emerge - out of memory |
|
|
I'm trying to emerge vanilla-sources on the 256MB Beaglebone. It always fails partway through the install phase with this in dmesg:
Out of memory: Kill process 2591 (emerge) score 828 or sacrifice child
Killed process 2591 (emerge) total-vm:225676kB, anon-rss:218456kB, file-rss:0kB
Is there anything I can do to emerge vanilla-sources? |
|
Back to top |
|
|
Aquous l33t
Joined: 08 Jan 2011 Posts: 700
|
Posted: Sun Sep 30, 2012 10:22 am Post subject: |
|
|
Add more swap. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21633
|
Posted: Sun Sep 30, 2012 3:43 pm Post subject: |
|
|
Do you need to put the sources on the Beaglebone? It will likely be a very slow compilation even if you get it to work. The kernel build system has excellent support for cross-compilation, so you may be better served by using a general purpose x86/amd64 machine to cross-compile a kernel for your Beaglebone. |
|
Back to top |
|
|
grant123 Veteran
Joined: 23 Mar 2005 Posts: 1080
|
Posted: Sun Sep 30, 2012 5:28 pm Post subject: |
|
|
Not sure why I couldn't come up with that myself. Worked great, thank you. |
|
Back to top |
|
|
grant123 Veteran
Joined: 23 Mar 2005 Posts: 1080
|
Posted: Sun Sep 30, 2012 5:51 pm Post subject: |
|
|
Quote: | Do you need to put the sources on the Beaglebone? It will likely be a very slow compilation even if you get it to work. The kernel build system has excellent support for cross-compilation, so you may be better served by using a general purpose x86/amd64 machine to cross-compile a kernel for your Beaglebone. |
I've read that cross-compiling is easier said than done. I'm OK with slow compiles anyway. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Sun Sep 30, 2012 6:00 pm Post subject: |
|
|
grant123,
Thats why Gentoo provides crossdev.
If you add distcc and take care that your cross compiler is the same version as that on your beaglebone, your helper(s) can do all the heavy lifting for anything that will not cross compile. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|