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
Please include the full build.log and emerge --info.
Created attachment 862135 [details] emerge --info
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.
Created attachment 862146 [details] build.log
(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.
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):
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(-)
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.
(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.
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(+)