media-gfx/krita-5.0.0 cannot be linked with clang/lld because of missing -latomic in LDFLAGS. Related variables in /etc/portage/make.conf: AR="llvm-ar" CBUILD="x86_64-pc-linux-gnu" CC="clang" CFLAGS="-march=native -O3 -pipe" CHOST="x86_64-pc-linux-gnu" CXX="clang++" CXXFLAGS="-march=native -O3 -pipe" LD="ld.lld" LDFLAGS="-fuse-ld=lld -unwindlib=libunwind -Wl,-O2 -Wl,--as-needed" NM="llvm-nm" RANLIB="llvm-ranlib" Related lines from build log: ld.lld: error: undefined symbol: __atomic_is_lock_free >>> referenced by kis_updater_context.cpp >>> libs/image/CMakeFiles/kritaimage.dir/kis_updater_context.cpp.o:(KisUpdateJobItem::KisUpdateJobItem(KisUpdaterContext*)) clang-13: error: linker command failed with exit code 1 (use -v to see invocation)
Please test patch from $URL.
The patch fixes the problem, thanks
Thanks for testing.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e8f74afb6662f813be78b857d6a88a852548e17 commit 8e8f74afb6662f813be78b857d6a88a852548e17 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2021-12-29 11:50:41 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2021-12-29 15:41:22 +0000 media-gfx/krita: Fix build with clang Reported-by: Michael Egger <egger.m@protonmail.com> Closes: https://bugs.gentoo.org/830225 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> media-gfx/krita/files/krita-5.0.0-clang.patch | 50 ++++++++++++++++++++++ .../{krita-5.0.0.ebuild => krita-5.0.0-r1.ebuild} | 5 ++- 2 files changed, 54 insertions(+), 1 deletion(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36938034e92b826ba1436f01b4af7ae762d72d4a commit 36938034e92b826ba1436f01b4af7ae762d72d4a Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2021-12-29 11:50:41 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2022-02-19 16:26:31 +0000 media-gfx/krita: Fix build with clang Reported-by: Michael Egger <egger.m@protonmail.com> Closes: https://bugs.gentoo.org/830225 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> media-gfx/krita/files/krita-5.0.0-clang.patch | 50 +++++++++++++++++++++++++++ media-gfx/krita/krita-5.0.2.ebuild | 5 ++- 2 files changed, 54 insertions(+), 1 deletion(-)