| Summary: | Mesa 17+llvm 4.0.0rc2 fail to compile | ||
|---|---|---|---|
| Product: | Mesa | Reporter: | higuita |
| Component: | Mesa core | Assignee: | mesa-dev |
| Status: | RESOLVED INVALID | QA Contact: | mesa-dev |
| Severity: | normal | ||
| Priority: | medium | ||
| Version: | 17.0 | ||
| Hardware: | Other | ||
| OS: | All | ||
| Whiteboard: | |||
| i915 platform: | i915 features: | ||
|
Description
higuita
2017-03-02 02:49:57 UTC
https://cgit.freedesktop.org/mesa/mesa/commit/?id=0f53404565b9ef9da9d7022b5732463acd496742 fixes this. Ok, thanks... but building mesa-git i get this, that is similar to what i get just by removing the bad llvm flag:
Making all in amd
make[3]: Entering directory '/tmp/mesa-d7d64f1091006fb6faa48705c53f19ff5c657bc8/src/amd'
make all-am
make[4]: Entering directory '/tmp/mesa-d7d64f1091006fb6faa48705c53f19ff5c657bc8/src/amd'
CXX common/common_libamd_common_la-ac_llvm_helper.lo
In file included from /usr/include/sys/types.h:146:0,
from /usr/include/llvm/Support/DataTypes.h:69,
from /usr/include/llvm-c/Types.h:17,
from /usr/include/llvm-c/TargetMachine.h:22,
from common/ac_llvm_util.h:28,
from common/ac_llvm_helper.cpp:34:
/usr/lib64/clang/4.0.0/include/stddef.h:57:39: error: missing binary operator before token "("
#if !defined(_SIZE_T) || __has_feature(modules)
^
In file included from /usr/include/wchar.h:51:0,
from /usr/include/c++/5.4.0/cwchar:44,
from /usr/include/c++/5.4.0/bits/postypes.h:40,
from /usr/include/c++/5.4.0/bits/char_traits.h:40,
from /usr/include/c++/5.4.0/string:40,
from /usr/include/llvm/MC/MCTargetOptions.h:13,
from /usr/include/llvm/Target/TargetOptions.h:18,
from common/ac_llvm_helper.cpp:36:
/usr/lib64/clang/4.0.0/include/stddef.h:57:39: error: missing binary operator before token "("
#if !defined(_SIZE_T) || __has_feature(modules)
^
/usr/lib64/clang/4.0.0/include/stddef.h:128:39: error: missing binary operator before token "("
#if !defined(_WINT_T) || __has_feature(modules)
^
i would say that something here do not like llvm 4.0 ... or i may have something broken in my system
(In reply to higuita from comment #2) > Ok, thanks... but building mesa-git i get this, that is similar to what i > get just by removing the bad llvm flag: > > > Making all in amd > make[3]: Entering directory > '/tmp/mesa-d7d64f1091006fb6faa48705c53f19ff5c657bc8/src/amd' > make all-am > make[4]: Entering directory > '/tmp/mesa-d7d64f1091006fb6faa48705c53f19ff5c657bc8/src/amd' > CXX common/common_libamd_common_la-ac_llvm_helper.lo > In file included from /usr/include/sys/types.h:146:0, > from /usr/include/llvm/Support/DataTypes.h:69, > from /usr/include/llvm-c/Types.h:17, > from /usr/include/llvm-c/TargetMachine.h:22, > from common/ac_llvm_util.h:28, > from common/ac_llvm_helper.cpp:34: > /usr/lib64/clang/4.0.0/include/stddef.h:57:39: error: missing binary > operator before token "(" > #if !defined(_SIZE_T) || __has_feature(modules) > ^ > In file included from /usr/include/wchar.h:51:0, > from /usr/include/c++/5.4.0/cwchar:44, > from /usr/include/c++/5.4.0/bits/postypes.h:40, > from /usr/include/c++/5.4.0/bits/char_traits.h:40, > from /usr/include/c++/5.4.0/string:40, > from /usr/include/llvm/MC/MCTargetOptions.h:13, > from /usr/include/llvm/Target/TargetOptions.h:18, > from common/ac_llvm_helper.cpp:36: > /usr/lib64/clang/4.0.0/include/stddef.h:57:39: error: missing binary > operator before token "(" > #if !defined(_SIZE_T) || __has_feature(modules) > ^ > /usr/lib64/clang/4.0.0/include/stddef.h:128:39: error: missing binary > operator before token "(" > #if !defined(_WINT_T) || __has_feature(modules) This is mixing llvm standard headers while compiling with gcc. I'd say "-isystem /usr/lib64/clang/4.0.0/include/" is the culprit here. Not sure where it came from, maybe it needs to be stripped as well. humm... "-isystem /usr/lib64/clang/4.0.0/include/" you say... let me check... yep, this is my fault! i had some problems with llvm 4.0.0rc1 and add that to try to workaround it... and forgot to remove it in rc2. Now the llvmconfig --cxxflags also have this flag. As this was a "bad option", i think there is no need to remove more flags So sorry, my bad, i will close this. But thanks for the help and for mesa! |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.