When compiling clover an installation directory can be given using --with-opencl-libdir This currently doesn't work - I'm guessing it used to and I'm going to hazard a guess that it was the automake conversion that introduced the issue Built with --with-opencl-libdir="${EPREFIX}/usr/$(get_libdir)/OpenCL/vendors/mesa" Expected /usr/lib64/OpenCL/vendors/mesa/libOpenCL.so.1.0.0 Get /usr/lib64/libOpenCL.so.1.0.0
It isn't supposed to do that, use "--libdir" to change the installation path of libOpenCL.so, "--with-opencl-libdir" just sets the installation path of the auxiliary libraries that are used internally by the OpenCL implementation. I guess the parameter description is a bit unclear about this, I'll fix it...
Doesn't --libdir change the installation directory for all libraries not just the OpenCL ones?
(In reply to comment #2) > Doesn't --libdir change the installation directory for all libraries not > just the OpenCL ones? Yes, exactly.
Out of interest what are the auxiliary libraries? As I'm not getting anything in that directory
(In reply to comment #4) > Out of interest what are the auxiliary libraries? As I'm not getting > anything in that directory You should be getting a .so file for each pipe driver you're building.
Just pushed a patch clarifying the meanining of this configure option. Closing as fixed...
Please could you clarify what libraries should be installed into this directory? I was building i965 r600g and clover all together and wasn't seeing anything in there
(In reply to comment #7) > Please could you clarify what libraries should be installed into this > directory? > > I was building i965 r600g and clover all together and wasn't seeing anything > in there You should be getting a pipe_r600.so file.
(In reply to comment #7) > Please could you clarify what libraries should be installed into this > directory? > > I was building i965 r600g and clover all together and wasn't seeing anything > in there Looking through the commit logs, this seems to have broken it: > commit 45270fb0fd1abd7619933c2845f9dc74cdfbe6fd > Author: Matt Turner <mattst88@gmail.com> > Date: Thu Sep 13 10:45:01 2012 -0700 > > targets/pipe-loader: Convert to automake > After this commit the PIPE_INSTALL_DIR environment variable is ignored and pipe libraries are installed unconditionally into "$(libdir)/gallium-pipe" (which seems OK by itself but it breaks the expected behaviour of the "--with-opencl-libdir" configure option). A possible solution would be to rename this option to "--with-pipe-libdir" (or something similar) and fix "targets/pipe-loader/Makefile.am" to take it into account correctly. Reopening and adding Matt to the CC list.
The description of the parameter states "directory for auxiliary libraries used by the OpenCL implementation" The parameter does not control where the OpenCL library is installed, but the modules used by it - i.e. the gallium pipe-drivers. Considering that the latter can be used with almost any target, and this configure option has been non functional for 2+ years we can just drop it. I'll send a patch in a bit.
Fwiw I've nuked the configure parameter considering it was broken for 2+ years as well as somewhat misleading.
No complaints from me
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.