Created attachment 453542 [details] build.log.gz /var/tmp/portage/media-libs/mesa-12.0.1/work/mesa-12.0.1/src/gallium/state_trackers/clover/llvm/invocation.cpp: In function ‘llvm::Module* {anonymous}::compile_llvm(llvm::LLVMContext&, const string&, const header_map&, const string&, const string&, const string&, const string&, unsigned int (&)[7], unsigned int&, std::__cxx11::string&)’: /var/tmp/portage/media-libs/mesa-12.0.1/work/mesa-12.0.1/src/gallium/state_trackers/clover/llvm/invocation.cpp:212:75: error: no matching function for call to ‘clang::CompilerInvocation::setLangDefaults(clang::LangOptions&, clang::InputKind, llvm::Triple, clang::LangStandard::Kind)’ clang::LangStandard::lang_opencl11); ^ In file included from /usr/include/clang/Frontend/CompilerInstance.h:17:0, from /var/tmp/portage/media-libs/mesa-12.0.1/work/mesa-12.0.1/src/gallium/state_trackers/clover/llvm/invocation.cpp:25: Some info — https://gist.github.com/alexws54tk/28af9df15d3a9a13efe824017bf4dc6b
Created attachment 453544 [details] emerge.info
Created attachment 453548 [details] llvm-clang-eix.info
Please CC maintainers yourself only when explicitly requested to. Bug wranglers will handle assignment and CC.
(In reply to Chí-Thanh Christopher Nguyễn from comment #3) > Please CC maintainers yourself only when explicitly requested to. Bug > wranglers will handle assignment and CC. Thank you for fast reactions, Christopher. The problem is that CC maintainers react only in a month, it is very slowly. 
I am pretty sure that stable branch of Gentoo is not affected by this bug, but rather using unstable LLVM together with stable mesa is what causes this.
% sudo emerge -1avD sys-devel/clang sys-devel/llvm These are the packages that would be merged, in order: Calculating dependencies ... done! [ebuild R ~] sys-devel/llvm-3.9.0-r1:0/3.9.0::gentoo USE="clang gold libffi multitarget ncurses python sanitize static-analyzer xml -debug -default-compiler-rt -default-libcxx -doc -libedit (-lldb) -ocaml {-test}" ABI_X86="32 (64) (-x32)" LLVM_TARGETS="AArch64 AMDGPU ARM BPF Hexagon MSP430 Mips NVPTX PowerPC Sparc SystemZ (X86) XCore" PYTHON_TARGETS="python2_7" 0 KiB [ebuild R ~] sys-devel/clang-3.9.0-r100:0/3.9.0::gentoo USE="multitarget python static-analyzer -debug" ABI_X86="32 (64) (-x32)" LLVM_TARGETS="AArch64 AMDGPU ARM BPF Hexagon MSP430 Mips NVPTX PowerPC Sparc SystemZ (X86) XCore" 0 KiB [ebuild rR ] media-libs/mesa-12.0.1::gentoo USE="classic d3d9 dri3 egl gallium gbm gles1 gles2 llvm nptl opencl osmesa udev vaapi wayland xa xvmc -bindist -debug -openmax -pax_kernel -pic (-selinux) -valgrind -vdpau" ABI_X86="32 (64) (-x32)" VIDEO_CARDS="intel (-freedreno) -i915 -i965 -ilo -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi (-vc4) -vmware" 0 KiB Total: 3 packages (3 reinstalls), Size of downloads: 0 KiB The following keyword changes are necessary to proceed: (see "package.accept_keywords" in the portage(5) man page for more details) # required by sys-devel/llvm-3.9.0-r1::gentoo[clang] # required by media-libs/mesa-12.0.1::gentoo[opencl] # required by @selected # required by @world (argument) =sys-devel/clang-3.9.0-r100 ~amd64 # required by sys-devel/clang-3.9.0-r100::gentoo # required by media-libs/mesa-12.0.1::gentoo[opencl] # required by @selected # required by @world (argument) =sys-devel/llvm-3.9.0-r1 ~amd64 Would you like to add these changes to your config files? [Yes/No] n
Mixing stable and unstable Mesa and LLVM is not really supportable.