Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 516790

Summary: mesa-libs/mesa-10.0.4 - In file included 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"
Product: Gentoo Linux Reporter: Michael Mol <mikemol>
Component: [OLD] LibraryAssignee: Matt Turner <mattst88>
Status: RESOLVED FIXED    
Severity: normal CC: x11
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info media-libs/mesa
build.log.xz
emerge -pqv media-libs/mesa

Description Michael Mol 2014-07-09 17:16:03 UTC
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....
Comment 1 Michael Mol 2014-07-09 17:18:50 UTC
Created attachment 380496 [details]
build.log.xz
Comment 2 Michael Mol 2014-07-09 17:24:15 UTC
Created attachment 380498 [details]
emerge -pqv media-libs/mesa
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2014-07-10 08:01:14 UTC
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.
Comment 4 Michael Mol 2014-07-10 13:13:14 UTC
Adding

media-libs/mesa llvm

to package.use fixes the problem. So this looks like a dependency bug in the ebuild.
Comment 5 Matt Turner gentoo-dev 2015-02-21 19:43:48 UTC
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!