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
(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
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
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.
(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.
(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.
(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.
(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?
opencl no longer depends on the llvm radeon backend since 10.2.0_rc4
(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 )
(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.
(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.