Summary: | x11-terms/kitty-0.32.1: link-time error when -ggdb3 is present in CFLAGS | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | tacokoneko |
Component: | Current packages | Assignee: | Ionen Wolkens <ionen> |
Status: | RESOLVED FIXED | ||
Severity: | trivial | CC: | pabloorduna98, proxy-maint, tacokoneko, williamh |
Priority: | Low | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=924496 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge --info
/var/tmp/portage/x11-terms/kitty-0.32.1/temp/build.log emerge -pqv '=x11-terms/kitty-0.32.1::gentoo' |
Description
tacokoneko
2024-02-13 17:47:34 UTC
Created attachment 884876 [details]
/var/tmp/portage/x11-terms/kitty-0.32.1/temp/build.log
Created attachment 884877 [details]
emerge -pqv '=x11-terms/kitty-0.32.1::gentoo'
This is likely to be a bug in Go. Happens with -g3 too, but only when using gcc (fine with clang from a quick try). -g or -ggdb are fine. Suppose I could just lower the debug level as a workaround. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=548e73667bcd5682ffb9eea0d78463a5f74edb7c commit 548e73667bcd5682ffb9eea0d78463a5f74edb7c Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2024-02-13 18:20:00 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2024-02-13 18:41:21 +0000 x11-terms/kitty: workaround link failure with Go + gcc + -g(gdb)3 Not interested in pursuing a potential Go bug, so just do a workaround. May recheck now and then to see if it's not longer needed with toolchain updates. If this is a widespread issue, it may need visiting in go-env's go-env_set_compile_environment instead though. Not an issue for the non-CGO_CFLAGS bits, so can keep -g3 elsewhere. Closes: https://bugs.gentoo.org/924436 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> x11-terms/kitty/kitty-0.32.1.ebuild | 12 +++++++++++- x11-terms/kitty/kitty-0.32.2.ebuild | 12 +++++++++++- x11-terms/kitty/kitty-9999.ebuild | 12 +++++++++++- 3 files changed, 33 insertions(+), 3 deletions(-) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=116f54058abd4fa4a5b3c16ee49a99df11883a45 commit 116f54058abd4fa4a5b3c16ee49a99df11883a45 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-08-15 21:13:28 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-08-15 21:18:23 +0000 go-env.eclass: workaround debug info issues Go can't handle some DWARF produced by GCC but nobody's been able to produce a simple testcase for it, so add a workaround where we replace -g3 with -g and -ggdb3 with -ggdb for GCC, like Ionen did in Kitty. Bug: https://bugs.gentoo.org/847991 Bug: https://bugs.gentoo.org/924436 Bug: https://bugs.gentoo.org/924496 Closes: https://bugs.gentoo.org/929219 Signed-off-by: Sam James <sam@gentoo.org> eclass/go-env.eclass | 6 ++++++ 1 file changed, 6 insertions(+) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f754863ff91dc4dca11e6a5217ffd449f39c74c commit 1f754863ff91dc4dca11e6a5217ffd449f39c74c Author: Sam James <sam@gentoo.org> AuthorDate: 2024-08-15 21:23:22 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-08-15 21:24:05 +0000 go-env.eclass: improve debug workaround Use what Ionen did in x11-terms/kitty to avoid touching flags for non-Go parts of the build. Bug: https://bugs.gentoo.org/847991 Bug: https://bugs.gentoo.org/924436 Bug: https://bugs.gentoo.org/924496 Bug: https://bugs.gentoo.org/929219 Signed-off-by: Sam James <sam@gentoo.org> eclass/go-env.eclass | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5f4929e0ac3f31101d34ea8cfb5d6ecf1dc38cf commit d5f4929e0ac3f31101d34ea8cfb5d6ecf1dc38cf Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2024-08-15 23:25:59 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2024-08-16 00:04:35 +0000 x11-terms/kitty: remove redundant workaround Still an issue, but workaround is now handled by go-env.eclass. Bug: https://bugs.gentoo.org/924436 Thanks-to: Sam James <sam@gentoo.org> Signed-off-by: Ionen Wolkens <ionen@gentoo.org> x11-terms/kitty/kitty-0.34.1.ebuild | 12 +----------- x11-terms/kitty/kitty-0.35.2.ebuild | 12 +----------- x11-terms/kitty/kitty-9999.ebuild | 12 +----------- 3 files changed, 3 insertions(+), 33 deletions(-) |