Created attachment 380494 [details] emerge --info media-libs/mesa Compilation fails consistently (and has for a while) while trying to update to =mesa-libs/mesa-10.0.4. This is the tail end of the error: In file included from /usr/include/llvm/Support/type_traits.h:20:0, from /usr/include/llvm/Support/Casting.h:18, from /usr/include/clang/Basic/LLVM.h:22, from /usr/include/clang/Basic/DiagnosticIDs.h:18, from /usr/include/clang/Basic/Diagnostic.h:18, from /usr/include/clang/Frontend/CompilerInstance.h:13, from llvm/invocation.cpp:25: /usr/include/llvm/Support/DataTypes.h:53:3: error: #error "Must #define __STDC_CONSTANT_MACROS before " "#including Support/DataTypes.h" llvm/invocation.cpp:34:31: fatal error: llvm/DerivedTypes.h: No such file or directory compilation terminated. gmake[3]: *** [llvm/libclllvm_la-invocation.lo] Error 1 gmake[3]: *** Waiting for unfinished jobs....
Created attachment 380496 [details] build.log.xz
Created attachment 380498 [details] emerge -pqv media-libs/mesa
Hm, you are trying to build mesa clover (opencl) state tracker without llvm. Not sure if that can work. See what happens if you enable USE="llvm" too.
Adding media-libs/mesa llvm to package.use fixes the problem. So this looks like a dependency bug in the ebuild.
This has been fixed in newer ebuilds, but I went ahead and fixed it for 10.0.4 and 10.2.8 as well. Thanks!