too long lines were shrinked: * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/dev-libs/rocr-runtime-5.3.3-r1/work/ROCR-Runtime-rocm-5.3.3/src" * Build directory (BUILD_DIR): "/var/tmp/portage/dev-libs/rocr-runtime-5.3.3-r1/work/ROCR-Runtime-rocm-5.3.3/src_build" ninja -v -j5 -l0 [1/108] cd /var/tmp/portage/dev-libs/rocr-runtime-5.3.3-r1/work/ROCR-Runtime-rocm-5.3.3/src_build/image/blit_src && /usr/lib/llvm/15/bin/clang-15 --rocm-path=/usr/lib/ -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx1010 -o ocl_blit_ob FAILED: image/blit_src/ocl_blit_object_gfx1010 /var/tmp/portage/dev-libs/rocr-runtime-5.3.3-r1/work/ROCR-Runtime-rocm-5.3.3/src_build/image/blit_src/ocl_blit_object_gfx1010 cd /var/tmp/portage/dev-libs/rocr-runtime-5.3.3-r1/work/ROCR-Runtime-rocm-5.3.3/src_build/image/blit_src && /usr/lib/llvm/15/bin/clang-15 --rocm-path=/usr/lib/ -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx1010 -o ocl_blit_object_gfx fatal error: cannot open file '/usr/lib/amdgcn/bitcode/opencl.bc': Unknown attribute kind (86) (Producer: 'LLVM16.0.6' Reader: 'LLVM 15.0.7') 1 error generated. [2/108] cd /var/tmp/portage/dev-libs/rocr-runtime-5.3.3-r1/work/ROCR-Runtime-rocm-5.3.3/src_build/core/runtime/trap_handler && /usr/lib/llvm/15/bin/clang-15 -x assembler -target amdgcn-amd-amdhsa -mcpu=gfx1030 -o kCodeTrapHandlerV2_10.hsaco /var/tmp/portage/dev-libs/rocr-runtime-5.3.3-r1/work/ROCR-R ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop-20230903-190046 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-10 [2] x86_64-pc-linux-gnu-13 * clang/llvm (if any): clang version 16.0.6 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/16/bin Configuration file: /etc/clang/clang.cfg /usr/lib/llvm/16 16.0.6 Python 3.11.5 Available Rust versions: [1] rust-bin-1.72.0 * The following VMs are available for generation-2: 1) Eclipse Temurin JDK 11.0.19_p7 [openjdk-bin-11] *) Eclipse Temurin JDK 17.0.7_p7 [openjdk-bin-17] 3) Eclipse Temurin JDK 8.372_p07 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 [2] openjdk-bin-11 [3] openjdk-bin-17 system-vm php cli (if any): go version go1.21.0 linux/amd64 HEAD of ::gentoo commit 58b8deee9555bc85ed4749ce6920a52b336543f8 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Thu Sep 7 00:17:25 2023 +0000 2023-09-07 00:17:25 UTC emerge -qpvO dev-libs/rocr-runtime [ebuild N ] dev-libs/rocr-runtime-5.5.1 USE="-debug"
Created attachment 869995 [details] emerge-info.txt
Created attachment 869996 [details] dev-libs:rocr-runtime-5.3.3-r1:20230907-013005.log
Created attachment 869997 [details] emerge-history.txt
Created attachment 869998 [details] environment
Created attachment 869999 [details] etc.clang.tar.xz
Created attachment 870000 [details] etc.portage.tar.xz
I ran into this bug. It was caused by dev-libs/rocm-device-libs being version 5.5.1 which uses LLVM 16. I masked >=dev-libs/rocm-device-libs-5.5.1 and dev-libs/rocr-runtime-5.3.3-r1 was able to emerge successfully.