Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
qtwebengine compile fails
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
jankom
Guru
Guru


Joined: 30 Aug 2021
Posts: 333
Location: USA

PostPosted: Mon Sep 23, 2024 10:31 am    Post subject: qtwebengine compile fails Reply with quote

Hello,
I try to solve Gentoo problems myself, but am not proficient enough to help others yet. However, this time I'm stuck and need help.
I update my system every 2 to 3 months, last time was in June, this year (2024). Compiling all packages took more than 3 days, but finally qtwebengine failed. It was among last 3 of 341 packages. tried again, now with only 3 packages left, and in about 20 hours qtwebengine failed again after completing almost all of the [30117} tasks. The failure was a ninja.
Presently compiling again with "bindist" use flag enabled, and after 3 hours I'm, at [8066/30117].
Any ideas, please?
jankom
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31199
Location: here

PostPosted: Mon Sep 23, 2024 11:13 am    Post subject: Reply with quote

You should share the build.log and your emerge --info.
Without any information is hard to help you.
Check your dmesg to see if the problem could be an out of memory error.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
jankom
Guru
Guru


Joined: 30 Aug 2021
Posts: 333
Location: USA

PostPosted: Mon Sep 23, 2024 11:49 am    Post subject: Reply with quote

Here is part of the failure message
Code:
 * Messages for package dev-qt/qtwebengine-6.7.2:
 * Log file: /var/log/portage/log/dev-qt:qtwebengine-6.7.2:20240920-030743.log

 * Amount of main memory is insufficient, but amount
 * of main memory combined with swap is sufficient.
 * Build process may make computer very slow!
 * ERROR: dev-qt/qtwebengine-6.7.2::gentoo failed (compile phase):
 *   ninja -v -j4 -l0 failed
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 3589:  Called cmake_src_compile
 *   environment, line 1656:  Called cmake_build
 *   environment, line 1623:  Called eninja
 *   environment, line 2105:  Called die
 * The specific snippet of code:
 *       "$@" || die -n "${*} failed"
I was checking memory state and sometimes swap was used but not all. dmsg has already lot more entries.
Compiling still proceeding, now at [12920/30117]
Thanks
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2820

PostPosted: Mon Sep 23, 2024 12:00 pm    Post subject: Reply with quote

The build process usually does not use "that much" ram but there are occasional sudden spikes in usage and that's where it may fail. ebuild may say it's sufficient w/ swap, but that's an approximation and does not account for other things using ram at same time.

May want to check "dmesg"'s output, if haven't rebooted since last failure then it may mention having run out of memory.

If it's not ram, will ideally need the full build.log to know what happened. The bottom part is not saying much beside "something went wrong earlier on" and "here are the things you should provide if need support".

Note that there's also the option to just a binpkg of it, which tend to be a good idea for low end hardware that needs more than 3-4 hours to painfully compile this.
https://wiki.gentoo.org/wiki/Gentoo_Binary_Host_Quickstart
https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64/dev-qt/qtwebengine/

One downside of binpkgs is that you'll be forced to enable USE=bindist which disables proprietary codecs (e.g. can't play h264 videos), albeit youtube and such has vp9/av1/opus free alternatives nowadays. Not that it matters if not going to browse the web with qtwebengine either way.
Back to top
View user's profile Send private message
eschwartz
Developer
Developer


Joined: 29 Oct 2023
Posts: 162

PostPosted: Mon Sep 23, 2024 1:56 pm    Post subject: Reply with quote

jankom wrote:
Here is part of the failure message



Unfortunately, that's the only part that doesn't contain the failure message.

Please post the *entire* /var/log/portage/log/dev-qt:qtwebengine-6.7.2:20240920-030743.log
Back to top
View user's profile Send private message
jankom
Guru
Guru


Joined: 30 Aug 2021
Posts: 333
Location: USA

PostPosted: Tue Sep 24, 2024 7:41 am    Post subject: Progress report Reply with quote

Still compiling, after about 24 hours: [24553/30117]. Will report if success or requested additional info if failure. Thank you all for your interest in helping - jankom
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2224

PostPosted: Tue Sep 24, 2024 11:30 am    Post subject: Re: Progress report Reply with quote

Ionen wrote:
The build process usually does not use "that much" ram but there are occasional sudden spikes in usage and that's where it may fail.


Yes, I've observed such behavior both for qtwebengine and comparable versions of chromium. What I used to do back then, I think it was the times of double digit chromium major versions was, to create a zram device and put swap there. This would save me from such situations. It would trade CPU time for memory, but it has it's limits of course. What should be considered is that zram takes 10 percent of the configured maximum size just to maintain an empty device.

It could save me from those sudden spikes which happen when more GCC/clang processes overlap in their high memory consumption stages. Back then I had an HDD so swap was highly undesirable as it could render the computer unresponsive.

jankom wrote:
Still compiling, after about 24 hours: [24553/30117]. Will report if success or requested additional info if failure. Thank you all for your interest in helping - jankom


What's stopping you from using the binhost, at least for that particular package? If you don't want to configure a binhost, you can download the binary packages and use them locally too.

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


Joined: 30 Aug 2021
Posts: 333
Location: USA

PostPosted: Tue Sep 24, 2024 1:32 pm    Post subject: Reply with quote

Quote:
What's stopping you from using the binhost, at least for that particular package?
That'll be my next step.
When I do occasional system updates I do
Code:
eix-sync
emerge -avuND --with-bdeps=y @world
then would continue with six more commands. I'm still at the "emerge -avUND..." step that failed after updating 338 of 341 packages. This is when I posted my first cry for help - while making another attempt by modifying /etc/portage/package.use file by adding a line
Code:
dev-qt/qtwebengine bindist
The "emerge -avUND..." process is still running, now at [27941/30117]. Hopefully soon if fails or finishes with the remaining two other packages.
I thought adding the bindist use flag in package.use file would make a difference. There was one other thing different: previously I was using ovpn to a remote server connecting to the outside world (Internet) on top of the Internet access via local ISP. I did find that sometimes during the compile process my ovpn connection stopped. This time I'm connecting to Internet without ovpn. But this could just a red herring.
xosview shows me the 4 cpu-s, the memory, swap and page activity, and so far everything is within normal operating conditions.

Will see...
jankom
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2224

PostPosted: Tue Sep 24, 2024 1:54 pm    Post subject: Reply with quote

jankom wrote:
Quote:
What's stopping you from using the binhost, at least for that particular package?
That'll be my next step.
When I do occasional system updates I do
Code:
eix-sync
emerge -avuND --with-bdeps=y @world


This is where I lost you.

jankom wrote:
while making another attempt by modifying /etc/portage/package.use file by adding a line
Code:
dev-qt/qtwebengine bindist


Here my suspicion that you're not talking about binary packages and binhost gets stronger.

jankom wrote:
I thought adding the bindist use flag in package.use file would make a difference. There was one other thing different: previously I was using ovpn to a remote server connecting to the outside world (Internet) on top of the Internet access via local ISP. I did find that sometimes during the compile process my ovpn connection stopped. This time I'm connecting to Internet without ovpn. But this could just a red herring.


It is because the bindist flag has nothing to do with what you think:

Code:
 + + bindist       : Flag to enable or disable options for prebuilt (GRP)
                     packages (eg. due to licensing issues)


Those are components which are distributed as binaries, not a binary package for qtwebengine itself.

Here's how you use binary packages the easiest way: https://wiki.gentoo.org/wiki/Gentoo_Binary_Host_Quickstart

In addition to that I suggested you could download individual packages from the url mentioned in the wiki page, if you don't want to configure a binhost.

There's one other page that I wonder why isn't included in the wiki: https://www.gentoo.org/news/2024/02/04/x86-64-v3.html

p.s. I guess this --with-bdeps=y is also a misunderstanding. In this query it would default to yes either way. Would you mention what you think you're doing with it?

Best Regards,
Georgi
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