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

Moritz Muehlenhoff jmm at inutil.org
Mon Feb 20 09:32:02 UTC 2017


On Mon, Feb 20, 2017 at 09:47:50AM +0100, Andreas Beckmann wrote:
> 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

Sounds fine. Please keep us in the loop when/if that has been fixed and
reverted at some point after the stretch release.

Cheers,
        Moritz



More information about the Pkg-opencl-devel mailing list