I have -flto enabled in make.conf. and USE=lto enabled. MongoDB failed to compiled with an lto1 error(process terminated for using too much RAM on swapelss system) so i tried emerging with USE=-lto however it still compiled with lto, most likely because of my make.conf. Reproducible: Always
The exact same issues occured with dev-lang/rust. The system RAM is 4GB but 3GB should be available for compiling. lto is using a ridiculous amount of RAM for some reason, probably needs a separate bug report.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e24b8b28cee24069a2314fdf0272a4f840358316 commit e24b8b28cee24069a2314fdf0272a4f840358316 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-01-07 07:43:53 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-01-07 07:44:28 +0000 dev-db/mongodb: drop USE=lto As noted in the bug (and this is why we're removing it in general unless it's useful), it has confusing semantics if the user passes -flto in their *FLAGS. After inspecting the upstream build system, the LTO build option which USE=lto wires up does nothing useful, so drop it. Closes: https://bugs.gentoo.org/915081 Signed-off-by: Sam James <sam@gentoo.org> dev-db/mongodb/mongodb-4.4.20.ebuild | 5 ++--- dev-db/mongodb/mongodb-5.0.16-r1.ebuild | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-)