Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emerge updating @world fails on cmake
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
lilrob2021
n00b
n00b


Joined: 30 Dec 2019
Posts: 2

PostPosted: Mon Dec 30, 2019 9:53 pm    Post subject: Emerge updating @world fails on cmake Reply with quote

I'm following the amd64 handbook and I can't get past updating @world. https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation#Updating_the_.40world_set
It failed on cmake for a very odd reason; it seems that the source may be corrupted. How may I resolve this problem? I also wonder if this is why building cmGlobalGenerator.cxx.o takes so long. http://dpaste.com/09DFYC3
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 2127
Location: Frankfurt, Germany

PostPosted: Mon Dec 30, 2019 10:17 pm    Post subject: Reply with quote

Hi lilrob2021,

welcome to the Gentoo forums!

This could be a out-of-memory error. See: https://forums.gentoo.org/viewtopic-t-1094494-start-0.html. Please reduce the number of parallel jobs (variable MAKEOPTS in /etc/portage/makle.conf).

Please post the output of
Code:
emerge --info

Mike
Back to top
View user's profile Send private message
lilrob2021
n00b
n00b


Joined: 30 Dec 2019
Posts: 2

PostPosted: Mon Dec 30, 2019 10:38 pm    Post subject: Reply with quote

mike155 wrote:
Hi lilrob2021,

welcome to the Gentoo forums!

This could be a out-of-memory error. See: https://forums.gentoo.org/viewtopic-t-1094494-start-0.html. Please reduce the number of parallel jobs (variable MAKEOPTS in /etc/portage/makle.conf).

Please post the output of
Code:
emerge --info

Mike


Hi Mike. Here is my emerge --info http://dpaste.com/2REM4ZQ
I have reduced the -j2 in MAKEOPTS to -j1. In addition, I have increased the allocated memory of the VM to 4 GB. I will report back when the update finishes again.
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 2127
Location: Frankfurt, Germany

PostPosted: Mon Dec 30, 2019 11:00 pm    Post subject: Reply with quote

Quote:
Code:
KiB Mem:     1013000 total,    668532 free
KiB Swap:          0 total,         0 free

That's definitely not enough RAM if you want to compile C++ code like cmake, Firefox, LibreOffice, etc. C++ compilers need huge amounts of RAM: up to 2 GB per job!
Back to top
View user's profile Send private message
Ionen
l33t
l33t


Joined: 06 Dec 2018
Posts: 698

PostPosted: Mon Dec 30, 2019 11:43 pm    Post subject: Reply with quote

With this little, it may be worth considering zram later, but if not planning to go for bigger c++ packages (or worse, rust), just a normal swapfile and -j1 for some packages should be enough to get you through within reason. Some of those bigger packages have -bin versions to spare you if need be.

If have the option to, compiling packages with another machine then installing them on this one would be better.

If don't need 64bit-only things, switching to a x86 profile (rather than amd64) may be preferable as well (32bit is much kinder on ram usage).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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