Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 600018 - =media-libs/mesa-12.0.1: emake failed: ‘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&)’
Summary: =media-libs/mesa-12.0.1: emake failed: ‘llvm::Module* {anonymous}::compile_ll...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-16 16:33 UTC by Alexander
Modified: 2017-02-13 14:33 UTC (History)
1 user (show)

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


Attachments
build.log.gz (build.log-mesa-12.0.1_gentoo-2016-11-16.gz,115.61 KB, application/gzip)
2016-11-16 16:33 UTC, Alexander
Details
emerge.info (emerge.info-mesa-12.0.1_gentoo-2016-11-16,9.99 KB, text/plain)
2016-11-16 16:38 UTC, Alexander
Details
llvm-clang-eix.info (info,5.72 KB, text/x-matlab)
2016-11-16 16:39 UTC, Alexander
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander 2016-11-16 16:33:52 UTC
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
Comment 1 Alexander 2016-11-16 16:38:20 UTC
Created attachment 453544 [details]
emerge.info
Comment 2 Alexander 2016-11-16 16:39:54 UTC
Created attachment 453548 [details]
llvm-clang-eix.info
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2016-11-16 16:45:37 UTC
Please CC maintainers yourself only when explicitly requested to. Bug wranglers will handle assignment and CC.
Comment 4 Alexander 2016-11-16 16:55:44 UTC
(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.

Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2016-11-16 17:01:38 UTC
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.
Comment 6 Alexander 2016-11-16 17:19:03 UTC
% 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
Comment 7 Matt Turner gentoo-dev 2017-02-13 14:33:38 UTC
Mixing stable and unstable Mesa and LLVM is not really supportable.