Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915081 - dev-db/mongodb-5.0.16-r1 USE=-lto still uses uses lto
Summary: dev-db/mongodb-5.0.16-r1 USE=-lto still uses uses lto
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ultrabug
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-02 18:26 UTC by C. Wijtmans
Modified: 2024-01-07 07:44 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description C. Wijtmans 2023-10-02 18:26:47 UTC
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
Comment 1 C. Wijtmans 2023-10-03 18:14:00 UTC
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.
Comment 2 Larry the Git Cow gentoo-dev 2024-01-07 07:44:44 UTC
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(-)