Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] computer locks up everytime I do emerge update
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
maybl8
n00b
n00b


Joined: 06 Feb 2024
Posts: 16

PostPosted: Tue Aug 06, 2024 1:27 am    Post subject: [SOLVED] computer locks up everytime I do emerge update Reply with quote

Just installed gentoo to a Virtualbox which files are stored on a usb ssd drive.
I don't think that has anything to do with the issue but i'm not sure.
Trying to update with emerge commands at some point during the update it just stops and I have to shut down the vm and start it up again.
It seems to consistently have and issue with gcc as best as I can tell.
One question I have is . If the USE entries are not right could that cause it to stop?
Also is there a standard USE variable that you should start with?
I'm trying to figure out how to get the results of emerge --info in this post.


Last edited by maybl8 on Tue Aug 06, 2024 6:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 3035

PostPosted: Tue Aug 06, 2024 2:02 am    Post subject: Re: computer locks up everytime I do emerge update Reply with quote

maybl8 wrote:
Just installed gentoo to a Virtualbox which files are stored on a usb ssd drive....
Trying to update with emerge commands at some point during the update it just stops and I have to shut down the vm and start it up again....

What is the configuration of your vm? Maybe it does not have enough memory allocated. You need the same amount of RAM as for a physical machine, if not more. Decent performance at least 8GB real RAM allocated for the vm, 16GB if you can.
Back to top
View user's profile Send private message
maybl8
n00b
n00b


Joined: 06 Feb 2024
Posts: 16

PostPosted: Tue Aug 06, 2024 2:30 am    Post subject: Reply with quote

It is a 16GB host ram and gentoo vm is 8GB
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20334

PostPosted: Tue Aug 06, 2024 3:36 am    Post subject: Reply with quote

maybl8 wrote:
Just installed gentoo to a Virtualbox which files are stored on a usb ssd drive.
How is the USB SSD driver powered? If you are relying on hub power, try an external power source. That is often a problem.

maybl8 wrote:
I'm trying to figure out how to get the results of emerge --info in this post.
wgetpaste is generally the easiest.

maybl8 wrote:
Also is there a standard USE variable that you should start with?
The defaults. If you don't have a reason you understand to change them, then don't. You can select a relevant profile to help. For example, a "desktop" profile. Use it for a desktop, or avoid it to not enable desktop USE flags such as KDE or Gnome related items.

maybl8 wrote:
One question I have is . If the USE entries are not right could that cause it to stop?
It seems highly unlikely that it would cause the problem you describe.

Have you changed any USE flags? If so, what?
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
lars_the_bear
Guru
Guru


Joined: 05 Jun 2024
Posts: 364

PostPosted: Tue Aug 06, 2024 7:28 am    Post subject: Re: computer locks up everytime I do emerge update Reply with quote

maybl8 wrote:

Trying to update with emerge commands at some point during the update it just stops and I have to shut down the vm and start it up again.


I also find that extended compilation causes Gentoo to crash on VirtualBox. The behaviour, for me, is not deterministic -- sometimes I can get a successful compilation if I retry the operation. But sometimes I can't.

The problem could be related to resources. Unfortunately, the machines I run VirtualBox on are machines I use for business. They have plenty of RAM, but I'm using most of it for work. I usually set my Gentoo VMs to 8Gb; conceivably that's not enough.

Because I don't plan on using Gentoo on VirtualBox in the long term, I haven't really bothered to investigate further.

BR, Lars.
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1622
Location: Germany

PostPosted: Tue Aug 06, 2024 8:05 am    Post subject: Re: computer locks up everytime I do emerge update Reply with quote

maybl8 wrote:
I'm trying to figure out how to get the results of emerge --info in this post.

https://wiki.gentoo.org/wiki/Wgetpaste can help with that.
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
maybl8
n00b
n00b


Joined: 06 Feb 2024
Posts: 16

PostPosted: Tue Aug 06, 2024 11:01 am    Post subject: Reply with quote

I ran the following command and it completed successfully.

Code:
emerge --ask --quiet --update --changed-use --deep @world


To answer some of your questions.

The usb ssd is plugged directly to the usb 3.0 port on the laptop not through a powered hub.

https://bpa.st/ZQVQ
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20334

PostPosted: Tue Aug 06, 2024 3:38 pm    Post subject: Reply with quote

Consider trying a powered hub.

If that's not an easy option, try using Gentoo provided binaries:

https://wiki.gentoo.org/wiki/Project:Toolchain/23.0_update_table
https://wiki.gentoo.org/wiki/Gentoo_Binary_Host_Quickstart

Keep in min that gcc-14 isn't a Gentoo "stable" package. Try gcc-13 if you can.

Since lars_the_bear also reports issues with VirtualBox, it could be resource constraints. Though since you only have makeopts -j1 set, that seems less likely to be the issue unless you don't have much RAM allocated.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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