Cannot compile kde-frameworks/syntax-highlighting-5.115.0. Received an error: /usr/lib/gcc/powerpc-unknown-linux-gnu/11/../../../../powerpc-unknown-linux-gnu/bin/ld: src/lib/CMakeFiles/KF5SyntaxHighlighting.dir/definition.cpp.o: in function `KSyntaxHighlighting::DefinitionData::load(KSyntaxHighlighting::DefinitionData::OnlyKeywords) [clone .part.0]': definition.cpp:(.text+0xb6ac): undefined reference to `__atomic_fetch_add_8' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. Reproducible: Always Steps to Reproduce: 1. sudo emerge -av syntax-highlighting Actual Results: It won't compile Expected Results: Compiled and installed package
Created attachment 886808 [details] Log of last build
Created attachment 886809 [details] emerge --info
Needs -latomic.
Same thing with -latomic The new log is attached
Created attachment 886810 [details] Log with -latomic
I think CMake is putting it in the wrong place for you. Needs to be done via a patch.
(In reply to Sam James from comment #6) > I think CMake is putting it in the wrong place for you. Needs to be done via > a patch. You was right! I found a temporary workaround. /etc/portage/env/latomic.conf LDFLAGS='-latomic ${LDFLAGS}' /etc/portage/package.env/plasma kde-frameworks/syntax-highlighting latomic.conf Now sudo emerge -av syntax-highlighting works perfectly.