Skip to content

Instantly share code, notes, and snippets.

@jamescasbon
Last active January 2, 2016 15:09
Show Gist options
  • Save jamescasbon/8321533 to your computer and use it in GitHub Desktop.
Save jamescasbon/8321533 to your computer and use it in GitHub Desktop.
xdress clang build against llvm3.4 built from source
(xdress)~/S/xdress git:clang ❯❯❯ unset CPPFLAGS
(xdress)~/S/xdress git:clang ❯❯❯ unset LD_LIBRARY_PATH
(xdress)~/S/xdress git:clang ❯❯❯ python setup.py build
XXXXXXX XXXXXXXDDDDDDDDDDDDD
X:::::X X:::::XD::::::::::::DDD
X:::::X X:::::XD:::::::::::::::DD
X::::::X X::::::XDDD:::::DDDDD:::::D
XXX:::::X X:::::XXX D:::::D D:::::D
X:::::X X:::::X D:::::D D:::::D
X:::::X:::::X D:::::D D:::::D
X:::::::::X D:::::D D:::::D
X:::::::::X D:::::D D:::::D
X:::::X:::::X D:::::D D:::::D
X:::::X X:::::X D:::::D D:::::D
XXX:::::X X:::::XXX D:::::D D:::::D
X::::::X X::::::XDDD:::::DDDDD:::::D
X:::::X X:::::XD:::::::::::::::DD
X:::::X X:::::XD::::::::::::DDD
XXXXXXX XXXXXXXDDDDDDDDDDDDD
running build
running build_py
running build_ext
building 'xdress.clang.libclang' extension
gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -fPIC -DXDRESS=1 -I/home/james/Src/xdress/xdress/clang -I/usr/include/python2.7 -c /home/james/Src/xdress/xdress/clang/src/CIndexUSRs.cpp -o build/temp.linux-x86_64-2.7/home/james/Src/xdress/xdress/clang/src/CIndexUSRs.o -I/usr/include -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fno-rtti
gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -fPIC -DXDRESS=1 -I/home/james/Src/xdress/xdress/clang -I/usr/include/python2.7 -c /home/james/Src/xdress/xdress/clang/src/CIndexHigh.cpp -o build/temp.linux-x86_64-2.7/home/james/Src/xdress/xdress/clang/src/CIndexHigh.o -I/usr/include -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fno-rtti
gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -fPIC -DXDRESS=1 -I/home/james/Src/xdress/xdress/clang -I/usr/include/python2.7 -c /home/james/Src/xdress/xdress/clang/src/IndexTypeSourceInfo.cpp -o build/temp.linux-x86_64-2.7/home/james/Src/xdress/xdress/clang/src/IndexTypeSourceInfo.o -I/usr/include -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fno-rtti
In file included from /home/james/Src/xdress/xdress/clang/src/IndexTypeSourceInfo.cpp:11:0:
/usr/include/clang/AST/DeclNodes.inc:435:1: error: ‘OMPThreadPrivateDecl’ has not been declared
OMPTHREADPRIVATE(OMPThreadPrivate, Decl)
^
In file included from /home/james/Src/xdress/xdress/clang/src/IndexTypeSourceInfo.cpp:11:0:
/usr/include/clang/AST/DeclNodes.inc:435:1: error: ‘OMPThreadPrivateDecl’ has not been declared
OMPTHREADPRIVATE(OMPThreadPrivate, Decl)
^
/usr/include/clang/AST/DeclNodes.inc:435:1: error: ‘OMPThreadPrivateDecl’ has not been declared
OMPTHREADPRIVATE(OMPThreadPrivate, Decl)
^
In file included from /home/james/Src/xdress/xdress/clang/src/IndexTypeSourceInfo.cpp:11:0:
/usr/include/clang/AST/DeclNodes.inc: In member function ‘bool clang::cxindex::RecursiveASTVisitor<Derived>::TraverseDecl(clang::Decl*)’:
/usr/include/clang/AST/DeclNodes.inc:435:1: error: expected type-specifier before ‘OMPThreadPrivateDecl’
OMPTHREADPRIVATE(OMPThreadPrivate, Decl)
^
/usr/include/clang/AST/DeclNodes.inc:435:1: error: expected ‘>’ before ‘OMPThreadPrivateDecl’
/usr/include/clang/AST/DeclNodes.inc:435:1: error: expected ‘(’ before ‘OMPThreadPrivateDecl’
/usr/include/clang/AST/DeclNodes.inc:435:1: error: ‘OMPThreadPrivateDecl’ was not declared in this scope
/home/james/Src/xdress/xdress/clang/src/RecursiveASTVisitor.h:461:56: error: expected primary-expression before ‘>’ token
return getDerived().Traverse##NAME(static_cast<CLASS*>(VAR))
^
In file included from /home/james/Src/xdress/xdress/clang/src/IndexTypeSourceInfo.cpp:11:0:
/home/james/Src/xdress/xdress/clang/src/RecursiveASTVisitor.h: In member function ‘bool clang::cxindex::RecursiveASTVisitor<Derived>::TraverseClassTemplatePartialSpecializationDecl(clang::ClassTemplatePartialSpecializationDecl*)’:
/home/james/Src/xdress/xdress/clang/src/RecursiveASTVisitor.h:1676:34: error: ‘class clang::TemplateArgumentLoc’ has no member named ‘getTemplateArgs’
D->getTemplateArgsAsWritten()->getTemplateArgs(), \
^
/home/james/Src/xdress/xdress/clang/src/RecursiveASTVisitor.h:1226:5: note: in definition of macro ‘DEF_TRAVERSE_DECL’
{ CODE; } \
^
/home/james/Src/xdress/xdress/clang/src/RecursiveASTVisitor.h:1689:5: note: in expansion of macro ‘TRY_TO’
TRY_TO(TraverseTemplateArgumentLocsHelper(TEMPLATE_ARGS_INFO));
^
/home/james/Src/xdress/xdress/clang/src/RecursiveASTVisitor.h:1689:47: note: in expansion of macro ‘TEMPLATE_ARGS_INFO’
TRY_TO(TraverseTemplateArgumentLocsHelper(TEMPLATE_ARGS_INFO));
^
/home/james/Src/xdress/xdress/clang/src/RecursiveASTVisitor.h:1677:34: error: ‘class clang::TemplateArgumentLoc’ has no member named ‘NumTemplateArgs’
D->getTemplateArgsAsWritten()->NumTemplateArgs
^
/home/james/Src/xdress/xdress/clang/src/RecursiveASTVisitor.h:1226:5: note: in definition of macro ‘DEF_TRAVERSE_DECL’
{ CODE; } \
^
/home/james/Src/xdress/xdress/clang/src/RecursiveASTVisitor.h:1689:5: note: in expansion of macro ‘TRY_TO’
TRY_TO(TraverseTemplateArgumentLocsHelper(TEMPLATE_ARGS_INFO));
^
/home/james/Src/xdress/xdress/clang/src/RecursiveASTVisitor.h:1689:47: note: in expansion of macro ‘TEMPLATE_ARGS_INFO’
TRY_TO(TraverseTemplateArgumentLocsHelper(TEMPLATE_ARGS_INFO));
^
/home/james/Src/xdress/xdress/clang/src/RecursiveASTVisitor.h: At global scope:
/home/james/Src/xdress/xdress/clang/src/RecursiveASTVisitor.h:2254:19: error: ‘bool clang::cxindex::RecursiveASTVisitor<Derived>::TraverseCXXStdInitializerListExpr’ is not a static member of ‘class clang::cxindex::RecursiveASTVisitor<Derived>’
DEF_TRAVERSE_STMT(CXXStdInitializerListExpr, { })
^
/home/james/Src/xdress/xdress/clang/src/RecursiveASTVisitor.h:1918:52: note: in definition of macro ‘DEF_TRAVERSE_STMT’
bool RecursiveASTVisitor<Derived>::Traverse##STMT (STMT *S) { \
^
/home/james/Src/xdress/xdress/clang/src/RecursiveASTVisitor.h:2254:19: error: template definition of non-template ‘bool clang::cxindex::RecursiveASTVisitor<Derived>::TraverseCXXStdInitializerListExpr’
DEF_TRAVERSE_STMT(CXXStdInitializerListExpr, { })
^
/home/james/Src/xdress/xdress/clang/src/RecursiveASTVisitor.h:1918:52: note: in definition of macro ‘DEF_TRAVERSE_STMT’
bool RecursiveASTVisitor<Derived>::Traverse##STMT (STMT *S) { \
^
/home/james/Src/xdress/xdress/clang/src/RecursiveASTVisitor.h:2254:19: error: ‘CXXStdInitializerListExpr’ was not declared in this scope
DEF_TRAVERSE_STMT(CXXStdInitializerListExpr, { })
^
/home/james/Src/xdress/xdress/clang/src/RecursiveASTVisitor.h:1918:52: note: in definition of macro ‘DEF_TRAVERSE_STMT’
bool RecursiveASTVisitor<Derived>::Traverse##STMT (STMT *S) { \
^
/home/james/Src/xdress/xdress/clang/src/RecursiveASTVisitor.h:1918:58: error: ‘S’ was not declared in this scope
bool RecursiveASTVisitor<Derived>::Traverse##STMT (STMT *S) { \
^
/home/james/Src/xdress/xdress/clang/src/RecursiveASTVisitor.h:2254:1: note: in expansion of macro ‘DEF_TRAVERSE_STMT’
DEF_TRAVERSE_STMT(CXXStdInitializerListExpr, { })
^
/home/james/Src/xdress/xdress/clang/src/RecursiveASTVisitor.h:2294:19: error: ‘bool clang::cxindex::RecursiveASTVisitor<Derived>::TraverseConvertVectorExpr’ is not a static member of ‘class clang::cxindex::RecursiveASTVisitor<Derived>’
DEF_TRAVERSE_STMT(ConvertVectorExpr, { })
^
/home/james/Src/xdress/xdress/clang/src/RecursiveASTVisitor.h:1918:52: note: in definition of macro ‘DEF_TRAVERSE_STMT’
bool RecursiveASTVisitor<Derived>::Traverse##STMT (STMT *S) { \
^
/home/james/Src/xdress/xdress/clang/src/RecursiveASTVisitor.h:2294:19: error: template definition of non-template ‘bool clang::cxindex::RecursiveASTVisitor<Derived>::TraverseConvertVectorExpr’
DEF_TRAVERSE_STMT(ConvertVectorExpr, { })
^
/home/james/Src/xdress/xdress/clang/src/RecursiveASTVisitor.h:1918:52: note: in definition of macro ‘DEF_TRAVERSE_STMT’
bool RecursiveASTVisitor<Derived>::Traverse##STMT (STMT *S) { \
^
/home/james/Src/xdress/xdress/clang/src/RecursiveASTVisitor.h:2294:19: error: ‘ConvertVectorExpr’ was not declared in this scope
DEF_TRAVERSE_STMT(ConvertVectorExpr, { })
^
/home/james/Src/xdress/xdress/clang/src/RecursiveASTVisitor.h:1918:52: note: in definition of macro ‘DEF_TRAVERSE_STMT’
bool RecursiveASTVisitor<Derived>::Traverse##STMT (STMT *S) { \
^
/home/james/Src/xdress/xdress/clang/src/RecursiveASTVisitor.h:1918:58: error: ‘S’ was not declared in this scope
bool RecursiveASTVisitor<Derived>::Traverse##STMT (STMT *S) { \
^
/home/james/Src/xdress/xdress/clang/src/RecursiveASTVisitor.h:2294:1: note: in expansion of macro ‘DEF_TRAVERSE_STMT’
DEF_TRAVERSE_STMT(ConvertVectorExpr, { })
^
error: command 'gcc' failed with exit status 1
(xdress)~/S/xdress git:clang ❯❯❯ export LD_LIBRARY_PATH=~/Src/llvm-3.4/build/Release+Asserts/lib
(xdress)~/S/xdress git:clang ❯❯❯ export CPPFLAGS="-I/home/james/Src/llvm-3.4/include -I/home/james/Src/llvm-3.4/tools/clang/include"
(xdress)~/S/xdress git:clang ❯❯❯ python setup.py build
XXXXXXX XXXXXXXDDDDDDDDDDDDD
X:::::X X:::::XD::::::::::::DDD
X:::::X X:::::XD:::::::::::::::DD
X::::::X X::::::XDDD:::::DDDDD:::::D
XXX:::::X X:::::XXX D:::::D D:::::D
X:::::X X:::::X D:::::D D:::::D
X:::::X:::::X D:::::D D:::::D
X:::::::::X D:::::D D:::::D
X:::::::::X D:::::D D:::::D
X:::::X:::::X D:::::D D:::::D
X:::::X X:::::X D:::::D D:::::D
XXX:::::X X:::::XXX D:::::D D:::::D
X::::::X X::::::XDDD:::::DDDDD:::::D
X:::::X X:::::XD:::::::::::::::DD
X:::::X X:::::XD::::::::::::DDD
XXXXXXX XXXXXXXDDDDDDDDDDDDD
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/xdress
copying xdress/version.py -> build/lib.linux-x86_64-2.7/xdress
copying xdress/astparsers.py -> build/lib.linux-x86_64-2.7/xdress
copying xdress/base.py -> build/lib.linux-x86_64-2.7/xdress
copying xdress/utils.py -> build/lib.linux-x86_64-2.7/xdress
copying xdress/stlwrap.py -> build/lib.linux-x86_64-2.7/xdress
copying xdress/__init__.py -> build/lib.linux-x86_64-2.7/xdress
copying xdress/autoall.py -> build/lib.linux-x86_64-2.7/xdress
copying xdress/doxygen.py -> build/lib.linux-x86_64-2.7/xdress
copying xdress/main.py -> build/lib.linux-x86_64-2.7/xdress
copying xdress/cythongen.py -> build/lib.linux-x86_64-2.7/xdress
copying xdress/typesystem.py -> build/lib.linux-x86_64-2.7/xdress
copying xdress/pep8names.py -> build/lib.linux-x86_64-2.7/xdress
copying xdress/autodescribe.py -> build/lib.linux-x86_64-2.7/xdress
copying xdress/descfilter.py -> build/lib.linux-x86_64-2.7/xdress
copying xdress/plugins.py -> build/lib.linux-x86_64-2.7/xdress
copying xdress/dtypes.py -> build/lib.linux-x86_64-2.7/xdress
copying xdress/extratypes.py -> build/lib.linux-x86_64-2.7/xdress
creating build/lib.linux-x86_64-2.7/xdress/clang
copying xdress/clang/enumerations.py -> build/lib.linux-x86_64-2.7/xdress/clang
copying xdress/clang/__init__.py -> build/lib.linux-x86_64-2.7/xdress/clang
copying xdress/clang/cindex.py -> build/lib.linux-x86_64-2.7/xdress/clang
copying xdress/xdress_extra_types.pxd -> build/lib.linux-x86_64-2.7/xdress
copying xdress/xdress_extra_types.pyx -> build/lib.linux-x86_64-2.7/xdress
copying xdress/xdress_extra_types.h -> build/lib.linux-x86_64-2.7/xdress
running build_ext
building 'xdress.clang.libclang' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/home
creating build/temp.linux-x86_64-2.7/home/james
creating build/temp.linux-x86_64-2.7/home/james/Src
creating build/temp.linux-x86_64-2.7/home/james/Src/xdress
creating build/temp.linux-x86_64-2.7/home/james/Src/xdress/xdress
creating build/temp.linux-x86_64-2.7/home/james/Src/xdress/xdress/clang
creating build/temp.linux-x86_64-2.7/home/james/Src/xdress/xdress/clang/src
gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -I/home/james/Src/llvm-3.4/include -I/home/james/Src/llvm-3.4/tools/clang/include -fPIC -DXDRESS=1 -I/home/james/Src/xdress/xdress/clang -I/usr/include/python2.7 -c /home/james/Src/xdress/xdress/clang/src/CIndexUSRs.cpp -o build/temp.linux-x86_64-2.7/home/james/Src/xdress/xdress/clang/src/CIndexUSRs.o -I/usr/include -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fno-rtti
gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -I/home/james/Src/llvm-3.4/include -I/home/james/Src/llvm-3.4/tools/clang/include -fPIC -DXDRESS=1 -I/home/james/Src/xdress/xdress/clang -I/usr/include/python2.7 -c /home/james/Src/xdress/xdress/clang/src/CIndexHigh.cpp -o build/temp.linux-x86_64-2.7/home/james/Src/xdress/xdress/clang/src/CIndexHigh.o -I/usr/include -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fno-rtti
In file included from /home/james/Src/llvm-3.4/tools/clang/include/clang/Basic/DiagnosticIDs.h:53:0,
from /home/james/Src/llvm-3.4/tools/clang/include/clang/Basic/Diagnostic.h:18,
from /home/james/Src/llvm-3.4/tools/clang/include/clang/Basic/PartialDiagnostic.h:19,
from /home/james/Src/llvm-3.4/tools/clang/include/clang/AST/DeclarationName.h:17,
from /home/james/Src/llvm-3.4/tools/clang/include/clang/AST/DeclBase.h:18,
from /home/james/Src/llvm-3.4/tools/clang/include/clang/AST/Decl.h:18,
from /home/james/Src/llvm-3.4/tools/clang/include/clang/AST/DeclVisitor.h:16,
from /home/james/Src/xdress/xdress/clang/src/CursorVisitor.h:16,
from /home/james/Src/xdress/xdress/clang/src/CIndexHigh.cpp:10:
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:6:139: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(err_attribute_not_type_attr, CLASS_ERROR, diag::MAP_ERROR, "%0 attribute cannot be applied to types", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:7:118: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(err_cannot_open_file, CLASS_ERROR, diag::MAP_FATAL, "cannot open file '%0': %1", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:8:146: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(err_default_special_members, CLASS_ERROR, diag::MAP_ERROR, "only special member functions may be defaulted", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:9:140: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(err_deleted_non_function, CLASS_ERROR, diag::MAP_ERROR, "only functions can have deleted definitions", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:10:122: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(err_enum_template, CLASS_ERROR, diag::MAP_ERROR, "enumeration cannot be a template", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:11:103: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(err_expected_colon, CLASS_ERROR, diag::MAP_ERROR, "expected ':'", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:12:178: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(err_expected_colon_after_setter_name, CLASS_ERROR, diag::MAP_ERROR, "method name referenced in property setter attribute must end with ':'", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:13:123: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(err_expected_namespace_name, CLASS_ERROR, diag::MAP_ERROR, "expected namespace name", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:14:228: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(err_expected_string_literal, CLASS_ERROR, diag::MAP_ERROR, "expected string literal %select{in %1|for diagnostic message in static_assert|for optional message in 'availability' attribute}0", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:15:137: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(err_file_modified, CLASS_ERROR, diag::MAP_FATAL, "file '%0' modified since it was first processed", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:16:160: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(err_invalid_character_udl, CLASS_ERROR, diag::MAP_ERROR, "character literal with user-defined suffix cannot be used here", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:17:156: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(err_invalid_numeric_udl, CLASS_ERROR, diag::MAP_ERROR, "numeric literal with user-defined suffix cannot be used here", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:18:165: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(err_invalid_storage_class_in_func_decl, CLASS_ERROR, diag::MAP_ERROR, "invalid storage class specifier in function declarator", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:19:154: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(err_invalid_string_udl, CLASS_ERROR, diag::MAP_ERROR, "string literal with user-defined suffix cannot be used here", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:20:125: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(err_module_cycle, CLASS_ERROR, diag::MAP_FATAL, "cyclic dependency in module '%0': %1", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:21:136: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(err_module_file_conflict, CLASS_ERROR, diag::MAP_ERROR, "module '%0' found in both '%1' and '%2'", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:22:120: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(err_module_not_built, CLASS_ERROR, diag::MAP_FATAL, "could not build module '%0'", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:23:114: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(err_module_not_found, CLASS_ERROR, diag::MAP_FATAL, "module '%0' not found", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:24:123: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(err_param_redefinition, CLASS_ERROR, diag::MAP_ERROR, "redefinition of parameter %0", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:25:126: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(err_target_invalid_feature, CLASS_ERROR, diag::MAP_ERROR, "invalid target feature '%0'", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:26:118: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(err_target_unknown_abi, CLASS_ERROR, diag::MAP_ERROR, "unknown target ABI '%0'", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:27:118: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(err_target_unknown_cpu, CLASS_ERROR, diag::MAP_ERROR, "unknown target CPU '%0'", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:28:118: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(err_target_unknown_cxxabi, CLASS_ERROR, diag::MAP_ERROR, "unknown C++ ABI '%0'", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:29:153: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(err_target_unknown_triple, CLASS_ERROR, diag::MAP_ERROR, "unknown target triple '%0', please use -triple or -arch", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:30:129: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(err_unable_to_make_temp, CLASS_ERROR, diag::MAP_ERROR, "unable to make temporary file: %0", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:31:155: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(err_unable_to_rename_temp, CLASS_ERROR, diag::MAP_ERROR, "unable to rename temporary '%0' to output file '%1': '%2'", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:32:158: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(err_unsupported_bom, CLASS_ERROR, diag::MAP_FATAL, "%0 byte order mark detected in '%1', but encoding is not supported", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:33:152: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(ext_c99_longlong, CLASS_EXTENSION, diag::MAP_IGNORE, "'long long' is an extension when C99 mode is not enabled", 195, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:34:129: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(ext_cxx11_longlong, CLASS_EXTENSION, diag::MAP_IGNORE, "'long long' is a C++11 extension", 56, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:35:142: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(ext_variadic_templates, CLASS_EXTENSION, diag::MAP_WARNING, "variadic templates are a C++11 extension", 54, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:36:131: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(fatal_too_many_errors, CLASS_ERROR, diag::MAP_FATAL, "too many errors emitted, stopping now", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:37:97: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(note_also_found, CLASS_NOTE, diag::MAP_FATAL, "also found", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:38:149: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(note_decl_hiding_tag_type, CLASS_NOTE, diag::MAP_FATAL, "%1 %0 is hidden by a non-type declaration of %0 here", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:39:101: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(note_declared_at, CLASS_NOTE, diag::MAP_FATAL, "declared here", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:40:122: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(note_duplicate_case_prev, CLASS_NOTE, diag::MAP_FATAL, "previous case defined here", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:41:121: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(note_forward_declaration, CLASS_NOTE, diag::MAP_FATAL, "forward declaration of %0", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:42:154: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(note_invalid_subexpr_in_const_expr, CLASS_NOTE, diag::MAP_FATAL, "subexpression not valid in a constant expression", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:43:103: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(note_matching, CLASS_NOTE, diag::MAP_FATAL, "to match this '%0'", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:44:103: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(note_possibility, CLASS_NOTE, diag::MAP_FATAL, "one possibility", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:45:116: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(note_pragma_entered_here, CLASS_NOTE, diag::MAP_FATAL, "#pragma entered here", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:46:125: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(note_previous_declaration, CLASS_NOTE, diag::MAP_FATAL, "previous declaration is here", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:47:123: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(note_previous_definition, CLASS_NOTE, diag::MAP_FATAL, "previous definition is here", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:48:143: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(note_previous_implicit_declaration, CLASS_NOTE, diag::MAP_FATAL, "previous implicit declaration is here", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:49:109: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(note_previous_use, CLASS_NOTE, diag::MAP_FATAL, "previous use is here", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:50:149: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(note_type_being_defined, CLASS_NOTE, diag::MAP_FATAL, "definition of %0 is not complete until the closing '}'", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:51:87: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(note_using, CLASS_NOTE, diag::MAP_FATAL, "using", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:52:141: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(warn_cxx98_compat_longlong, CLASS_WARNING, diag::MAP_IGNORE, "'long long' is incompatible with C++98", 62, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:53:159: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(warn_cxx98_compat_variadic_templates, CLASS_WARNING, diag::MAP_IGNORE, "variadic templates are incompatible with C++98", 59, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:54:141: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(warn_integer_too_large, CLASS_WARNING, diag::MAP_WARNING, "integer constant is too large for its type", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:55:158: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(warn_integer_too_large_for_signed, CLASS_WARNING, diag::MAP_WARNING, "integer constant is so large that it is unsigned", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:56:143: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(warn_method_param_declaration, CLASS_WARNING, diag::MAP_IGNORE, "redeclaration of method parameter %0", 117, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:57:142: error: macro "DIAG" passed 10 arguments, but takes just 9
DIAG(warn_method_param_redefinition, CLASS_WARNING, diag::MAP_WARNING, "redefinition of method parameter %0", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:7:1: error: expected ‘}’ before ‘DIAG’
DIAG(err_cannot_open_file, CLASS_ERROR, diag::MAP_FATAL, "cannot open file '%0': %1", 0, true, false, false, false, 0)
^
/usr/include/clang/Basic/DiagnosticCommonKinds.inc:8:1: error: expected initializer before ‘DIAG’
DIAG(err_default_special_members, CLASS_ERROR, diag::MAP_ERROR, "only special member functions may be defaulted", 0, true, false, false, false, 0)
^
In file included from /home/james/Src/llvm-3.4/tools/clang/include/clang/Basic/Diagnostic.h:18:0,
from /home/james/Src/llvm-3.4/tools/clang/include/clang/Basic/PartialDiagnostic.h:19,
from /home/james/Src/llvm-3.4/tools/clang/include/clang/AST/DeclarationName.h:17,
from /home/james/Src/llvm-3.4/tools/clang/include/clang/AST/DeclBase.h:18,
from /home/james/Src/llvm-3.4/tools/clang/include/clang/AST/Decl.h:18,
from /home/james/Src/llvm-3.4/tools/clang/include/clang/AST/DeclVisitor.h:16,
from /home/james/Src/xdress/xdress/clang/src/CursorVisitor.h:16,
from /home/james/Src/xdress/xdress/clang/src/CIndexHigh.cpp:10:
/home/james/Src/llvm-3.4/tools/clang/include/clang/Basic/DiagnosticIDs.h:81:37: error: ‘diag’ has not been declared
static DiagnosticMappingInfo Make(diag::Mapping Mapping, bool IsUser,
^
/home/james/Src/llvm-3.4/tools/clang/include/clang/Basic/DiagnosticIDs.h:81:51: error: expected ‘,’ or ‘...’ before ‘Mapping’
static DiagnosticMappingInfo Make(diag::Mapping Mapping, bool IsUser,
^
/home/james/Src/llvm-3.4/tools/clang/include/clang/Basic/DiagnosticIDs.h:93:3: error: ‘diag’ does not name a type
diag::Mapping getMapping() const { return diag::Mapping(Mapping); }
^
/home/james/Src/llvm-3.4/tools/clang/include/clang/Basic/DiagnosticIDs.h:94:19: error: ‘diag’ has not been declared
void setMapping(diag::Mapping Value) { Mapping = Value; }
^
/home/james/Src/llvm-3.4/tools/clang/include/clang/Basic/DiagnosticIDs.h:94:33: error: expected ‘,’ or ‘...’ before ‘Value’
void setMapping(diag::Mapping Value) { Mapping = Value; }
^
/home/james/Src/llvm-3.4/tools/clang/include/clang/Basic/DiagnosticIDs.h: In static member function ‘static DiagnosticMappingInfo DiagnosticMappingInfo::Make(int)’:
/home/james/Src/llvm-3.4/tools/clang/include/clang/Basic/DiagnosticIDs.h:74:21: error: invalid use of member ‘DiagnosticMappingInfo::IsUser’ in static member function
unsigned IsUser : 1;
^
/home/james/Src/llvm-3.4/tools/clang/include/clang/Basic/DiagnosticIDs.h:85:21: error: from this location
Result.IsUser = IsUser;
^
/home/james/Src/llvm-3.4/tools/clang/include/clang/Basic/DiagnosticIDs.h:75:23: error: invalid use of member ‘DiagnosticMappingInfo::IsPragma’ in static member function
unsigned IsPragma : 1;
^
/home/james/Src/llvm-3.4/tools/clang/include/clang/Basic/DiagnosticIDs.h:86:23: error: from this location
Result.IsPragma = IsPragma;
^
/home/james/Src/llvm-3.4/tools/clang/include/clang/Basic/DiagnosticIDs.h: In member function ‘void DiagnosticMappingInfo::setMapping(int)’:
/home/james/Src/llvm-3.4/tools/clang/include/clang/Basic/DiagnosticIDs.h:94:52: error: ‘Value’ was not declared in this scope
void setMapping(diag::Mapping Value) { Mapping = Value; }
^
/home/james/Src/llvm-3.4/tools/clang/include/clang/Basic/DiagnosticIDs.h: At global scope:
/home/james/Src/llvm-3.4/tools/clang/include/clang/Basic/DiagnosticIDs.h:112:44: error: expected template-name before ‘<’ token
class DiagnosticIDs : public RefCountedBase<DiagnosticIDs> {
^
/home/james/Src/llvm-3.4/tools/clang/include/clang/Basic/DiagnosticIDs.h:112:44: error: expected ‘{’ before ‘<’ token
/home/james/Src/llvm-3.4/tools/clang/include/clang/Basic/DiagnosticIDs.h:112:44: error: expected unqualified-id before ‘<’ token
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment