Upstream patch (2 parts) that may be related (untested): http://lists.llvm.org/pipermail/libclc-dev/2018-March/002851.html
Might be worth cherry-picking this patch to see if it helps, or simply picking up latest upstream git. On 9 May 2018 at 20:00, 10dmar10 <10dma...@gmail.com> wrote: > Package: libclc-r600 > Version: 0.2.0+git20180312-2 > Severity: normal > > Hi, > > after recent upgrading I wasn't able to run any OpenCL application anymore. > > Any attempt to compile an OpenCL kernel fails with following error: > fatal error: cannot open file '/usr/lib/clc/juniper-r600--.bc': Invalid > record > > > file /usr/lib/clc/juniper-r600--.bc > /usr/lib/clc/juniper-r600--.bc: symbolic link to cedar-r600--.bc > > file /usr/lib/clc/cedar-r600--.bc > /usr/lib/clc/cedar-r600--.bc: LLVM IR bitcode > > Hardware: > 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] > Juniper XT [Radeon HD 5770] > > clinfo output (other OpenCL programms fail with same error): > > Number of platforms 1 > Platform Name Clover > Platform Vendor Mesa > Platform Version OpenCL 1.1 Mesa 17.3.9 > Platform Profile FULL_PROFILE > Platform Extensions cl_khr_icd > Platform Extensions function suffix MESA > > Platform Name Clover > Number of devices 1 > Device Name AMD JUNIPER (DRM 2.50.0 > / 4.16.6, LLVM 5.0.1) > Device Vendor AMD > Device Vendor ID 0x1002 > Device Version OpenCL 1.1 Mesa 17.3.9 > Driver Version 17.3.9 > Device OpenCL C Version OpenCL C 1.1 > Device Type GPU > Device Profile FULL_PROFILE > Device Available Yes > Compiler Available Yes > Max compute units 10 > Max clock frequency 850MHz > Max work item dimensions 3 > Max work item sizes 256x256x256 > Max work group size 256 > === CL_PROGRAM_BUILD_LOG === > fatal error: cannot open file '/usr/lib/clc/juniper-r600--.bc': Invalid > record > Preferred work group size multiple <getWGsizes:675: build > program : error -11> > Preferred / native vector sizes > char 16 / 16 > short 8 / 8 > int 4 / 4 > long 2 / 2 > half 0 / 0 (n/a) > float 4 / 4 > double 0 / 0 (n/a) > > ********** REST OMITTED *********** > > > > > -- System Information: > Debian Release: buster/sid > APT prefers testing > APT policy: (990, 'testing') > Architecture: amd64 (x86_64) > > Kernel: Linux 4.16.6 (SMP w/3 CPU cores) > Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), > LANGUAGE=de_DE.UTF-8 (charmap=UTF-8) > Shell: /bin/sh linked to /bin/dash > Init: systemd (via /run/systemd/system) > > Versions of packages libclc-r600 depends on: > ii libclang-common-6.0-dev 1:6.0-3 > ii libclc-dev 0.2.0+git20180312-2 > > libclc-r600 recommends no packages. > > libclc-r600 suggests no packages. > > -- no debconf information > > -- Stuart Young (aka Cefiar)