Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 516790 - 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"
Summary: mesa-libs/mesa-10.0.4 - In file included from llvm/invocation.cpp:25: /usr/in...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matt Turner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-09 17:16 UTC by Michael Mol
Modified: 2015-02-21 19:43 UTC (History)
1 user (show)

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


Attachments
emerge --info media-libs/mesa (file_516790.txt,16.66 KB, text/plain)
2014-07-09 17:16 UTC, Michael Mol
Details
build.log.xz (build.log.xz,40.31 KB, application/x-xz)
2014-07-09 17:18 UTC, Michael Mol
Details
emerge -pqv media-libs/mesa (file_516790.txt,362 bytes, text/plain)
2014-07-09 17:24 UTC, Michael Mol
Details

Note You need to log in before you can comment on or make changes to this bug.
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!