Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Created July 8, 2011 23:45
Show Gist options
  • Save springmeyer/1073097 to your computer and use it in GitHub Desktop.
Save springmeyer/1073097 to your computer and use it in GitHub Desktop.
clang++ -include-pch mapnik.h.pch -o src/svg_parser.os -c -DHAVE_JPEG -DBOOST_REGEX_HAS_ICU -ansi -Wall -Wno-unused-function -Wno-uninitialized -Wno-array-bounds -Wno-parentheses -Wno-char-subscripts -ftemplate-depth-200 -DDARWIN -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -O3 -finline-functions -Wno-inline -DNDEBUG -fPIC -Iagg/include -Iinclude -I. -I/opt/icu/include -I/opt/boost-trunk/include -I/Library/Frameworks/UnixImageIO.framework/Headers -I/usr/local/include -I/usr/include -I/usr/X11/include/freetype2 -I/usr/X11/include -I/usr/include/libxml2 src/svg_parser.cpp
clang++ -include-pch mapnik.h.pch -o src/svg_transform_parser.os -c -DHAVE_JPEG -DBOOST_REGEX_HAS_ICU -ansi -Wall -Wno-unused-function -Wno-uninitialized -Wno-array-bounds -Wno-parentheses -Wno-char-subscripts -ftemplate-depth-200 -DDARWIN -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -O3 -finline-functions -Wno-inline -DNDEBUG -fPIC -Iagg/include -Iinclude -I. -I/opt/icu/include -I/opt/boost-trunk/include -I/Library/Frameworks/UnixImageIO.framework/Headers -I/usr/local/include -I/usr/include -I/usr/X11/include/freetype2 -I/usr/X11/include -I/usr/include/libxml2 src/svg_transform_parser.cpp
Assertion failed: (DC && "This decl is not contained in a translation unit!"), function getTranslationUnitDecl, file DeclBase.cpp, line 213.
0 clang 0x0000000101700b82 llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) + 754
1 clang 0x00000001017019d3 llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) + 4419
2 libSystem.B.dylib 0x00007fff86e6766a _sigtramp + 26
3 libSystem.B.dylib 000000000000000000 _sigtramp + 2031716784
4 clang 0x000000010001a652 std::vector<llvm::PassRegistrationListener*, std::allocator<llvm::PassRegistrationListener*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::PassRegistrationListener**, std::vector<llvm::PassRegistrationListener*, std::allocator<llvm::PassRegistrationListener*> > >, llvm::PassRegistrationListener* const&) + 4786
5 clang 0x00000001008df069 clang::NamedDecl::getNameForDiagnostic(std::string&, clang::PrintingPolicy const&, bool) const + 16105
6 clang 0x00000001008df683 clang::NamedDecl::getNameForDiagnostic(std::string&, clang::PrintingPolicy const&, bool) const + 17667
7 clang 0x00000001001279a3 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 35939
8 clang 0x000000010012ed98 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 65624
9 clang 0x000000010012f46c clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 67372
10 clang 0x000000010012febf clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 70015
11 clang 0x0000000100130c08 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 73416
12 clang 0x000000010013140f clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 75471
13 clang 0x00000001000f205f clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 57759
14 clang 0x0000000100127966 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 35878
15 clang 0x000000010012ed98 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 65624
16 clang 0x000000010012f46c clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 67372
17 clang 0x000000010012febf clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 70015
18 clang 0x0000000100130c08 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 73416
19 clang 0x000000010013140f clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 75471
20 clang 0x00000001000f205f clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 57759
21 clang 0x00000001001278fd clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 35773
22 clang 0x000000010012ed98 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 65624
23 clang 0x000000010012f46c clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 67372
24 clang 0x000000010012febf clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 70015
25 clang 0x0000000100130c08 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 73416
26 clang 0x000000010013140f clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 75471
27 clang 0x00000001000f205f clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 57759
28 clang 0x0000000100127966 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 35878
29 clang 0x000000010012ed98 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 65624
30 clang 0x000000010012f46c clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 67372
31 clang 0x000000010012febf clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 70015
32 clang 0x0000000100130c08 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 73416
33 clang 0x000000010013140f clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 75471
34 clang 0x00000001000f205f clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 57759
35 clang 0x00000001001278fd clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 35773
36 clang 0x0000000100136025 clang::DeclVisitor<clang::ASTDeclReader, void>::Visit(clang::Decl*) + 1877
37 clang 0x0000000100130c08 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 73416
38 clang 0x000000010013140f clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 75471
39 clang 0x00000001000f205f clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 57759
40 clang 0x00000001001044d6 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 132630
41 clang 0x00000001001059d7 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 138007
42 clang 0x0000000100103ac9 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 130057
43 clang 0x00000001001059d7 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 138007
44 clang 0x00000001001079d0 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 146192
45 clang 0x00000001001360a2 clang::DeclVisitor<clang::ASTDeclReader, void>::Visit(clang::Decl*) + 2002
46 clang 0x0000000100130c08 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 73416
47 clang 0x000000010013140f clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 75471
48 clang 0x00000001000f205f clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 57759
49 clang 0x00000001001044d6 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 132630
50 clang 0x00000001001059d7 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 138007
51 clang 0x0000000100103ac9 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 130057
52 clang 0x00000001001059d7 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 138007
53 clang 0x00000001001079d0 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 146192
54 clang 0x00000001001360a2 clang::DeclVisitor<clang::ASTDeclReader, void>::Visit(clang::Decl*) + 2002
55 clang 0x0000000100130c08 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 73416
56 clang 0x000000010013140f clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 75471
57 clang 0x00000001000f205f clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 57759
58 clang 0x00000001001044d6 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 132630
59 clang 0x00000001001059d7 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 138007
60 clang 0x0000000100103ac9 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 130057
61 clang 0x00000001001059d7 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 138007
62 clang 0x0000000100102b76 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 126134
63 clang 0x00000001001059d7 clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 138007
64 clang 0x000000010012c2bd clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 54653
65 clang 0x000000010012d3d3 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 59027
66 clang 0x0000000100130c08 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 73416
67 clang 0x000000010013140f clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 75471
68 clang 0x00000001000f205f clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 57759
69 clang 0x0000000100129d8a clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 45130
70 clang 0x0000000100130c08 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 73416
71 clang 0x000000010013140f clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 75471
72 clang 0x00000001000f205f clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 57759
73 clang 0x000000010012d4f7 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 59319
74 clang 0x0000000100130c08 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 73416
75 clang 0x000000010013140f clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 75471
76 clang 0x00000001000f205f clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 57759
77 clang 0x0000000100127966 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 35878
78 clang 0x000000010012ed98 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 65624
79 clang 0x000000010012f46c clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 67372
80 clang 0x000000010012febf clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 70015
81 clang 0x0000000100130c08 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 73416
82 clang 0x000000010013140f clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 75471
83 clang 0x00000001000f205f clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 57759
84 clang 0x0000000100127966 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 35878
85 clang 0x000000010012ed98 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 65624
86 clang 0x000000010012f46c clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 67372
87 clang 0x000000010012febf clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 70015
88 clang 0x0000000100130c08 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 73416
89 clang 0x000000010013140f clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 75471
90 clang 0x00000001000f205f clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 57759
91 clang 0x0000000100127966 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 35878
92 clang 0x000000010012ed98 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 65624
93 clang 0x000000010012f46c clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 67372
94 clang 0x000000010012febf clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 70015
95 clang 0x0000000100130c08 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 73416
96 clang 0x000000010013140f clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 75471
97 clang 0x00000001000f205f clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 57759
98 clang 0x00000001001278fd clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 35773
99 clang 0x000000010012ed98 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 65624
100 clang 0x000000010012f46c clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 67372
101 clang 0x0000000100130c08 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 73416
102 clang 0x000000010013140f clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 75471
103 clang 0x00000001000f205f clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 57759
104 clang 0x00000001001278fd clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 35773
105 clang 0x000000010012ed98 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 65624
106 clang 0x000000010012f46c clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 67372
107 clang 0x000000010012febf clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 70015
108 clang 0x00000001001303fc clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 71356
109 clang 0x0000000100130c08 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 73416
110 clang 0x000000010013140f clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 75471
111 clang 0x00000001000f205f clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 57759
112 clang 0x0000000100127966 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 35878
113 clang 0x000000010012ed98 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 65624
114 clang 0x000000010012f46c clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 67372
115 clang 0x000000010012febf clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 70015
116 clang 0x0000000100130c08 clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 73416
117 clang 0x000000010013140f clang::TypeLocVisitor<clang::TypeLocReader, void>::Visit(clang::TypeLoc) + 75471
118 clang 0x00000001000f205f clang::ASTDeserializationListener::DeclRead(unsigned int, clang::Decl const*) + 57759
119 clang 0x00000001008fdb54 clang::ObjCCategoryImplDecl::~ObjCCategoryImplDecl() + 39748
120 clang 0x00000001005e6760 void std::__inplace_stable_sort<__gnu_cxx::__normal_iterator<std::pair<llvm::APSInt, clang::CaseStmt*>*, std::vector<std::pair<llvm::APSInt, clang::CaseStmt*>, std::allocator<std::pair<llvm::APSInt, clang::CaseStmt*> > > > >(__gnu_cxx::__normal_iterator<std::pair<llvm::APSInt, clang::CaseStmt*>*, std::vector<std::pair<llvm::APSInt, clang::CaseStmt*>, std::allocator<std::pair<llvm::APSInt, clang::CaseStmt*> > > >, __gnu_cxx::__normal_iterator<std::pair<llvm::APSInt, clang::CaseStmt*>*, std::vector<std::pair<llvm::APSInt, clang::CaseStmt*>, std::allocator<std::pair<llvm::APSInt, clang::CaseStmt*> > > >) + 224032
121 clang 0x000000010066205b llvm::DenseMap<clang::Decl*, llvm::SmallVector<std::pair<clang::SourceLocation, clang::PartialDiagnostic>, 1u>, llvm::DenseMapInfo<clang::Decl*>, llvm::DenseMapInfo<llvm::SmallVector<std::pair<clang::SourceLocation, clang::PartialDiagnostic>, 1u> > >::grow(unsigned int) + 130715
122 clang 0x0000000100663495 llvm::DenseMap<clang::Decl*, llvm::SmallVector<std::pair<clang::SourceLocation, clang::PartialDiagnostic>, 1u>, llvm::DenseMapInfo<clang::Decl*>, llvm::DenseMapInfo<llvm::SmallVector<std::pair<clang::SourceLocation, clang::PartialDiagnostic>, 1u> > >::grow(unsigned int) + 135893
123 clang 0x0000000100664363 llvm::DenseMap<clang::Decl*, llvm::SmallVector<std::pair<clang::SourceLocation, clang::PartialDiagnostic>, 1u>, llvm::DenseMapInfo<clang::Decl*>, llvm::DenseMapInfo<llvm::SmallVector<std::pair<clang::SourceLocation, clang::PartialDiagnostic>, 1u> > >::grow(unsigned int) + 139683
124 clang 0x000000010064f125 llvm::DenseMap<clang::Decl*, llvm::SmallVector<std::pair<clang::SourceLocation, clang::PartialDiagnostic>, 1u>, llvm::DenseMapInfo<clang::Decl*>, llvm::DenseMapInfo<llvm::SmallVector<std::pair<clang::SourceLocation, clang::PartialDiagnostic>, 1u> > >::grow(unsigned int) + 53093
125 clang 0x00000001006740d8 llvm::DenseMap<clang::Decl*, llvm::SmallVector<std::pair<clang::SourceLocation, clang::PartialDiagnostic>, 1u>, llvm::DenseMapInfo<clang::Decl*>, llvm::DenseMapInfo<llvm::SmallVector<std::pair<clang::SourceLocation, clang::PartialDiagnostic>, 1u> > >::grow(unsigned int) + 204568
126 clang 0x000000010064f8f1 llvm::DenseMap<clang::Decl*, llvm::SmallVector<std::pair<clang::SourceLocation, clang::PartialDiagnostic>, 1u>, llvm::DenseMapInfo<clang::Decl*>, llvm::DenseMapInfo<llvm::SmallVector<std::pair<clang::SourceLocation, clang::PartialDiagnostic>, 1u> > >::grow(unsigned int) + 55089
127 clang 0x0000000100656909 llvm::DenseMap<clang::Decl*, llvm::SmallVector<std::pair<clang::SourceLocation, clang::PartialDiagnostic>, 1u>, llvm::DenseMapInfo<clang::Decl*>, llvm::DenseMapInfo<llvm::SmallVector<std::pair<clang::SourceLocation, clang::PartialDiagnostic>, 1u> > >::grow(unsigned int) + 83785
128 clang 0x000000010067b8b0 llvm::cast_retty<clang::TemplateSpecializationType, clang::CanQual<clang::Type> >::ret_type llvm::cast<clang::TemplateSpecializationType, clang::CanQual<clang::Type> >(clang::CanQual<clang::Type> const&) + 13520
129 clang 0x000000010068122b llvm::cast_retty<clang::TemplateSpecializationType, clang::CanQual<clang::Type> >::ret_type llvm::cast<clang::TemplateSpecializationType, clang::CanQual<clang::Type> >(clang::CanQual<clang::Type> const&) + 36427
130 clang 0x0000000100677bbb clang::DeclVisitor<clang::TemplateDeclInstantiator, clang::Decl*>::Visit(clang::Decl*) + 731
131 clang 0x000000010067dfd8 llvm::cast_retty<clang::TemplateSpecializationType, clang::CanQual<clang::Type> >::ret_type llvm::cast<clang::TemplateSpecializationType, clang::CanQual<clang::Type> >(clang::CanQual<clang::Type> const&) + 23544
132 clang 0x000000010060ef44 clang::DependentTemplateSpecializationType const* clang::Type::getAs<clang::DependentTemplateSpecializationType>() const + 31940
133 clang 0x000000010063e944 clang::DependentTemplateSpecializationType const* clang::Type::getAs<clang::DependentTemplateSpecializationType>() const + 227012
134 clang 0x0000000100583286 llvm::DenseMap<clang::ObjCPropertyDecl*, char, llvm::DenseMapInfo<clang::ObjCPropertyDecl*>, llvm::DenseMapInfo<char> >::grow(unsigned int) + 121430
135 clang 0x0000000100584880 llvm::DenseMap<clang::ObjCPropertyDecl*, char, llvm::DenseMapInfo<clang::ObjCPropertyDecl*>, llvm::DenseMapInfo<char> >::grow(unsigned int) + 127056
136 clang 0x000000010058d2d9 llvm::DenseMap<clang::ObjCPropertyDecl*, char, llvm::DenseMapInfo<clang::ObjCPropertyDecl*>, llvm::DenseMapInfo<char> >::grow(unsigned int) + 162473
137 clang 0x0000000100501801 llvm::DenseMap<clang::Selector, clang::ObjCMethodDecl const*, llvm::DenseMapInfo<clang::Selector>, llvm::DenseMapInfo<clang::ObjCMethodDecl const*> >::FindAndConstruct(clang::Selector const&) + 406577
138 clang 0x0000000100501ad1 llvm::DenseMap<clang::Selector, clang::ObjCMethodDecl const*, llvm::DenseMapInfo<clang::Selector>, llvm::DenseMapInfo<clang::ObjCMethodDecl const*> >::FindAndConstruct(clang::Selector const&) + 407297
139 clang 0x000000010033317f clang::Parser::ParsingClassDefinition::Pop() + 21791
140 clang 0x0000000100333f43 clang::Parser::ParsingClassDefinition::Pop() + 25315
141 clang 0x00000001003347a1 clang::Parser::ParsingClassDefinition::Pop() + 27457
142 clang 0x000000010035ad32 clang::PragmaOpenCLExtensionHandler::~PragmaOpenCLExtensionHandler() + 30610
143 clang 0x0000000100355f5f clang::PragmaOpenCLExtensionHandler::~PragmaOpenCLExtensionHandler() + 10687
144 clang 0x0000000100356f1d clang::PragmaOpenCLExtensionHandler::~PragmaOpenCLExtensionHandler() + 14717
145 clang 0x00000001003574c9 clang::PragmaOpenCLExtensionHandler::~PragmaOpenCLExtensionHandler() + 16169
146 clang 0x0000000100309c22 llvm::CrashRecoveryContextDeleteCleanup<clang::Sema>::~CrashRecoveryContextDeleteCleanup() + 11954
147 clang 0x0000000100306f38 llvm::CrashRecoveryContextDeleteCleanup<clang::Sema>::~CrashRecoveryContextDeleteCleanup() + 456
148 clang 0x000000010032ad34 clang::Parser::DeclaratorScopeObj::EnterDeclaratorScope() + 43316
149 clang 0x000000010032c723 clang::Parser::DeclaratorScopeObj::EnterDeclaratorScope() + 49955
150 clang 0x00000001003179a9 clang::Parser::LexedMethod::~LexedMethod() + 54745
151 clang 0x000000010036c70c llvm::SmallVectorTemplateBase<clang::ParsedTemplateArgument, false>::grow(unsigned long) + 42108
152 clang 0x000000010036cbde llvm::SmallVectorTemplateBase<clang::ParsedTemplateArgument, false>::grow(unsigned long) + 43342
153 clang 0x00000001003705fc llvm::SmallVectorTemplateBase<clang::ParsedTemplateArgument, false>::grow(unsigned long) + 58220
154 clang 0x00000001003269c4 clang::Parser::DeclaratorScopeObj::EnterDeclaratorScope() + 26052
155 clang 0x0000000100320282 clang::Parser::LexedMethod::~LexedMethod() + 89778
156 clang 0x00000001003700ff llvm::SmallVectorTemplateBase<clang::ParsedTemplateArgument, false>::grow(unsigned long) + 56943
157 clang 0x00000001003269c4 clang::Parser::DeclaratorScopeObj::EnterDeclaratorScope() + 26052
158 clang 0x0000000100320282 clang::Parser::LexedMethod::~LexedMethod() + 89778
159 clang 0x00000001003700ff llvm::SmallVectorTemplateBase<clang::ParsedTemplateArgument, false>::grow(unsigned long) + 56943
160 clang 0x0000000100370b5d llvm::SmallVectorTemplateBase<clang::ParsedTemplateArgument, false>::grow(unsigned long) + 59597
161 clang 0x000000010030693b llvm::IRBuilder<true, llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true> >::CreateGEP(llvm::Value*, llvm::Value*, llvm::Twine const&) + 635
162 clang 0x00000001002d2d0c llvm::IRBuilder<true, llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true> >::CreateIsNull(llvm::Value*, llvm::Twine const&) + 3356
163 clang 0x0000000100058ad1 llvm::DenseMap<clang::IdentifierInfo const*, unsigned int, llvm::DenseMapInfo<clang::IdentifierInfo const*>, llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 9073
164 clang 0x0000000100024da5 llvm::raw_ostream::operator<<(char const*) + 1653
165 clang 0x000000010001b971 std::vector<llvm::PassRegistrationListener*, std::allocator<llvm::PassRegistrationListener*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::PassRegistrationListener**, std::vector<llvm::PassRegistrationListener*, std::allocator<llvm::PassRegistrationListener*> > >, llvm::PassRegistrationListener* const&) + 9681
166 clang 0x0000000100023bfe std::vector<std::string, std::allocator<std::string> >::operator=(std::vector<std::string, std::allocator<std::string> > const&) + 13374
167 clang 0x000000010001ada4 std::vector<llvm::PassRegistrationListener*, std::allocator<llvm::PassRegistrationListener*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::PassRegistrationListener**, std::vector<llvm::PassRegistrationListener*, std::allocator<llvm::PassRegistrationListener*> > >, llvm::PassRegistrationListener* const&) + 6660
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple x86_64-apple-macosx10.6.7 -emit-obj -disable-free -main-file-name svg_transform_parser.cpp -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 97.14 -coverage-file src/svg_transform_parser.os -resource-dir /usr/local/bin/../lib/clang/3.0 -include-pch mapnik.h.pch -D HAVE_JPEG -D BOOST_REGEX_HAS_ICU -D DARWIN -D BOOST_SPIRIT_THREADSAFE -D MAPNIK_THREADSAFE -D NDEBUG -I agg/include -I include -I . -I /opt/icu/include -I /opt/boost-trunk/include -I /Library/Frameworks/UnixImageIO.framework/Headers -I /usr/local/include -I /usr/include -I /usr/X11/include/freetype2 -I /usr/X11/include -I /usr/include/libxml2 -O3 -Wall -Wno-unused-function -Wno-uninitialized -Wno-array-bounds -Wno-parentheses -Wno-char-subscripts -Wno-inline -std=c++98 -fdeprecated-macro -ftemplate-depth 200 -ferror-limit 19 -fmessage-length 152 -stack-protector 1 -fblocks -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o src/svg_transform_parser.os -x c++ src/svg_transform_parser.cpp
1. include/mapnik/svg/svg_transform_grammar.hpp:172:43: current parser token '<<'
2. include/mapnik/svg/svg_transform_grammar.hpp:39:1: parsing namespace 'mapnik'
3. include/mapnik/svg/svg_transform_grammar.hpp:39:20: parsing namespace 'svg'
4. include/mapnik/svg/svg_transform_grammar.hpp:167:5: parsing struct/union/class body 'print_action'
5. include/mapnik/svg/svg_transform_grammar.hpp:171:9: parsing function body 'operator()'
6. include/mapnik/svg/svg_transform_grammar.hpp:171:9: in compound statement ('{}')
clang: error: unable to execute command: Illegal instruction
clang: error: clang frontend command failed due to signal 2 (use -v to see invocation)
scons: *** [src/svg_transform_parser.os] Error 254
scons: building terminated because of errors.
@springmeyer
Copy link
Author

This is a code that triggers:

    struct print_action
    {
        template <typename T>
        void operator()(T const& c, qi::unused_type, qi::unused_type) const
        {
            std::cerr << typeid(c).name() << std::endl;
        }
    };

@springmeyer
Copy link
Author

More recent clang

$ /opt/llvm/bin/clang++ --version
clang version 3.0 (trunk 134402)
Target: x86_64-apple-darwin10.7.0
Thread model: posix

... hits a similar error earlier when compiling the gch:


d:spring2 dane$ time /opt/llvm/bin/clang++ -x c++-header $CFLAGS all.h -o mapnik.h.pchAssertion failed: (NumParams == getNumParams() && "Parameter count mismatch!"), function setParams, file Decl.cpp, line 1683.0  clang             0x00000001012b7a32 llvm::SmallVectorImpl<llvm_regmatch_t>::resize(unsigned int) + 24981  clang             0x00000001012b7f99 llvm::SmallVectorImpl<llvm_regmatch_t>::resize(unsigned int) + 38812  libSystem.B.dylib 0x00007fff86e6766a _sigtramp + 26
3  libSystem.B.dylib 0x00007fff86e0afdd szone_malloc_should_clear + 242
4  clang             0x000000010001f086 std::vector<llvm::PassRegistrationListener*, std::allocator<llvm::PassRegistrationListener*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::PassRegistrationListener**, std::vector<llvm::PassRegistrationListener*, std::allocator<llvm::PassRegistrationListener*> > >, llvm::PassRegistrationListener* const&) + 3462
5  clang             0x000000010001f047 std::vector<llvm::PassRegistrationListener*, std::allocator<llvm::PassRegistrationListener*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::PassRegistrationListener**, std::vector<llvm::PassRegistrationListener*, std::allocator<llvm::PassRegistrationListener*> > >, llvm::PassRegistrationListener* const&) + 3399
6  clang             0x00000001007a5e6c std::_Rb_tree<clang::NamedDecl*, clang::NamedDecl*, std::_Identity<clang::NamedDecl*>, std::less<clang::NamedDecl*>, std::allocator<clang::NamedDecl*> >::_M_erase(std::_Rb_tree_node<clang::NamedDecl*>*) + 17852
7  clang             0x0000000100501df6 clang::TypeLocBuilder::pushFullUninitializedImpl(clang::QualType, unsigned long) + 25942
8  clang             0x0000000100504e75 clang::TypeLocBuilder::pushFullUninitializedImpl(clang::QualType, unsigned long) + 38357
9  clang             0x00000001004b9ae6 llvm::SmallVectorImpl<clang::TemplateArgumentLoc>::operator=(llvm::SmallVectorImpl<clang::TemplateArgumentLoc> const&) + 10502
10 clang             0x00000001004bbf07 llvm::SmallVectorImpl<clang::TemplateArgumentLoc>::operator=(llvm::SmallVectorImpl<clang::TemplateArgumentLoc> const&) + 19751
11 clang             0x000000010045243a llvm::DenseMap<clang::IdentifierInfo*, clang::ObjCPropertyDecl*, llvm::DenseMapInfo<clang::IdentifierInfo*>, llvm::DenseMapInfo<clang::ObjCPropertyDecl*> >::grow(unsigned int) + 46682
12 clang             0x000000010045f2ea llvm::DenseMap<clang::IdentifierInfo*, clang::ObjCPropertyDecl*, llvm::DenseMapInfo<clang::IdentifierInfo*>, llvm::DenseMapInfo<clang::ObjCPropertyDecl*> >::grow(unsigned int) + 99594
13 clang             0x000000010045f11f llvm::DenseMap<clang::IdentifierInfo*, clang::ObjCPropertyDecl*, llvm::DenseMapInfo<clang::IdentifierInfo*>, llvm::DenseMapInfo<clang::ObjCPropertyDecl*> >::grow(unsigned int) + 99135
14 clang             0x000000010045f511 llvm::DenseMap<clang::IdentifierInfo*, clang::ObjCPropertyDecl*, llvm::DenseMapInfo<clang::IdentifierInfo*>, llvm::DenseMapInfo<clang::ObjCPropertyDecl*> >::grow(unsigned int) + 100145
15 clang             0x00000001003b973e llvm::DenseMap<clang::Selector, clang::ObjCMethodDecl const*, llvm::DenseMapInfo<clang::Selector>, llvm::DenseMapInfo<clang::ObjCMethodDecl const*> >::grow(unsigned int) + 26526
16 clang             0x0000000100275dc4 std::vector<clang::IdentifierInfo*, std::allocator<clang::IdentifierInfo*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<clang::IdentifierInfo**, std::vector<clang::IdentifierInfo*, std::allocator<clang::IdentifierInfo*> > >, clang::IdentifierInfo* const&) + 4996
17 clang             0x0000000100277b06 std::vector<clang::IdentifierInfo*, std::allocator<clang::IdentifierInfo*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<clang::IdentifierInfo**, std::vector<clang::IdentifierInfo*, std::allocator<clang::IdentifierInfo*> > >, clang::IdentifierInfo* const&) + 12486
18 clang             0x000000010027656f std::vector<clang::IdentifierInfo*, std::allocator<clang::IdentifierInfo*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<clang::IdentifierInfo**, std::vector<clang::IdentifierInfo*, std::allocator<clang::IdentifierInfo*> > >, clang::IdentifierInfo* const&) + 6959
19 clang             0x0000000100274c3e std::vector<clang::IdentifierInfo*, std::allocator<clang::IdentifierInfo*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<clang::IdentifierInfo**, std::vector<clang::IdentifierInfo*, std::allocator<clang::IdentifierInfo*> > >, clang::IdentifierInfo* const&) + 510
20 clang             0x0000000100274f79 std::vector<clang::IdentifierInfo*, std::allocator<clang::IdentifierInfo*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<clang::IdentifierInfo**, std::vector<clang::IdentifierInfo*, std::allocator<clang::IdentifierInfo*> > >, clang::IdentifierInfo* const&) + 1337
21 clang             0x0000000100274c77 std::vector<clang::IdentifierInfo*, std::allocator<clang::IdentifierInfo*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<clang::IdentifierInfo**, std::vector<clang::IdentifierInfo*, std::allocator<clang::IdentifierInfo*> > >, clang::IdentifierInfo* const&) + 567
22 clang             0x0000000100274bc1 std::vector<clang::IdentifierInfo*, std::allocator<clang::IdentifierInfo*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<clang::IdentifierInfo**, std::vector<clang::IdentifierInfo*, std::allocator<clang::IdentifierInfo*> > >, clang::IdentifierInfo* const&) + 385
23 clang             0x0000000100291809 clang::PragmaFPContractHandler::~PragmaFPContractHandler() + 13385
24 clang             0x000000010028eb4d clang::PragmaFPContractHandler::~PragmaFPContractHandler() + 1933
25 clang             0x0000000100292cd5 clang::PragmaFPContractHandler::~PragmaFPContractHandler() + 18709
26 clang             0x000000010029393b clang::PragmaFPContractHandler::~PragmaFPContractHandler() + 21883
27 clang             0x000000010029ed2f llvm::SmallVectorTemplateBase<clang::ParsedTemplateArgument, false>::grow(unsigned long) + 28431
28 clang             0x00000001002626bb clang::Parser::LateParsedMemberInitializer::~LateParsedMemberInitializer() + 21355
29 clang             0x000000010029e0d3 llvm::SmallVectorTemplateBase<clang::ParsedTemplateArgument, false>::grow(unsigned long) + 25267
30 clang             0x000000010029e295 llvm::SmallVectorTemplateBase<clang::ParsedTemplateArgument, false>::grow(unsigned long) + 25717
31 clang             0x000000010029d7fc llvm::SmallVectorTemplateBase<clang::ParsedTemplateArgument, false>::grow(unsigned long) + 23004
32 clang             0x000000010026c7fb clang::Parser::MaybeParseCXX0XAttributes(clang::Declarator&) + 4491
33 clang             0x000000010026c44a clang::Parser::MaybeParseCXX0XAttributes(clang::Declarator&) + 3546
34 clang             0x000000010026035b clang::Parser::LateParsedMemberInitializer::~LateParsedMemberInitializer() + 12299
35 clang             0x000000010029d40f llvm::SmallVectorTemplateBase<clang::ParsedTemplateArgument, false>::grow(unsigned long) + 21999
36 clang             0x000000010026c7fb clang::Parser::MaybeParseCXX0XAttributes(clang::Declarator&) + 4491
37 clang             0x000000010026c44a clang::Parser::MaybeParseCXX0XAttributes(clang::Declarator&) + 3546
38 clang             0x000000010026035b clang::Parser::LateParsedMemberInitializer::~LateParsedMemberInitializer() + 12299
39 clang             0x000000010029d40f llvm::SmallVectorTemplateBase<clang::ParsedTemplateArgument, false>::grow(unsigned long) + 21999
40 clang             0x000000010026c7fb clang::Parser::MaybeParseCXX0XAttributes(clang::Declarator&) + 4491
41 clang             0x000000010026c44a clang::Parser::MaybeParseCXX0XAttributes(clang::Declarator&) + 3546
42 clang             0x000000010026035b clang::Parser::LateParsedMemberInitializer::~LateParsedMemberInitializer() + 12299
43 clang             0x000000010029d40f llvm::SmallVectorTemplateBase<clang::ParsedTemplateArgument, false>::grow(unsigned long) + 21999
44 clang             0x000000010029ce2d llvm::SmallVectorTemplateBase<clang::ParsedTemplateArgument, false>::grow(unsigned long) + 20493
45 clang             0x000000010025ae3d clang::MSP430InterruptAttr* clang::Decl::getAttr<clang::MSP430InterruptAttr>() const + 733
46 clang             0x000000010004c8db llvm::DenseMap<clang::IdentifierInfo const*, unsigned int, llvm::DenseMapInfo<clang::IdentifierInfo const*>, llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 12827
47 clang             0x000000010002855b std::_Rb_tree<std::string, std::string, std::_Identity<std::string>, std::less<std::string>, std::allocator<std::string> >::_M_insert_unique(std::string const&) + 3243
48 clang             0x0000000100020b80 std::vector<llvm::PassRegistrationListener*, std::allocator<llvm::PassRegistrationListener*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::PassRegistrationListener**, std::vector<llvm::PassRegistrationListener*, std::allocator<llvm::PassRegistrationListener*> > >, llvm::PassRegistrationListener* const&) + 10368
49 clang             0x0000000100024832 llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 850
50 clang             0x000000010001f654 std::vector<llvm::PassRegistrationListener*, std::allocator<llvm::PassRegistrationListener*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::PassRegistrationListener**, std::vector<llvm::PassRegistrationListener*, std::allocator<llvm::PassRegistrationListener*> > >, llvm::PassRegistrationListener* const&) + 4948
Stack dump:
0.  Program arguments: /opt/llvm/bin/clang -cc1 -triple x86_64-apple-macosx10.6.7 -emit-pch -disable-free -main-file-name all.h -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 97.17 -g -resource-dir /opt/llvm/bin/../lib/clang/3.0 -D BOOST_REGEX_HAS_ICU -D DARWIN -D BOOST_SPIRIT_THREADSAFE -D MAPNIK_THREADSAFE -D HAVE_JPEG -D NDEBUG -I agg/include -I include -I /opt/libpng-1.5.2/include/ -I /opt/jpeg-8c/include/ -I /opt/proj/include/ -I /opt/icu/include/ -I /opt/boost-trunk/include -I /Library/Frameworks/GDAL.framework/Versions/1.8/Headers -I /usr/local/pgsql-9.0/include -I /usr/local/Cellar/geos/3.3.0/include -I /usr/local/Cellar/sqlite/3.7.5/include/ -I /usr/include/ -I /usr/X11/include/freetype2 -I /usr/X11/include -I /usr/include/libxml2 -O3 -Wall -Wno-unused-function -Wno-uninitialized -Wno-array-bounds -Wno-parentheses -Wno-char-subscripts -Wno-inline -std=c++98 -fdeprecated-macro -ftemplate-depth 200 -ferror-limit 19 -fmessage-length 152 -stack-protector 1 -fblocks -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o mapnik.h.pch -x c++-header all.h 
1.  /opt/boost-trunk/include/boost/spirit/home/qi/numeric/detail/real_impl.hpp:82:50: current parser token ')'
2.  /opt/boost-trunk/include/boost/spirit/home/qi/numeric/detail/real_impl.hpp:31:1: parsing namespace 'boost'
3.  /opt/boost-trunk/include/boost/spirit/home/qi/numeric/detail/real_impl.hpp:31:19: parsing namespace 'spirit'
4.  /opt/boost-trunk/include/boost/spirit/home/qi/numeric/detail/real_impl.hpp:31:38: parsing namespace 'traits'
5.  /opt/boost-trunk/include/boost/spirit/home/qi/numeric/detail/real_impl.hpp:81:5: parsing function body 'negate'
6.  /opt/boost-trunk/include/boost/spirit/home/qi/numeric/detail/real_impl.hpp:81:5: in compound statement ('{}')
clang: error: unable to execute command: Illegal instruction
clang: error: clang frontend command failed due to signal 2 (use -v to see invocation)

real    0m5.788s
user    0m4.447s
sys 0m0.769s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment