wine fails to build with opencl enabled. Furthermore, it does not respect VIDEO_CARDS and installs nvidia-drivers even though I don't have an nvidia card or have nvidia enabled in VIDEO_CARDS. checking for XICCallback.callback... yes checking for XEvent.xcookie... yes checking for GL/gl.h... yes checking for GL/glx.h... yes checking for GL/glu.h... yes checking for up-to-date OpenGL version... yes checking for -lGL... libGL.so.1 checking for -lGLU... libGLU.so.1 checking for audio/audiolib.h... (cached) no configure: error: OpenCL development files not found, OpenCL won't be supported. This is an error since --with-opencl was requested. !!! Please attach the following file when seeking support: !!! /var/tmp/portage/app-emulation/wine-1.3.23/work/wine64/config.log * ERROR: app-emulation/wine-1.3.23 failed (configure phase): * econf failed * * Call stack: * ebuild.sh, line 56: Called src_configure * environment, line 3224: Called do_configure '64' '--enable-win64' * environment, line 934: Called econf '--sysconfdir=/etc/wine' '--with-alsa' '--without-capi' '--with-cms' '--with-cups' '--with-curses' '--without-esd' '--without-fontconfig' '--with-gnutls' '--without-gphoto' '--with-gsm' '--without-gstreamer' '--without-hal' '--without-jack' '--with-jpeg' '--without-ldap' '--with-mpg123' '--without-nas' '--without-gettextpo' '--with-openal' '--with-opencl' '--with-opengl' '--with-openssl' '--with-oss' '--with-png' '--with-pthread' '--without-sane' '--disable-tests' '--with-freetype' '--with-v4l' '--with-x' '--with-xcomposite' '--with-xinerama' '--with-xml' '--with-xslt' '--enable-win64' * ebuild.sh, line 557: Called die * The specific snippet of code: * die "econf failed" Reproducible: Always
Created attachment 279169 [details] build.log
Created attachment 279171 [details] environment
nvidia is the only one that provides opencl support right now
I don't understand why this bug was closed. Wine fails to build even if nvidia-drivers are installed. Also why is it not possible to disable opencl if nvidia is not enabled in VIDEO_CARDS?
you probably need to select nvidia drivers as your opengl provider
I just tried again and this time I selected opengl to nvidia and then then emerged wine again and again the compile fails with the same error. Enabling opencl support in wine simply does not work. I would recommend removing the opencl USE flag if you can't fix the issue. If you leave in the USE flag, you should change the dependency to depend on the USE_EXPAND video_cards_nvidia and if it isn't enabled there, then the merge should die.
dev-util/nvidia-cuda-toolkit is needed for the headers, so ive added that to the DEPEND string as well
(In reply to comment #7) > dev-util/nvidia-cuda-toolkit is needed for the headers, so ive added that to > the DEPEND string as well Did you also modify the ebuild to use USE_EXPAND video_cards_nvidia?
once a common opencl DEPEND atom exists, wine can use that. until then, nvidia is the only provider, so nvidia is the only dep in the tree.
(In reply to comment #7) > dev-util/nvidia-cuda-toolkit is needed for the headers, so ive added that to > the DEPEND string as well Just to test, I emerged nvidia-cuda-toolkit and then emerged the wine ebuild (no changes) again. It still stops on that same error. Does your change do something more than add that dependency? Perhaps configure needs to be pointed to a directory?
(In reply to comment #9) > once a common opencl DEPEND atom exists, wine can use that. until then, nvidia > is the only provider, so nvidia is the only dep in the tree. Should you not at least be warned that opencl will not work unless you have an nvidia card?
it's building on my system without any additional changes
(In reply to comment #12) > it's building on my system without any additional changes There must be something you have installed that I don't.
(In reply to comment #13) > (In reply to comment #12) > > it's building on my system without any additional changes > > There must be something you have installed that I don't. emerge -pv wine nvidia-cuda-toolkit nvidia-drivers These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] dev-util/nvidia-cuda-toolkit-2.3 USE="-debugger -doc -profiler" 0 kB [ebuild R ~] app-emulation/wine-1.3.23 USE="X alsa cups dbus gecko gnutls gsm jpeg lcms mp3 ncurses openal opengl oss perl png samba ssl threads truetype v4l win32 win64 xcomposite xinerama xml -capi -custom-cflags (-esd) -fontconfig -gphoto2 (-gstreamer) (-hal) -jack -ldap -nas (-nls) -opencl -pulseaudio -scanner -test" 0 kB [ebuild R ] x11-drivers/nvidia-drivers-270.41.06 USE="acpi gtk (multilib) -custom-cflags" 0 kB
$ echo '#include <CL/opencl.h>' | gcc -E - | grep opencl.h # 1 "/usr/include/CL/opencl.h" 1 3 4 # 42 "/usr/include/CL/opencl.h" 3 4 # 43 "/usr/include/CL/opencl.h" 2 3 4 # 44 "/usr/include/CL/opencl.h" 2 3 4 # 45 "/usr/include/CL/opencl.h" 2 3 4 # 46 "/usr/include/CL/opencl.h" 2 3 4 $ qfile /usr/include/CL/opencl.h dev-util/nvidia-cuda-toolkit (/opt/cuda/include/CL/opencl.h)
(In reply to comment #15) > $ echo '#include <CL/opencl.h>' | gcc -E - | grep opencl.h > # 1 "/usr/include/CL/opencl.h" 1 3 4 > # 42 "/usr/include/CL/opencl.h" 3 4 > # 43 "/usr/include/CL/opencl.h" 2 3 4 > # 44 "/usr/include/CL/opencl.h" 2 3 4 > # 45 "/usr/include/CL/opencl.h" 2 3 4 > # 46 "/usr/include/CL/opencl.h" 2 3 4 > > $ qfile /usr/include/CL/opencl.h > dev-util/nvidia-cuda-toolkit (/opt/cuda/include/CL/opencl.h) echo '#include <CL/opencl.h>' | gcc -E - | grep opencl.h <stdin>:1:23: error: CL/opencl.h: No such file or directory equery f nvidia-cuda-toolkit * Searching for nvidia-cuda-toolkit ... * Contents of dev-util/nvidia-cuda-toolkit-2.3: /etc /etc/env.d /etc/env.d/99cuda /opt /opt/cuda /opt/cuda/bin /opt/cuda/bin/bin2c /opt/cuda/bin/cudafe /opt/cuda/bin/cudafe++ /opt/cuda/bin/fatbin /opt/cuda/bin/filehash /opt/cuda/bin/nvcc /opt/cuda/bin/nvcc.profile /opt/cuda/bin/ptxas /opt/cuda/bin/ptxvars.cu /opt/cuda/include /opt/cuda/include/__cudaFatFormat.h /opt/cuda/include/builtin_types.h /opt/cuda/include/channel_descriptor.h /opt/cuda/include/common_functions.h /opt/cuda/include/common_types.h /opt/cuda/include/crt /opt/cuda/include/crt/device_runtime.h /opt/cuda/include/crt/func_macro.h /opt/cuda/include/crt/host_runtime.h /opt/cuda/include/crt/storage_class.h /opt/cuda/include/cuComplex.h /opt/cuda/include/cublas.h /opt/cuda/include/cuda.h /opt/cuda/include/cudaGL.h /opt/cuda/include/cuda_gl_interop.h /opt/cuda/include/cuda_runtime.h /opt/cuda/include/cuda_runtime_api.h /opt/cuda/include/cuda_texture_types.h /opt/cuda/include/cufft.h /opt/cuda/include/device_functions.h /opt/cuda/include/device_launch_parameters.h /opt/cuda/include/device_types.h /opt/cuda/include/driver_functions.h /opt/cuda/include/driver_types.h /opt/cuda/include/host_config.h /opt/cuda/include/host_defines.h /opt/cuda/include/math_constants.h /opt/cuda/include/math_functions.h /opt/cuda/include/math_functions_dbl_ptx1.h /opt/cuda/include/math_functions_dbl_ptx3.h /opt/cuda/include/sm_11_atomic_functions.h /opt/cuda/include/sm_12_atomic_functions.h /opt/cuda/include/sm_13_double_functions.h /opt/cuda/include/texture_fetch_functions.h /opt/cuda/include/texture_types.h /opt/cuda/include/vector_functions.h /opt/cuda/include/vector_types.h /opt/cuda/lib64 /opt/cuda/lib64/libcublas.so -> libcublas.so.2 /opt/cuda/lib64/libcublas.so.2 -> libcublas.so.2.3 /opt/cuda/lib64/libcublas.so.2.3 /opt/cuda/lib64/libcublasemu.so -> libcublasemu.so.2 /opt/cuda/lib64/libcublasemu.so.2 -> libcublasemu.so.2.3 /opt/cuda/lib64/libcublasemu.so.2.3 /opt/cuda/lib64/libcudart.so -> libcudart.so.2 /opt/cuda/lib64/libcudart.so.2 -> libcudart.so.2.3 /opt/cuda/lib64/libcudart.so.2.3 /opt/cuda/lib64/libcufft.so -> libcufft.so.2 /opt/cuda/lib64/libcufft.so.2 -> libcufft.so.2.3 /opt/cuda/lib64/libcufft.so.2.3 /opt/cuda/lib64/libcufftemu.so -> libcufftemu.so.2 /opt/cuda/lib64/libcufftemu.so.2 -> libcufftemu.so.2.3 /opt/cuda/lib64/libcufftemu.so.2.3 ...(man files)... /opt/cuda/open64 /opt/cuda/open64/bin /opt/cuda/open64/bin/nvopencc /opt/cuda/open64/lib /opt/cuda/open64/lib/be /opt/cuda/open64/lib/bec /opt/cuda/open64/lib/gfec /opt/cuda/open64/lib/inline /opt/cuda/src /opt/cuda/src/fortran.c
This might have something to do with it: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-3.2.ebuild?r1=1.1&r2=1.2 I think you should change the dependency to this: >=dev-util/nvidia-cuda-toolkit-3.0[opencl]
(In reply to comment #17) > This might have something to do with it: > > http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-3.2.ebuild?r1=1.1&r2=1.2 > > I think you should change the dependency to this: > > >=dev-util/nvidia-cuda-toolkit-3.0[opencl] Just verified that wine builds with my modified dependency on nvidia-cuda-toolkit.
that is fine ... ive added that to all the ebuilds now
(In reply to comment #19) > that is fine ... ive added that to all the ebuilds now cool thx
*** Bug 381277 has been marked as a duplicate of this bug. ***