Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913745 - dev-libs/rocr-runtime-5.3.3-r1 - fatal error: cannot open file .../opencl.bc: Unknown attribute kind (86) (Producer: LLVM16.0.6 Re
Summary: dev-libs/rocr-runtime-5.3.3-r1 - fatal error: cannot open file .../opencl.bc:...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-07 08:21 UTC by Toralf Förster
Modified: 2024-04-11 01:12 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.79 KB, text/plain)
2023-09-07 08:21 UTC, Toralf Förster
Details
dev-libs:rocr-runtime-5.3.3-r1:20230907-013005.log (dev-libs:rocr-runtime-5.3.3-r1:20230907-013005.log,8.24 KB, text/plain)
2023-09-07 08:21 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,246.66 KB, text/plain)
2023-09-07 08:21 UTC, Toralf Förster
Details
environment (environment,102.00 KB, text/plain)
2023-09-07 08:21 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,788 bytes, application/x-xz)
2023-09-07 08:21 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,26.89 KB, application/x-xz)
2023-09-07 08:21 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-09-07 08:21:12 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2023-09-07 08:21:13 UTC
Created attachment 869995 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-09-07 08:21:13 UTC
Created attachment 869996 [details]
dev-libs:rocr-runtime-5.3.3-r1:20230907-013005.log
Comment 3 Toralf Förster gentoo-dev 2023-09-07 08:21:15 UTC
Created attachment 869997 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2023-09-07 08:21:16 UTC
Created attachment 869998 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-09-07 08:21:17 UTC
Created attachment 869999 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-09-07 08:21:18 UTC
Created attachment 870000 [details]
etc.portage.tar.xz
Comment 7 kevinmbecause 2024-03-28 02:05:34 UTC
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.