[Mesa-dev] [Bug 100028] Mesa 17+llvm 4.0.0rc2 fail to compile

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Mar 2 23:32:13 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=100028

--- Comment #3 from Jan Vesely <jan.vesely at rutgers.edu> ---
(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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170302/6897b298/attachment-0001.html>


More information about the mesa-dev mailing list