Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 506108 - media-libs/mesa-10.0.4 USE=opencl should not depend on sys-devel/llvm[video_cards_radeon]
Summary: media-libs/mesa-10.0.4 USE=opencl should not depend on sys-devel/llvm[video_c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-28 20:07 UTC by Quasimodo
Modified: 2014-05-28 20:23 UTC (History)
5 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 Quasimodo 2014-03-28 20:07:57 UTC
My VIDEO_CARDS does not contain radeon but mesa insists on installing llvm with radeon support when USE includes opencl.

Reproducible: Always

Steps to Reproduce:
1. VIDEO_CARDS without radeon
2. USE with opencl
3. emerge mesa
Actual Results:  
The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by sys-devel/clang-3.3-r100
# required by dev-libs/libclc-0.0.1_pre20131010
# required by media-libs/mesa-10.0.4[opencl]
# required by virtual/opencl-0-r4
# required by media-gfx/darktable-1.4.1-r1
# required by @selected
# required by @world (argument)
=sys-devel/llvm-3.3-r3 video_cards_radeon clang


Expected Results:  
Installing without radeon dependency
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-03-28 20:40:12 UTC
(In reply to Quasimodo from comment #0)
> My VIDEO_CARDS does not contain radeon but mesa insists on installing llvm
> with radeon support when USE includes opencl.
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. VIDEO_CARDS without radeon
> 2. USE with opencl
> 3. emerge mesa
> Actual Results:  

Please post the entire output of `emerge -vpt media-libs/mesa' with that configuration
Comment 2 Kolan Sh. 2014-03-29 20:28:08 UTC
I have the same problem. emerge -vpt media-libs/mesa output:
These are the packages that would be merged, in reverse order:

Calculating dependencies ... done!                       
[ebuild     U  ] media-libs/mesa-10.0.4 [9.1.6] USE="classic egl gallium gbm gles1 gles2 nptl opencl%* openvg vdpau xa xvmc -bindist -debug -llvm -llvm-shared-libs% -osmesa -pax_kernel -pic -r600-llvm-compiler (-selinux) -wayland (-shared-glapi%*) (-xorg%)" ABI_X86="(64%*) (-32) (-x32)" PYTHON_SINGLE_TARGET="(-python2_6%) (-python2_7%*)" PYTHON_TARGETS="(-python2_6%) (-python2_7%*)" VIDEO_CARDS="(-freedreno) -i915 -i965 -ilo% -intel -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi -vmware" 0 kB
[ebuild  N    ~]  dev-libs/libclc-0.0.1_pre20140101  27 kB
[ebuild   R   ~]   sys-devel/llvm-3.4:0/3.4  USE="clang libffi ncurses static-analyzer -debug -doc -gold -multitarget -ocaml -python {-test} -udis86 -xml" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7 -pypy2_0 -python2_6" VIDEO_CARDS="radeon*" 0 kB

Total: 3 packages (1 upgrade, 1 new, 1 reinstall), Size of downloads: 27 kB

The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by media-libs/mesa-10.0.4[opencl]
# required by media-libs/mesa (argument)
=sys-devel/llvm-3.4 video_cards_radeon
zsh:fc:1: no such event: 1
Comment 3 Quasimodo 2014-03-30 07:51:27 UTC
As requested:

Calculating dependencies... done!
[ebuild   R    ] media-libs/mesa-10.0.4  USE="classic egl gallium llvm nptl opencl vdpau xvmc -bindist -debug -gbm -gles1 -gles2 -llvm-shared-libs -openvg -osmesa -pax_kernel -pic -r600-llvm-compiler (-selinux) -wayland -xa" ABI_X86="(64) (-32) (-x32)" VIDEO_CARDS="(-freedreno) -i915 -i965 -ilo -intel -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi -vmware" 0 kB
[ebuild   R    ]  sys-devel/llvm-3.3-r3:0/3.3  USE="clang libffi static-analyzer xml -debug -doc -gold -multitarget -ocaml -python {-test} -udis86" ABI_X86="(64) (-32) (-x32)" PYTHON_TARGETS="python2_7 (-pypy2_0) -python2_6" VIDEO_CARDS="radeon*" 0 kB

Total: 2 packages (2 reinstalls), Size of downloads: 0 kB

The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by media-libs/mesa-10.0.4[opencl]
# required by @selected
# required by @world (argument)
=sys-devel/llvm-3.3-r3 video_cards_radeon


Also, I've changed the ebuild and got mesa installed. In line 149:

 >=sys-devel/llvm-3.3-r1[video_cards_radeon,${MULTILIB_USEDEP}]

the video_cards_radeon has to be removed.
Comment 4 Yarda 2014-04-02 14:30:43 UTC
(In reply to Quasimodo from comment #3)
> Also, I've changed the ebuild and got mesa installed. In line 149:
> 
>  >=sys-devel/llvm-3.3-r1[video_cards_radeon,${MULTILIB_USEDEP}]
> 
> the video_cards_radeon has to be removed.

This worked for me as well.
Comment 5 Matt Turner gentoo-dev 2014-04-03 17:17:01 UTC
(In reply to Quasimodo from comment #0)
> My VIDEO_CARDS does not contain radeon but mesa insists on installing llvm
> with radeon support when USE includes opencl.

What other Mesa drivers support OpenCL?

If you're using proprietary drivers, you're not using drivers from Mesa and you should disable opencl for mesa.
Comment 6 Kolan Sh. 2014-04-04 11:23:39 UTC
(In reply to Matt Turner from comment #5)
> (In reply to Quasimodo from comment #0)
> > My VIDEO_CARDS does not contain radeon but mesa insists on installing llvm
> > with radeon support when USE includes opencl.
> 
> What other Mesa drivers support OpenCL?
> 
> If you're using proprietary drivers, you're not using drivers from Mesa and
> you should disable opencl for mesa.

Yarda's method of ebuild editing doesn't work for me because the mesa doesn't compile with USE=opencl. Disabling opencl flag helped me.

In my opinion it would be nice to change opencl flag description in metadata.xml to "Enable the Clover Gallium OpenCL state tracker for Radeon cards." to not mislead users.
Comment 7 Aleksander Wabik 2014-04-29 14:41:34 UTC
(In reply to Matt Turner from comment #5)
> What other Mesa drivers support OpenCL?
> 
> If you're using proprietary drivers, you're not using drivers from Mesa and
> you should disable opencl for mesa.

According to https://wiki.gentoo.org/wiki/Intel, Opencl is supported on Intel gen7. Should that separate package (beignet) be built, and mesa left with USE=-opencl?
Comment 8 Chí-Thanh Christopher Nguyễn gentoo-dev 2014-05-27 15:11:36 UTC
opencl no longer depends on the llvm radeon backend since 10.2.0_rc4
Comment 9 Michael Cook 2014-05-27 17:40:11 UTC
(In reply to Chí-Thanh Christopher Nguyễn from comment #8)
> opencl no longer depends on the llvm radeon backend since 10.2.0_rc4

I'm getting this now

 * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 * 
 *   /usr/portage/media-libs/mesa/files/mesa-10.2-dont-require-llvm-for-r300.patch
 *   ( mesa-10.2-dont-require-llvm-for-r300.patch )
Comment 10 Chí-Thanh Christopher Nguyễn gentoo-dev 2014-05-28 11:11:39 UTC
(In reply to Michael Cook from comment #9)
> I'm getting this now

That is bug 511652, please sync again and the problem should go away.
Comment 11 Matt Turner gentoo-dev 2014-05-28 20:23:56 UTC
(In reply to Aleksander Wabik from comment #7)
> (In reply to Matt Turner from comment #5)
> > What other Mesa drivers support OpenCL?
> > 
> > If you're using proprietary drivers, you're not using drivers from Mesa and
> > you should disable opencl for mesa.
> 
> According to https://wiki.gentoo.org/wiki/Intel, Opencl is supported on
> Intel gen7. Should that separate package (beignet) be built, and mesa left
> with USE=-opencl?

Yes. Intel OpenCL support is separate from Mesa.