Summary: | dev-db/mongodb-4.4.{1,2}[lto] w/ sys-devel/lld installed: selected compiler does not honor -flto | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Will Lepofsky <wilscarlet> |
Component: | Current packages | Assignee: | Ultrabug <ultrabug> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ab4bd, flyser42, hydrapolic, ionen, sam |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
config.log
sconstruct-drop-linker-detection.patch |
Description
Will Lepofsky
2021-02-11 00:08:27 UTC
Created attachment 686295 [details]
config.log
scons: Configure: Checking if linker supports -flto...
...
ld.lld: error: undefined symbol: main
Seems it auto-detects ld.lld and attempts to use it, works fine if it's not installed.
Problem still exists for 4.4.4, 4.4.8, and 5.0.2. Problem still exists with version 5.0.5 as well. Created attachment 766615 [details, diff]
sconstruct-drop-linker-detection.patch
Please try the attached patch. Usually there isn't a need to keep listing affected versions though. Attaching a patch is the best way to get something moving if it seems stalled.
(In reply to Sam James from comment #4) > Created attachment 766615 [details, diff] [details, diff] > sconstruct-drop-linker-detection.patch > > Please try the attached patch. Usually there isn't a need to keep listing > affected versions though. Attaching a patch is the best way to get something > moving if it seems stalled. (untested) (In reply to Sam James from comment #4) > Created attachment 766615 [details, diff] [details, diff] > sconstruct-drop-linker-detection.patch > > Please try the attached patch. Usually there isn't a need to keep listing > affected versions though. Attaching a patch is the best way to get something > moving if it seems stalled. If I knew what to patch, I would have submitted the bug with a patch. Thanks for the patch you provided, I'll try your patch over the weekend. Did it work? The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79a3c0438c8f3885fb8d5840263b36c8ebd80f4f commit 79a3c0438c8f3885fb8d5840263b36c8ebd80f4f Author: Sam James <sam@gentoo.org> AuthorDate: 2022-06-18 17:17:37 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-06-18 17:17:41 +0000 dev-db/mongodb: don't force LLD See patch for details. Closes: https://bugs.gentoo.org/769986 Signed-off-by: Sam James <sam@gentoo.org> .../files/mongodb-4.4.10-no-force-lld.patch | 29 +++++++++++++ .../mongodb/files/mongodb-5.0.5-no-force-lld.patch | 49 ++++++++++++++++++++++ dev-db/mongodb/mongodb-4.4.10-r1.ebuild | 1 + dev-db/mongodb/mongodb-5.0.5-r2.ebuild | 1 + 4 files changed, 80 insertions(+) |