Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 658120 - dev-libs/libclc-0.2.0_pre20180610 does not build with intel grafic
Summary: dev-libs/libclc-0.2.0_pre20180610 does not build with intel grafic
Status: RESOLVED FIXED
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:
: 658122 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-06-14 18:01 UTC by klaus818
Modified: 2018-06-18 18:30 UTC (History)
3 users (show)

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-14 18:01:39 UTC
!!! The ebuild selected to satisfy "dev-libs/libclc" has unmet requirements.
- dev-libs/libclc-0.2.0_pre20180610::gentoo USE="" ABI_X86="(64)" VIDEO_CARDS="-nvidia -r600 -radeonsi"

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

(dependency required by "media-libs/mesa-18.1.1-r1::gentoo[opencl]" [installed])
(dependency required by "x11-libs/libva-intel-driver-2.1.0::gentoo[wayland]" [installed])
(dependency required by "x11-libs/libva-2.1.0::gentoo[video_cards_intel,video_cards_i965]" [installed])
(dependency required by "media-video/mpv-0.27.2::gentoo" [installed])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])
Comment 1 Jonas Stein gentoo-dev 2018-06-14 21:25:59 UTC
*** Bug 658122 has been marked as a duplicate of this bug. ***
Comment 2 Jan Vesely 2018-06-15 01:45:50 UTC
libclc or clover do not support intel gpus. Use beignet or neo for Intel OpenCL.
Comment 3 Luigi 'Comio' Mantellini 2018-06-15 07:24:44 UTC
(In reply to Jan Vesely from comment #2)
> libclc or clover do not support intel gpus. Use beignet or neo for Intel
> OpenCL.


mesa redepend on libclc. this creates trouble with intel gpu.

ciao

luigi
Comment 4 Jan Vesely 2018-06-15 18:08:01 UTC
(In reply to Luigi 'Comio' Mantellini from comment #3)
> (In reply to Jan Vesely from comment #2)
> > libclc or clover do not support intel gpus. Use beignet or neo for Intel
> > OpenCL.
> 
> 
> mesa redepend on libclc. this creates trouble with intel gpu.
> 
> ciao
> 
> luigi

my point was that the opencl useflag on mesa is useless without r600 or radeonsi gpu. The linked PR enforces that.

jan
Comment 5 Larry the Git Cow gentoo-dev 2018-06-15 21:36:05 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c41530ba8a4f5523f890a88f911b32a0870fdd4

commit 6c41530ba8a4f5523f890a88f911b32a0870fdd4
Author:     Jan Vesely <jano.vesely@gmail.com>
AuthorDate: 2018-06-15 18:03:14 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2018-06-15 21:35:45 +0000

    media-libs/mesa: opencl implementation is available only for r600 or radeonsi GPUs
    
    Closes: https://bugs.gentoo.org/658120

 media-libs/mesa/mesa-17.3.9.ebuild    | 2 +-
 media-libs/mesa/mesa-18.0.5.ebuild    | 2 +-
 media-libs/mesa/mesa-18.1.1-r1.ebuild | 2 +-
 media-libs/mesa/mesa-18.1.1.ebuild    | 2 +-
 media-libs/mesa/mesa-9999.ebuild      | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2018-06-17 03:59:09 UTC
This will now cause additional grief for users who have USE="opencl" set globally (as in bug 658198), requiring them to micro-manage their USE flags via package.use.
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-06-17 06:00:21 UTC
Also, the constraints are put the wrong way around.  They look like 'if you want OpenCL, you need to enable radeon' -- but enabling radeon without appropriate hardware is pointless.

If we were to go for REQUIRED_USE, it should go the other way around.  'If you don't have radeon, disable opencl', i.e. something like '!...radeon? ( !...? ( !opencl ) )'.

However, I would make it simpler and go for conditional dependencies, i.e. making opencl-without-radeon be a no-op.
Comment 8 Jan Vesely 2018-06-18 18:30:49 UTC
(In reply to Michał Górny from comment #7)
> Also, the constraints are put the wrong way around.  They look like 'if you
> want OpenCL, you need to enable radeon' -- but enabling radeon without
> appropriate hardware is pointless.
> 
> If we were to go for REQUIRED_USE, it should go the other way around.  'If
> you don't have radeon, disable opencl', i.e. something like '!...radeon? (
> !...? ( !opencl ) )'.

the final truth combination for both look the same to me. i.e:
opencl && !radeon => error

> However, I would make it simpler and go for conditional dependencies, i.e.
> making opencl-without-radeon be a no-op.

well, you're the dev. From user perspective a no-op useflag is the most confusing thing. "I set opencl! Why doesn't it provide OpenCL?!?!?"

(In reply to Chí-Thanh Christopher Nguyễn from comment #6)
> This will now cause additional grief for users who have USE="opencl" set
> globally (as in bug 658198), requiring them to micro-manage their USE flags
> via package.use.

That's the intention. If you want OpenCL you need to install other providers than mesa. mesa can only provide OpenCL on EG/NI or GCN GPUs.

The old situation enabled users to install clover without any usable backend resulting in 0 device platform. If this is the preferred behaviour, mesa sshould be changed to only require libclc for r600/radeonsi drivers or there needs to be another libclc provider for other GPUs.