Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] www-client/firefox-128.4.0 fail to merge
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
Fitap
Guru
Guru


Joined: 13 Mar 2011
Posts: 451
Location: Rosario, Argentina

PostPosted: Fri Nov 01, 2024 3:12 pm    Post subject: [Solved] www-client/firefox-128.4.0 fail to merge Reply with quote

Hi there,
Here you are the log www-client/firefox-128.4.0


Last edited by Fitap on Sat Nov 02, 2024 12:34 am; edited 1 time in total
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2528

PostPosted: Fri Nov 01, 2024 3:24 pm    Post subject: Reply with quote

Code:
8 6:13.60 x86_64-pc-linux-gnu-g++: fatal error: Killed signal terminated program cc1plus


Most likely OOM killed the process. What does this say:

Code:
dmesg | grep oom


Try with capital OOM as well as I don't remember which case it exactly is.

What are your MAKEOPTS as well as EMERGE_DEAFULT_OPTS?

Share your emerge --info

You may try to resume it with

Code:
FEATURES="keepwork" emerge --resume


but if there are more packages scheduled, terminate after firefox and resume without keepwork. Then manually clean your /var/tmp/portage or whatever PORTAGE_TMPDIR is.

Best Regards,
Georgi
Back to top
View user's profile Send private message
Frautoincnam
Guru
Guru


Joined: 19 May 2017
Posts: 330

PostPosted: Fri Nov 01, 2024 5:31 pm    Post subject: Re: www-client/firefox-128.4.0 fail to merge Reply with quote

Fitap wrote:
Hi there,
Here you are the log www-client/firefox-128.4.0

Same here.
bug filled
Not a memory space problem
Code:
$ LANG=C free -g
               total        used        free      shared  buff/cache   available
Mem:              31           7           7           0          16          23
Swap:             32           0          31


Edit:
I could emerge it with FEATURES="-distcc"
Back to top
View user's profile Send private message
flysideways
Guru
Guru


Joined: 29 Jan 2005
Posts: 499

PostPosted: Fri Nov 01, 2024 8:52 pm    Post subject: Reply with quote

I just finished an update on an 8GB Pi 5 with -j4 set, it did go to swap during the firefox emerge and it took 50% longer than the prior firefox emerges. It showed 1.6GB in swap.

Code:
funf ~ # qlop -mtv firefox
2024-02-24T01:24:38 >>> www-client/firefox-115.8.0: 1:55:33
2024-03-23T04:19:30 >>> www-client/firefox-115.9.0: 2:00:47
2024-03-25T07:46:53 >>> www-client/firefox-115.9.1: 2:00:34
2024-04-17T06:12:41 >>> www-client/firefox-115.10.0: 2:03:27
2024-06-02T03:29:18 >>> www-client/firefox-115.11.0: 1:51:02
2024-08-10T08:11:16 >>> www-client/firefox-128.1.0: 2:06:02
2024-09-03T07:40:55 >>> www-client/firefox-128.2.0: 2:05:07
2024-09-28T11:27:22 >>> www-client/firefox-128.2.0: 2:06:00
2024-10-06T17:08:48 >>> www-client/firefox-128.3.0: 1:53:05
2024-10-11T17:21:46 >>> www-client/firefox-128.3.1: 1:53:29
2024-11-01T12:02:44 >>> www-client/firefox-128.4.0: 3:08:46
Back to top
View user's profile Send private message
Fitap
Guru
Guru


Joined: 13 Mar 2011
Posts: 451
Location: Rosario, Argentina

PostPosted: Fri Nov 01, 2024 10:28 pm    Post subject: Reply with quote

logrusx wrote:
Code:
8 6:13.60 x86_64-pc-linux-gnu-g++: fatal error: Killed signal terminated program cc1plus


Most likely OOM killed the process. What does this say:

Code:
dmesg | grep oom


Try with capital OOM as well as I don't remember which case it exactly is.

What are your MAKEOPTS as well as EMERGE_DEAFULT_OPTS?

Share your emerge --info

You may try to resume it with

Code:
FEATURES="keepwork" emerge --resume


but if there are more packages scheduled, terminate after firefox and resume without keepwork. Then manually clean your /var/tmp/portage or whatever PORTAGE_TMPDIR is.

Best Regards,
Georgi



Thanks logrusx

emerge --info

dmesg | grep oom
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22875

PostPosted: Fri Nov 01, 2024 10:47 pm    Post subject: Reply with quote

As logrusx suspected, dmesg shows that various processes, including compiler processes, were killed due to out-of-memory. You do not have sufficient virtual memory to run this build with these settings. Add more virtual memory, or run fewer programs at once. The latter is likely easier.
Back to top
View user's profile Send private message
Fitap
Guru
Guru


Joined: 13 Mar 2011
Posts: 451
Location: Rosario, Argentina

PostPosted: Fri Nov 01, 2024 11:25 pm    Post subject: Re: www-client/firefox-128.4.0 fail to merge Reply with quote

Frautoincnam wrote:
Fitap wrote:
Hi there,
Here you are the log www-client/firefox-128.4.0

Same here.
bug filled
Not a memory space problem
Code:
$ LANG=C free -g
               total        used        free      shared  buff/cache   available
Mem:              31           7           7           0          16          23
Swap:             32           0          31


Edit:
I could emerge it with FEATURES="-distcc"


Thanks Frautoincnam for response.

Did added "-distcc" in FEATURES but I get same issue.
Back to top
View user's profile Send private message
Fitap
Guru
Guru


Joined: 13 Mar 2011
Posts: 451
Location: Rosario, Argentina

PostPosted: Sat Nov 02, 2024 12:34 am    Post subject: Reply with quote

Hu wrote:
As logrusx suspected, dmesg shows that various processes, including compiler processes, were killed due to out-of-memory. You do not have sufficient virtual memory to run this build with these settings. Add more virtual memory, or run fewer programs at once. The latter is likely easier.


Ok.

Code:
MAKEOPTS="-j6"
PORTAGE_TMPDIR="/var/tmp/notmpfs"
 
Back to top
View user's profile Send private message
Juippisi
Developer
Developer


Joined: 30 Sep 2005
Posts: 758
Location: /home

PostPosted: Sat Nov 02, 2024 6:41 am    Post subject: Reply with quote

Note that we flipped the default use flag +clang off for these releases and it now uses GCC by default to build. GCC does take more memory than clang, although the real difference should come when +lto is enabled (and in your case it's not). However you can most likely get away using less memory if you enable +clang on firefox on your own. There's also the jumbo-build use flag which will help reducing memory usage if you turn it off, but it'll drastically increase the compilation time of firefox too.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2528

PostPosted: Sat Nov 02, 2024 8:12 am    Post subject: Reply with quote

There is a file merge limit, for jumbo-build. Even values like 10 or 15 give huge difference. You should be able to dig it in the forums.

Best Regards,
Georgi
Back to top
View user's profile Send private message
Juippisi
Developer
Developer


Joined: 30 Sep 2005
Posts: 758
Location: /home

PostPosted: Sun Nov 03, 2024 6:33 am    Post subject: Reply with quote

logrusx wrote:

There is a file merge limit, for jumbo-build. Even values like 10 or 15 give huge difference. You should be able to dig it in the forums.


In Firefox's case, it's "FILES_PER_UNIFIED_FILE" env variable for fine-tuning. I wouldn't touch it though: https://bugs.gentoo.org/905431 (at least don't make bug reports if you change it)

Just toggling jumbo-build on/off makes a huge difference on its own.
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