Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 658198 - Can't build media-libs/mesa-18.1.2 with opencl
Summary: Can't build media-libs/mesa-18.1.2 with opencl
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-16 04:32 UTC by klaus818
Modified: 2018-06-16 13:08 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description klaus818 2018-06-16 04:32:39 UTC
!!! The ebuild selected to satisfy "media-libs/mesa[wayland,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?]" has unmet requirements.
- media-libs/mesa-18.1.2::gentoo USE="classic dri3 egl gallium gbm gles2 llvm nptl opencl vaapi vulkan wayland -bindist -d3d9 -debug -gles1 -openmax -osmesa -pax_kernel -pic (-selinux) -unwind -valgrind -vdpau -xa -xvmc" ABI_X86="(64) -32 (-x32)" VIDEO_CARDS="i965 intel (-freedreno) -i915 (-imx) -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi (-vc4) -virgl (-vivante) -vmware"

  The following REQUIRED_USE flag constraints are unsatisfied:
    opencl? ( any-of ( video_cards_r600 video_cards_radeonsi ) )

And I have intel grafic.
Comment 1 Georgy Yakovlev archtester gentoo-dev 2018-06-16 06:17:34 UTC
check out this bug
https://bugs.gentoo.org/658120
Comment 2 klaus818 2018-06-16 07:54:14 UTC
Yes I have seen it. But the problem is, when I build mesa without opencl, I had to rebuild ffmpeg. And I can't rebuild ffmpeg, because there is no opencl.

The only solution is, I had to disable opencl systemwide if you have a Intel graphic. But Intel has support for opencl.
Comment 3 Matt Turner gentoo-dev 2018-06-16 08:37:09 UTC
(In reply to klaus818 from comment #2)
> Yes I have seen it. But the problem is, when I build mesa without opencl, I
> had to rebuild ffmpeg. And I can't rebuild ffmpeg, because there is no
> opencl.
> 
> The only solution is, I had to disable opencl systemwide if you have a Intel
> graphic. But Intel has support for opencl.

No, it doesn't. As stated in https://bugs.gentoo.org/658120#c2 intel graphics do not have opencl via Mesa. There is dev-libs/beignet for Ivybridge-Coffeelake graphics, and https://github.com/intel/compute-runtime for Broadwell+.
Comment 4 klaus818 2018-06-16 08:44:44 UTC
But I can't use ffmpeg with opencl without mesa without opencl. And I have installed beignet.
Comment 5 Matt Turner gentoo-dev 2018-06-16 08:53:43 UTC
You can -- just put

media-libs/mesa -opencl

in /etc/portage/package.use or /etc/portage/package.use/mesa

I see that this is kind of confusing and unideal. I'll spend some time thinking about how to make this better.
Comment 6 Juergen Rose 2018-06-16 13:08:24 UTC
(In reply to Matt Turner from comment #5)
> You can -- just put
> 
> media-libs/mesa -opencl
> 
> in /etc/portage/package.use or /etc/portage/package.use/mesa
> 
> I see that this is kind of confusing and unideal. I'll spend some time
> thinking about how to make this better.

This does not help for me:

'emerge -uvDN world' fails with:

The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by virtual/opencl-0-r5::gentoo
# required by dev-libs/cl-1.2.3::gentoo
# required by media-gfx/wings-2.1.7::gentoo
# required by @selected
# required by @world (argument)
>=media-libs/mesa-18.1.2 opencl

Use --autounmask-write to write changes to config files (honoring
CONFIG_PROTECT). Carefully examine the list of proposed changes,
paying special attention to mask or keyword changes that may expose
experimental or unstable packages.

!!! The ebuild selected to satisfy ">=media-libs/mesa-9.1.6[opencl,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?]" has unmet requirements.
- media-libs/mesa-18.1.2::gentoo USE="classic dri3 egl gallium gbm gles2 llvm nptl vaapi valgrind vdpau wayland xa xvmc -bindist -d3d9 -debug -gles1 -opencl -openmax -osmesa -pax_kernel -pic (-selinux) -unwind -vulkan" ABI_X86="32 (64) (-x32)" VIDEO_CARDS="nouveau radeon (-freedreno) -i915 -i965 (-imx) -intel -r100 -r200 -r300 -r600 -radeonsi (-vc4) -virgl (-vivante) -vmware"

  The following REQUIRED_USE flag constraints are unsatisfied:
    opencl? ( any-of ( video_cards_r600 video_cards_radeonsi ) )

  The above constraints are a subset of the following complete expression:
    d3d9? ( dri3 gallium ) llvm? ( gallium ) opencl? ( gallium llvm any-of ( video_cards_r600 video_cards_radeonsi ) ) openmax? ( gallium ) gles1? ( egl ) gles2? ( egl ) vaapi? ( gallium ) vdpau? ( gallium ) vulkan? ( any-of ( video_cards_i965 video_cards_radeonsi ) video_cards_radeonsi? ( llvm ) ) wayland? ( egl gbm ) xa? ( gallium ) video_cards_freedreno? ( gallium ) video_cards_intel? ( classic ) video_cards_i915? ( any-of ( classic gallium ) ) video_cards_i965? ( classic ) video_cards_imx? ( gallium video_cards_vivante ) video_cards_nouveau? ( any-of ( classic gallium ) ) video_cards_radeon? ( any-of ( classic gallium ) gallium? ( x86? ( llvm ) amd64? ( llvm ) ) ) video_cards_r100? ( classic ) video_cards_r200? ( classic ) video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) ) video_cards_r600? ( gallium ) video_cards_radeonsi? ( gallium llvm ) video_cards_vc4? ( gallium ) video_cards_virgl? ( gallium ) video_cards_vivante? ( gallium gbm ) video_cards_vmware? ( gallium )

(dependency required by "virtual/opencl-0-r5::gentoo" [installed])
(dependency required by "dev-libs/cl-1.2.3::gentoo" [installed])
(dependency required by "media-gfx/wings-2.1.7::gentoo" [installed])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])
root@leopard:/root(5)# lspci | grep VGA
01:00.0 VGA compatible controller: NVIDIA Corporation GF119 [GeForce GT 520] (rev a1)