Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830225 - media-gfx/krita-5.0.0 - ld.lld: error: undefined symbol: __atomic_is_lock_free
Summary: media-gfx/krita-5.0.0 - ld.lld: error: undefined symbol: __atomic_is_lock_free
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL: https://invent.kde.org/graphics/krita...
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2021-12-29 11:32 UTC by Michael Egger
Modified: 2022-02-19 16:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Egger 2021-12-29 11:32:08 UTC
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)
Comment 1 Andreas Sturmlechner gentoo-dev 2021-12-29 11:37:36 UTC
Please test patch from $URL.
Comment 2 Michael Egger 2021-12-29 13:03:39 UTC
The patch fixes the problem, thanks
Comment 3 Andreas Sturmlechner gentoo-dev 2021-12-29 13:49:05 UTC
Thanks for testing.
Comment 4 Larry the Git Cow gentoo-dev 2021-12-29 16:34:56 UTC
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(-)
Comment 5 Larry the Git Cow gentoo-dev 2022-02-19 16:27:40 UTC
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(-)