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
Assignee: Ultrabug
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-05-21 17:31 UTC by Hypoon
Modified: 2024-07-23 13:39 UTC (History)
2 users (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(-)
Comment 8 Gerald 2024-07-15 08:38:01 UTC
The --force-job commandline option that was added here to mongodb-5.0.16-r1.ebuild is not no longer present in the current ebuild mongodb-5.0.26.ebuild and therefor the bug is back again if you have a -jX compile option that is higher than your cpu cores.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-16 04:26:04 UTC
(In reply to Gerald from comment #8)
> The --force-job commandline option that was added here to
> mongodb-5.0.16-r1.ebuild is not no longer present in the current ebuild
> mongodb-5.0.26.ebuild and therefor the bug is back again if you have a -jX
> compile option that is higher than your cpu cores.

See bug 935274.
Comment 10 Larry the Git Cow gentoo-dev 2024-07-23 13:39:43 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cb2a60e04e1c57b68645f7f954e1af507b01283

commit 3cb2a60e04e1c57b68645f7f954e1af507b01283
Author:     Azamat H. Hackimov <azamat.hackimov@gmail.com>
AuthorDate: 2024-07-23 13:24:08 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-07-23 13:39:16 +0000

    dev-db/mongodb: fix configure with --jobs option
    
    Reapply fix from #906897.
    
    Bug: https://bugs.gentoo.org/906897
    Closes: https://bugs.gentoo.org/935274
    
    Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/37686
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-db/mongodb/mongodb-5.0.26.ebuild | 1 +
 1 file changed, 1 insertion(+)