Summary: | sys-apps/roccat-tools-5.9.0-r100: fails to build with gcc 10 (multiple definition of `RyosWriteCheckWait'; ryosmk/libroccatryosmk/CMakeFiles/libroccatryosmk.dir/ryos_custom_lights.c.o:(.bss+0x0): first defined here) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Acatorn <tomasz.zwolinski90> |
Component: | Current packages | Assignee: | Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 705764 | ||
Attachments: | build log |
Description
Acatorn
2021-03-15 21:14:51 UTC
As a workaround, you can use CFLAGS="... -fcommon" for this package (In reply to Sam James from comment #1) > As a workaround, you can use CFLAGS="... -fcommon" for this package Thank you, Sam. Running: CFLAGS="${COMMON_FLAGS} -fcommon" emerge -av sys-apps/roccat-tools worked like a charm. Many thanks for your fast reply! Recently I upgraded gcc from 10.2.0 to 10.3.0 and that problem still exists. Is there any way to make it great again without that workaround? Is it an upstream incompatibility with gcc > 9 or something else? Can I help in any way? The problem comes from an unused declaration of RyosWriteCheckWait in ryosmk/libroccatryosmk/ryos_device.h. This patch solves the bug: --- a/ryosmk/libroccatryosmk/ryos_device.h 2021-08-06 10:14:03.928000000 +0000 +++ b/ryosmk/libroccatryosmk/ryos_device.h 2021-08-06 10:18:29.536000000 +0000 @@ -22,10 +22,6 @@ G_BEGIN_DECLS -enum { - RYOS_WRITE_CHECK_WAIT_LIGHT_CONTROL = 10, -} RyosWriteCheckWait; - /* * write selection: (before profile specific read) * value = profile index 0-4 The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dea923aa48ca7c97492b24780c374a0181cb5273 commit dea923aa48ca7c97492b24780c374a0181cb5273 Author: David Seifert <soap@gentoo.org> AuthorDate: 2021-08-13 23:24:01 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2021-08-13 23:24:01 +0000 sys-apps/roccat-tools: fix -fno-common / GCC 10 Closes: https://bugs.gentoo.org/776571 Signed-off-by: David Seifert <soap@gentoo.org> .../roccat-tools/files/roccat-tools-5.9.0-fno-common.patch | 11 +++++++++++ sys-apps/roccat-tools/roccat-tools-5.9.0-r101.ebuild | 1 + 2 files changed, 12 insertions(+) |