Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 374145 - =app-emulation/wine-1.3.23 fails to build with USE opencl
Summary: =app-emulation/wine-1.3.23 fails to build with USE opencl
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Wine Maintainers
URL:
Whiteboard:
Keywords:
: 381277 (view as bug list)
Depends on:
Blocks: opencl-tracker
  Show dependency tree
 
Reported: 2011-07-05 15:29 UTC by Matthew Schultz
Modified: 2011-12-21 11:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,23.52 KB, text/plain)
2011-07-05 15:31 UTC, Matthew Schultz
Details
environment (environment,121.09 KB, text/plain)
2011-07-05 15:32 UTC, Matthew Schultz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Schultz 2011-07-05 15:29:40 UTC
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
Comment 1 Matthew Schultz 2011-07-05 15:31:08 UTC
Created attachment 279169 [details]
build.log
Comment 2 Matthew Schultz 2011-07-05 15:32:04 UTC
Created attachment 279171 [details]
environment
Comment 3 SpanKY gentoo-dev 2011-07-06 19:15:32 UTC
nvidia is the only one that provides opencl support right now
Comment 4 Matthew Schultz 2011-07-07 13:26:23 UTC
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?
Comment 5 SpanKY gentoo-dev 2011-07-07 16:03:25 UTC
you probably need to select nvidia drivers as your opengl provider
Comment 6 Matthew Schultz 2011-07-07 16:42:56 UTC
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.
Comment 7 SpanKY gentoo-dev 2011-07-07 18:00:39 UTC
dev-util/nvidia-cuda-toolkit is needed for the headers, so ive added that to the DEPEND string as well
Comment 8 Matthew Schultz 2011-07-07 18:04:55 UTC
(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?
Comment 9 SpanKY gentoo-dev 2011-07-07 18:10:35 UTC
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.
Comment 10 Matthew Schultz 2011-07-07 18:16:12 UTC
(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?
Comment 11 Matthew Schultz 2011-07-07 18:17:47 UTC
(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?
Comment 12 SpanKY gentoo-dev 2011-07-07 18:20:52 UTC
it's building on my system without any additional changes
Comment 13 Matthew Schultz 2011-07-07 18:30:51 UTC
(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.
Comment 14 Matthew Schultz 2011-07-07 18:40:35 UTC
(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
Comment 15 SpanKY gentoo-dev 2011-07-07 18:43:14 UTC
$ 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)
Comment 16 Matthew Schultz 2011-07-07 18:52:33 UTC
(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
Comment 17 Matthew Schultz 2011-07-07 19:13:15 UTC
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]
Comment 18 Matthew Schultz 2011-07-07 19:58:29 UTC
(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.
Comment 19 SpanKY gentoo-dev 2011-07-08 02:40:12 UTC
that is fine ... ive added that to all the ebuilds now
Comment 20 Matthew Schultz 2011-07-08 03:52:53 UTC
(In reply to comment #19)
> that is fine ... ive added that to all the ebuilds now

cool thx
Comment 21 SpanKY gentoo-dev 2011-09-06 22:05:44 UTC
*** Bug 381277 has been marked as a duplicate of this bug. ***