[Pkg-opencl-devel] Bug#852746: linking beignet statically against llvm

Andreas Beckmann anbe at debian.org
Mon Feb 20 08:47:50 UTC 2017


Dear security team,

we plan to switch the OpenCL ICD beignet (and perhaps other ICDs if
neccessary) to link statically instead of dynamically against LLVM, to
work around #852746.

Currently OpenCL applications crash if both mesa-opencl-icd and
beignet-opencl-icd are installed - both link dynamically against LLVM
and are stepping somehow on each others toes. This makes OpenCL ICDs
pretty useless if the idea of having several of them installed does not
work (all available ICDs will be loaded by the application and queried
for available platforms/devices, thereafter the application can decide
which one to use).

On 2017-02-18 23:11, Rebecca N. Palmer wrote:
> Statically linking to LLVM (see attached) fixes this bug, but I'm not
> sure yet whether we want to do that.

The underlying issue is being investigated further, but I do not expect
a solution to be available for stretch.

I hope the security team agrees with this this workaround.
Since you want to keep track of statically linked packages:
For stretch src:beignet will be linked statically against
src:llvm-toolchain-3.9


Andreas



More information about the Pkg-opencl-devel mailing list