Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ninja fails during emerging qtwebengine.
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
dudleyd
n00b
n00b


Joined: 03 Apr 2023
Posts: 15
Location: Michigan

PostPosted: Fri Apr 07, 2023 2:26 am    Post subject: ninja fails during emerging qtwebengine. Reply with quote

Trying to emerge kcontact into kde, which requires qtwebengine.

Anyone else having a problem doing that?

Brand new machine,
Been a bear to get Gentoo installed (think I'm about to reach completion, though).
When I get down to qtwebengine, it shows that 'ninja' failed to compile.

Will get all the data together tomorrow, but though I'd ask the 'obvious' question to see if I'm just the lucky one-
_________________
David Dudley
Facility for Rare Isotope Beamlines
Michigan State University
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4243
Location: Bavaria

PostPosted: Fri Apr 07, 2023 3:35 am    Post subject: Re: ninja fails during emerging qtwebengine. Reply with quote

dudleyd wrote:
When I get down to qtwebengine, it shows that 'ninja' failed to compile.

In most cases we had in the past it fails because of a too high MAKEOPTS in your /etc/portage/make.conf which leads to an OOM (out of memory).
How much RAM do you have in your system ? What is your MAKEOPTS value ?

(Of course there exists other reasons also; this is only the most probable)

(Maybe you want read this:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Optimize_compile_times
Back to top
View user's profile Send private message
rab0171610
Guru
Guru


Joined: 24 Dec 2022
Posts: 304

PostPosted: Fri Apr 07, 2023 3:36 am    Post subject: Reply with quote

To answer your query, I just installed kde-frameworks/kcontacts. It compiled and installed correctly without error on my machine.
We would definitely need more info about which package you are trying to install (i.e. kde-frameworks/kcontacts, kde-apps/kontact) as kcontact (singular) is not really a package name. I am assuming you meant the former.
It would be helpful to know what exact package you are referring to, the build log, emerge --info etc. The ninja output you are referring to is not probably the actual error. It is simply telling you the buiild system (ninja) failed to build the package at a certain point. The build log will give us info to help you troubleshoot.
Back to top
View user's profile Send private message
dudleyd
n00b
n00b


Joined: 03 Apr 2023
Posts: 15
Location: Michigan

PostPosted: Fri Apr 07, 2023 12:06 pm    Post subject: Re: ninja fails during emerging qtwebengine. Reply with quote

pietinger wrote:
dudleyd wrote:
When I get down to qtwebengine, it shows that 'ninja' failed to compile.

In most cases we had in the past it fails because of a too high MAKEOPTS in your /etc/portage/make.conf which leads to an OOM (out of memory).
How much RAM do you have in your system ? What is your MAKEOPTS value ?

(Of course there exists other reasons also; this is only the most probable)

(Maybe you want read this:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Optimize_compile_times


The box has 64GB ram, a 16-core 4.5GHz AMD Ryzen, and 44TB of storage. It is hoped to use eventually in our experimental network, but so far..... not sure.

Later-
_________________
David Dudley
Facility for Rare Isotope Beamlines
Michigan State University
Back to top
View user's profile Send private message
dudleyd
n00b
n00b


Joined: 03 Apr 2023
Posts: 15
Location: Michigan

PostPosted: Fri Apr 07, 2023 12:08 pm    Post subject: Reply with quote

OPS, forgot to answer the question...

MAKEOPTS is not defined in the /etc/portage/make.conf file. Is there a 'default' value for it, or is there a value it should normally be preset to?
_________________
David Dudley
Facility for Rare Isotope Beamlines
Michigan State University
Back to top
View user's profile Send private message
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 922
Location: Romania

PostPosted: Fri Apr 07, 2023 12:38 pm    Post subject: Reply with quote

dudleyd wrote:
OPS, forgot to answer the question...

MAKEOPTS is not defined in the /etc/portage/make.conf file. Is there a 'default' value for it, or is there a value it should normally be preset to?

You should set your MAKEOPTS, as you have quite a powerful system.
I set it to the number of threads I have, which on my cpu is also the number of cores, which is 4.
_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
dudleyd
n00b
n00b


Joined: 03 Apr 2023
Posts: 15
Location: Michigan

PostPosted: Fri Apr 07, 2023 7:07 pm    Post subject: Reply with quote

I set MAKEOPTS="-j8" and things all worked and installed correctly.

I had assumed that if I said 'emerge --jobs=8 ..." that would do the same thing, but apparently it doesn't.

One more thing I have learned about this system...
_________________
David Dudley
Facility for Rare Isotope Beamlines
Michigan State University
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21709

PostPosted: Fri Apr 07, 2023 7:13 pm    Post subject: Reply with quote

emerge --jobs=8 can merge up to 8 packages in parallel, each of which is given a private copy of $MAKEOPTS.
Back to top
View user's profile Send private message
dudleyd
n00b
n00b


Joined: 03 Apr 2023
Posts: 15
Location: Michigan

PostPosted: Fri Apr 07, 2023 9:40 pm    Post subject: Reply with quote

Hu wrote:
emerge --jobs=8 can merge up to 8 packages in parallel, each of which is given a private copy of $MAKEOPTS.


OK, so thats not the same as -j in make (or ninja).
_________________
David Dudley
Facility for Rare Isotope Beamlines
Michigan State University
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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