Summary: | app-misc/vcontrold-0.98.10 fails to compile with -fno-common: ld.lld: error: duplicate symbol: TxRx | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Tobias Leupold <tl> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | proxy-maint, sam |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 705764 | ||
Attachments: |
build.log
Patch to fix the clang build |
Description
Agostino Sarubbo
![]() Created attachment 758848 [details]
build.log
build log and emerge --info
Thanks for your report! I'll see if I can reproduce this and file an upstream bug report. This is a simply -fno-common issue. With gcc, -fcommon is appended and the bug is not visible. With clang/lld I don't see -fcommon in the build so the bug is reproducible. Created attachment 758929 [details, diff] Patch to fix the clang build Actually, the build system sets -fcommon for GCC >= 10, but not for clang. I pushed the attached patch upstream ( https://github.com/openv/vcontrold/commit/b68ba0b5194a0e7a430b6a0e12070c25e36c2c67 ), so this will be part of the next release. Thanks for reporting this and tracking this down! (In reply to Tobias Leupold from comment #4) > Created attachment 758929 [details, diff] [details, diff] > Patch to fix the clang build > > Actually, the build system sets -fcommon for GCC >= 10, but not for clang. I > pushed the attached patch upstream ( > https://github.com/openv/vcontrold/commit/ > b68ba0b5194a0e7a430b6a0e12070c25e36c2c67 ), so this will be part of the next > release. > > Thanks for reporting this and tracking this down! Wow, thanks a lot for your speedy responses! Really impressive. Just FYI: We meanwhile fixed the root cause for this and got rid of the need to use -fcommon at all :-) |