https://bugzilla.kernel.org/show_bug.cgi?id=204725
--- Comment #45 from Dmitri Seletski (drjoms@gmail.com) --- (In reply to Michel Dänzer from comment #44)
(In reply to Dmitri Seletski from comment #39)
/usr/lib64/dri/swrast_dri.so failed (libLLVMAMDGPUCodeGen.so.8: cannot open shared object file: No such file or directory)
BTW, LLVM only builds shared libraries like libLLVMAMDGPUCodeGen if BUILD_SHARED_LIBS is enabled in its build configuration, which is bad for performance and other reasons. Make sure you don't have any customization which enables this, and if Gentoo enables it by default, please ask them not to. LLVM_BUILD_LLVM_DYLIB should be enabled instead.
I have send email to llvm mainteiners of Gentoo. I am just a user, in case what.