[Mesa-dev] Error: unsupported relocations

Jan Vesely jan.vesely at rutgers.edu
Sun Jun 2 13:12:51 UTC 2019

On Sun, 2019-06-02 at 07:17 -0400, James Harvey wrote:
> On Sun, Jun 2, 2019 at 7:01 AM Bas Nieuwenhuizen
> <bas at basnieuwenhuizen.nl> wrote:
> > On Sun, Jun 2, 2019 at 12:41 PM James Harvey <jamespharvey20 at gmail.com> wrote:
> > > So, for people running amdgpu and wanting to run ImageMagick convert
> > > who get this error... Does this mean there is something ImageMagick
> > > could change to prevent the error?  Or, in the meantime, is the only
> > > option to install the amdgpu-pro opencl userspace driver with
> > > ImageMagick?  (The pro opencl driver can be extracted from amdgpu-pro
> > > as a whole, and ran on top of the free amdgpu driver., without the
> > > rest of amdgpu-pro installed - see Arch Linux AUR package opencl-amd.)
> > 
> > So, does imagemagick actually need OpenCL? If not, you can probably
> > also uninstall you mesa opencl distro package?
> The mesa opencl package works fine on other programs for me and
> others, so uninstalling isn't an option.  Not sure actually without
> any OpenCL if it does it a different way or not.  ImageMagick must be
> all that's trying to call something problematic.

It's basically any function call that was not inlined. It might even
be in a different kernel in the same module.

Recent mesa requires some kind of ICD loader to provide opencl. if
your distro uses ocl-icd package to provide ICD loader, you can use
OCL_ICD_VENDORS env var to select ICD drivers.

something like 'OCD_ICD_VENDORS=/var/empty' (any directory other than
/etc/OpenCL/vendors will do) effectively disables OpenCL by reporting
0 available platforms.

Jan Vesely <jan.vesely at rutgers.edu>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190602/7fb69ae0/attachment.sig>

More information about the mesa-dev mailing list