https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: app-misc/vcontrold-0.98.10 fails to compile. Discovered on: amd64 (internal ref: tinderbox) NOTE: This machine uses clang as a compiler and lld as a linker
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 :-)