CMake Error at /usr/lib/llvm/15/lib64/cmake/llvm/LLVM-Config.cmake:138 (message): Target PowerPC is not in the set of libraries. Call Stack (most recent call first): /usr/lib/llvm/15/lib64/cmake/llvm/LLVM-Config.cmake:263 (llvm_expand_pseudo_components) /usr/lib/llvm/15/lib64/cmake/llvm/LLVM-Config.cmake:102 (llvm_map_components_to_libnames) /usr/lib/llvm/15/lib64/cmake/llvm/LLVM-Config.cmake:95 (explicit_llvm_config) /usr/lib/llvm/15/lib64/cmake/llvm/AddLLVM.cmake:912 (llvm_config) cmake/modules/AddClang.cmake:146 (add_llvm_executable) cmake/modules/AddClang.cmake:156 (add_clang_executable) tools/driver/CMakeLists.txt:25 (add_clang_tool) Reproducible: Always Steps to Reproduce: emerge =clang-15* Actual Results: clang fails the configuration Expected Results: clang compiled and installed Probably similar to https://bugs.gentoo.org/745915
Offending commit must have been https://github.com/llvm/llvm-project/commit/f06abbb393800b0d466c88e283c06f75561c432c Before Gentoo adapts, it is possible to build the previous commit: EGIT_OVERRIDE_COMMIT_LLVM_LLVM_PROJECT=c2d27c89593e92f8e557f27ec02f083760eeab2d emerge -v1 llvm:15 clang:15
Currently due to https://github.com/gentoo/gentoo/commit/4cc3a44c50e3a21d55dbdd8290ec2fe5c0ef5786 you also need to remove the line with UnicodeNameMappingGenerator from llvm-15.0.0.9999.ebuild otherwise it won't build with the above workaround.
It's been fixed upstream.