Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vanilla-sources won't emerge - out of memory
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1080

PostPosted: Sun Sep 30, 2012 8:51 am    Post subject: vanilla-sources won't emerge - out of memory Reply with quote

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
View user's profile Send private message
Aquous
l33t
l33t


Joined: 08 Jan 2011
Posts: 700

PostPosted: Sun Sep 30, 2012 10:22 am    Post subject: Reply with quote

Add more swap.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21489

PostPosted: Sun Sep 30, 2012 3:43 pm    Post subject: Reply with 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.
Back to top
View user's profile Send private message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1080

PostPosted: Sun Sep 30, 2012 5:28 pm    Post subject: Reply with quote

Quote:
Add more swap.

Not sure why I couldn't come up with that myself. Worked great, thank you.
Back to top
View user's profile Send private message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1080

PostPosted: Sun Sep 30, 2012 5:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54096
Location: 56N 3W

PostPosted: Sun Sep 30, 2012 6:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum