Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 906897 - dev-db/mongodb-5.0.16-r1 fails with MAKEOPTS="-jN" if N > the number of CPU cores
Summary: dev-db/mongodb-5.0.16-r1 fails with MAKEOPTS="-jN" if N > the number of CPU c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Ultrabug
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-21 17:31 UTC by Hypoon
Modified: 2023-05-23 13:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge_info,10.35 KB, text/plain)
2023-05-21 18:09 UTC, Hypoon
Details
build.log (build.log,10.41 KB, text/plain)
2023-05-21 22:02 UTC, Hypoon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hypoon 2023-05-21 17:31:30 UTC
Upgrading =dev-db/mongodb-5.0.16-r1 failed during compilation with this error message:
ERROR: Icecream not enabled while using -j higher than available cpu's. Use --force-jobs to override.

I have 8 cores / 16 threads, and I usually compile with "-j18" (I have plenty of RAM).

It sounds like either the ebuild should implement "--force-jobs", or |the ebuild should limit MAKEOPTS to the number of CPU cores.

Using package.env to set MAKEOPTS="-j16" works around the issue.

Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-21 17:33:43 UTC
Please include the full build.log and emerge --info.
Comment 2 Hypoon 2023-05-21 18:09:41 UTC
Created attachment 862135 [details]
emerge --info
Comment 3 Hypoon 2023-05-21 18:11:38 UTC
I'll reproduce the build log once my current build is finished. I didn't save the failing build log because this seemed exceptionally straightforward.
Comment 4 Hypoon 2023-05-21 22:02:56 UTC
Created attachment 862146 [details]
build.log
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-23 13:15:16 UTC
(In reply to Hypoon from comment #3)
> I'll reproduce the build log once my current build is finished. I didn't
> save the failing build log because this seemed exceptionally straightforward.

The weird thing in particular here was the mention of Icecream.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-23 13:19:09 UTC
Yeah, just an odd condition:

else:
    if (not has_option('force-jobs')
        and ('ICECC' not in env or not env['ICECC'])
        and env.GetOption('num_jobs') > cpu_count):
Comment 7 Larry the Git Cow gentoo-dev 2023-05-23 13:32:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50c1742c209ff94330d2b5642eceb4147352803c

commit 50c1742c209ff94330d2b5642eceb4147352803c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-05-23 13:22:51 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-23 13:25:04 +0000

    dev-db/mongodb: allow MAKEOPTS -jN > nproc
    
    Closes: https://bugs.gentoo.org/906897
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-db/mongodb/mongodb-5.0.16-r1.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)