Summary: | dev-db/mongodb fails to build with LTO | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Amit Prakash Ambasta <amit.prakash.ambasta> |
Component: | Current packages | Assignee: | Ultrabug <ultrabug> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jstein |
Priority: | Normal | Keywords: | EBUILD, PATCH, PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/10904 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 618550 | ||
Attachments: | mongodb-3.4.1.ebuild |
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=020f4bb69894058b9a5fc7342aaeb3fa06c9e957 commit 020f4bb69894058b9a5fc7342aaeb3fa06c9e957 Author: Tomas Mozes <hydrapolic@gmail.com> AuthorDate: 2019-01-26 05:26:46 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2019-03-04 00:47:28 +0000 dev-db/mongodb: bump to 4.0.5 Signed-off-by: Tomas Mozes <hydrapolic@gmail.com> Closes: https://bugs.gentoo.org/673776 Closes: https://bugs.gentoo.org/608688 Closes: https://bugs.gentoo.org/673512 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> dev-db/mongodb/Manifest | 1 + dev-db/mongodb/mongodb-4.0.5.ebuild | 164 ++++++++++++++++++++++++++++++++++++ 2 files changed, 165 insertions(+) |
Created attachment 462920 [details] mongodb-3.4.1.ebuild Hi, Currently, mongodb fails to emerge at all when -flto=thin or -flto are included in CFLAGS with: Compiler must support a thread local storage class for trivially constructible types This is because while mongodb supports building with LTO, it requires an additional scons argument as: scons_opts+=( --lto=on ) to be enabled. I'd recommend that the ebuilds support this feature either by detecting LTO in cflags or passing it on as a separate USE flag. I'm attaching a working ebuild alongwith for reference.