I just tried again with clang / llvm Build -r111621 but had the same errors.
I tried to build without turning the “example” flag on for both clang & llvm in CMake GUI.
This builds without errors.
I ran clang-test and I had the following results:
1> Failing Tests (34):
1> Clang :: Analysis/complex.c
1> Clang :: Driver/darwin-ld.c
1> Clang :: Index/code-complete-errors.c
1> Clang :: Index/code-completion.cpp
1> Clang :: Index/complete-at-directives.m
1> Clang :: Index/complete-at-exprstmt.m
1> Clang :: Index/complete-categories.m
1> Clang :: Index/complete-enums.c
1> Clang :: Index/complete-exprs.c
1> Clang :: Index/complete-hiding.c
1> Clang :: Index/complete-interfaces.m
1> Clang :: Index/complete-macros.c
1> Clang :: Index/complete-member-access.m
1> Clang :: Index/complete-method-decls.m
1> Clang :: Index/complete-objc-message-id.m
1> Clang :: Index/complete-objc-message.m
1> Clang :: Index/complete-pch.m
1> Clang :: Index/complete-properties.m
1> Clang :: Index/complete-property-flags.m
1> Clang :: Index/complete-property-getset.m
1> Clang :: Index/complete-protocols.m
1> Clang :: Index/complete-recovery.m
1> Clang :: Index/complete-tabs.c
1> Clang :: Index/complete-type-factors.m
1> Clang :: Index/complete-unterminated.c
1> Clang :: Index/preamble-reparse.c
1> Clang :: Index/preamble.c
1> Clang :: Lexer/digraph.c
1> Clang :: Misc/predefines.c
1> Clang :: Preprocessor/objc-pp.m
1> Clang :: Sema/const-ptr-int-ptr-cast.c
1> Clang :: Sema/init.c
1> Clang :: SemaCXX/nullptr.cpp
1> Clang :: SemaCXX/reinterpret-cast.cpp
1>
1> Expected Passes : 2416
1> Expected Failures : 30
1> Unexpected Failures: 34
Some of the errors that occurred often in clang-test were below:
1>CUSTOMBUILD : error : ‘error’ diagnostics seen but not expected:
1>
1> Line 48: unknown type name ‘__w64’
1>
1> Line 48: expected identifier or ‘(’
1>
1> Line 402: unknown type name ‘__w64’
1>
1> Line 402: expected identifier or ‘(’
1>
1> Line 409: unknown type name ‘size_t’
1>
1> Line 418: unknown type name ‘__w64’
1>
1> Line 418: expected identifier or ‘(’
1>
1> Line 436: unknown type name ‘__w64’
1>
1> Line 436: expected identifier or ‘(’
1>
1> Line 473: unknown type name ‘__w64’
1>
1> Line 473: expected identifier or ‘(’
1>
1> Line 478: unknown type name ‘__int64’
1>
1> Line 553: unknown type name ‘__int64’
1>
1> Line 554: expected ‘;’ after top level declarator
1>
1> Line 60: unknown type name ‘_ULonglong’
1>
1> Line 63: unknown type name ‘_ULonglong’
1>
1> Line 66: unknown type name ‘_ULonglong’
1>
1> Line 69: unknown type name ‘_ULonglong’
1>
1> Line 12: use of undeclared identifier ‘intptr_t’
1>
1> Line 16: use of undeclared identifier ‘intptr_t’
Any suggestions anyone?
Yahya