Summary: | dev-db/mysql-connector-c: When LLD is installed package fails to link | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Matthew Dawson <matthew> |
Component: | Current packages | Assignee: | Gentoo Linux MySQL bugs team <mysql-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ionen, jnerin, sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=710272 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 331933, 731004 |
Description
Matthew Dawson
2021-03-13 19:05:49 UTC
The failure happens because you also have -ggdb3, otherwise lld works on x86 (either native or abi_x86_32). But the added -fuse-ld=lld not respecting users' settings is its own issue. It seems to be a default as long as LTO is not enabled. (In reply to Ionen Wolkens from comment #1) > The failure happens because you also have -ggdb3, otherwise lld works on x86 > (either native or abi_x86_32). True, though I don't think that option should break packages normally? Also in case anyone else stumbles on this bug, this occurred when I tested just -g. > > But the added -fuse-ld=lld not respecting users' settings is its own issue. > It seems to be a default as long as LTO is not enabled. What would be the best way to fix this issue then? Would it make sense to have a use flag like "lld" that enables/disables this option, along with an appropriate dependency? The CMake file already has the necessary bits, and I could try to make a patch for the ebuild if that's the case. *** This bug has been marked as a duplicate of bug 710272 *** The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8da48ae6ee2878605bd985a9be773a095c03203 commit a8da48ae6ee2878605bd985a9be773a095c03203 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-12-18 06:56:05 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-12-18 06:56:05 +0000 dev-db/mysql-connector-c: fix automagic LLD usage The build system automagically uses LLD (via -fuse-ld=lld) when gcc + no LTO. Fix that. Closes: https://bugs.gentoo.org/710272 Closes: https://bugs.gentoo.org/775845 Signed-off-by: Sam James <sam@gentoo.org> dev-db/mysql-connector-c/mysql-connector-c-8.0.32-r1.ebuild | 2 ++ 1 file changed, 2 insertions(+) |