View previous topic :: View next topic |
Author |
Message |
dudleyd n00b
Joined: 03 Apr 2023 Posts: 15 Location: Michigan
|
Posted: Fri Apr 07, 2023 2:26 am Post subject: ninja fails during emerging qtwebengine. |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4243 Location: Bavaria
|
Posted: Fri Apr 07, 2023 3:35 am Post subject: Re: ninja fails during emerging qtwebengine. |
|
|
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 |
|
|
rab0171610 Guru
Joined: 24 Dec 2022 Posts: 304
|
Posted: Fri Apr 07, 2023 3:36 am Post subject: |
|
|
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 |
|
|
dudleyd n00b
Joined: 03 Apr 2023 Posts: 15 Location: Michigan
|
Posted: Fri Apr 07, 2023 12:06 pm Post subject: Re: ninja fails during emerging qtwebengine. |
|
|
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 |
|
|
dudleyd n00b
Joined: 03 Apr 2023 Posts: 15 Location: Michigan
|
Posted: Fri Apr 07, 2023 12:08 pm Post subject: |
|
|
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 |
|
|
stefan11111 l33t
Joined: 29 Jan 2023 Posts: 922 Location: Romania
|
Posted: Fri Apr 07, 2023 12:38 pm Post subject: |
|
|
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 |
|
|
dudleyd n00b
Joined: 03 Apr 2023 Posts: 15 Location: Michigan
|
Posted: Fri Apr 07, 2023 7:07 pm Post subject: |
|
|
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 |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21709
|
Posted: Fri Apr 07, 2023 7:13 pm Post subject: |
|
|
emerge --jobs=8 can merge up to 8 packages in parallel, each of which is given a private copy of $MAKEOPTS. |
|
Back to top |
|
|
dudleyd n00b
Joined: 03 Apr 2023 Posts: 15 Location: Michigan
|
Posted: Fri Apr 07, 2023 9:40 pm Post subject: |
|
|
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 |
|
|
|