95 |
96 |
96 |
97 |
97 if ($text =~ m,Error: #5: cannot open source input file .*: No such file or directory,) |
98 if ($text =~ m,Error: #5: cannot open source input file .*: No such file or directory,) |
98 { |
99 { |
99 my $subcategory = $CATEGORY_RECIPEFAILURE_ARMCC_CANNOTOPENSOURCEINPUTFILE; |
100 my $subcategory = $CATEGORY_RECIPEFAILURE_ARMCC_CANNOTOPENSOURCEINPUTFILE; |
100 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line); |
101 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file); |
101 } |
102 } |
102 elsif ($text =~ m,Fatal error: L6002U: Could not open file .*: No such file or directory,) |
103 elsif ($text =~ m,Fatal error: L6002U: Could not open file .*: No such file or directory,) |
103 { |
104 { |
104 my $subcategory = $CATEGORY_RECIPEFAILURE_ARMLINK_COULDNOTOPENFILE; |
105 my $subcategory = $CATEGORY_RECIPEFAILURE_ARMLINK_COULDNOTOPENFILE; |
105 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line); |
106 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file); |
106 } |
107 } |
107 elsif ($text =~ m,elf2e32 : Error: E1001: Could not open file : .*.,) |
108 elsif ($text =~ m,elf2e32 : Error: E1001: Could not open file : .*.,) |
108 { |
109 { |
109 my $subcategory = $CATEGORY_RECIPEFAILURE_ELF2E32_COULDNOTOPENFILE; |
110 my $subcategory = $CATEGORY_RECIPEFAILURE_ELF2E32_COULDNOTOPENFILE; |
110 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line); |
111 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file); |
111 } |
112 } |
112 elsif ($text =~ m,elf2e32 : Error: E1036: Symbol .* Missing from ELF File,) |
113 elsif ($text =~ m,elf2e32 : Error: E1036: Symbol .* Missing from ELF File,) |
113 { |
114 { |
114 my $subcategory = $CATEGORY_RECIPEFAILURE_ELF2E32_SYMBOLMISSINGFROMELFFILE; |
115 my $subcategory = $CATEGORY_RECIPEFAILURE_ELF2E32_SYMBOLMISSINGFROMELFFILE; |
115 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line); |
116 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file); |
116 } |
117 } |
117 elsif ($text =~ m,Error: L6833E: File '.*' does not exist,) |
118 elsif ($text =~ m,Error: L6833E: File '.*' does not exist,) |
118 { |
119 { |
119 my $subcategory = $CATEGORY_RECIPEFAILURE_ARMAR_FILEDOESNOTEXIST; |
120 my $subcategory = $CATEGORY_RECIPEFAILURE_ARMAR_FILEDOESNOTEXIST; |
120 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line); |
121 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file); |
121 } |
122 } |
122 elsif ($text =~ m,: Warning: #236-D: controlling expression is constant,) |
123 elsif ($text =~ m,: Warning: #236-D: controlling expression is constant,) |
123 { |
124 { |
124 my $subcategory = $CATEGORY_RECIPEFAILURE_ARMCC_CONTROLLINGEXPRESSIONISCONSTANT; |
125 my $subcategory = $CATEGORY_RECIPEFAILURE_ARMCC_CONTROLLINGEXPRESSIONISCONSTANT; |
125 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line); |
126 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file); |
126 } |
127 } |
127 elsif ($text =~ m,/armcc.exe , and $text =~ m,Internal fault: ,) |
128 elsif ($text =~ m,/armcc.exe , and $text =~ m,Internal fault: ,) |
128 { |
129 { |
129 my $subcategory = $CATEGORY_RECIPEFAILURE_ARMCC_INTERNALFAULT; |
130 my $subcategory = $CATEGORY_RECIPEFAILURE_ARMCC_INTERNALFAULT; |
130 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line); |
131 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file); |
131 } |
132 } |
132 elsif ($text =~ m,/armcc.exe , and $text =~ m,Error: #655-D: the modifier ".*" is not allowed on this declaration,) |
133 elsif ($text =~ m,/armcc.exe , and $text =~ m,Error: #655-D: the modifier ".*" is not allowed on this declaration,) |
133 { |
134 { |
134 my $subcategory = $CATEGORY_RECIPEFAILURE_ARMCC_MODIFIERNOTALLOWED; |
135 my $subcategory = $CATEGORY_RECIPEFAILURE_ARMCC_MODIFIERNOTALLOWED; |
135 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line); |
136 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file); |
136 } |
137 } |
137 elsif ($text =~ m,^\+.*/make.exe .*\n/bin/sh: .*: command not found,m) |
138 elsif ($text =~ m,^\+.*/make.exe .*\n/bin/sh: .*: command not found,m) |
138 { |
139 { |
139 $severity = $RaptorCommon::SEVERITY_CRITICAL; |
140 $severity = $RaptorCommon::SEVERITY_CRITICAL; |
140 my $subcategory = $CATEGORY_RECIPEFAILURE_BINSH_COMMANDNOTFOUND; |
141 my $subcategory = $CATEGORY_RECIPEFAILURE_BINSH_COMMANDNOTFOUND; |
141 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line); |
142 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file); |
142 } |
143 } |
143 elsif ($text =~ m,^\+.*/arm-none-symbianelf-as\.exe .*^Error: .*,ms) |
144 elsif ($text =~ m,^\+.*/arm-none-symbianelf-as\.exe .*^Error: .*,ms) |
144 { |
145 { |
145 my $subcategory = $CATEGORY_RECIPEFAILURE_AS_ERROR; |
146 my $subcategory = $CATEGORY_RECIPEFAILURE_AS_ERROR; |
146 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line); |
147 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file); |
147 } |
148 } |
148 elsif ($text =~ m,^\+.*/arm-none-symbianelf-g\+\+\.exe .*:\d+: [Ee]rror: .*,ms) |
149 elsif ($text =~ m,^\+.*/arm-none-symbianelf-g\+\+\.exe .*:\d+: [Ee]rror: .*,ms) |
149 { |
150 { |
150 my $subcategory = $CATEGORY_RECIPEFAILURE_GPP_ERROR; |
151 my $subcategory = $CATEGORY_RECIPEFAILURE_GPP_ERROR; |
151 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line); |
152 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file); |
152 } |
153 } |
153 elsif ($text =~ m,^\+.*/arm-none-symbianelf-g\+\+\.exe .*:\d+: [Ww]arning: .*,ms) |
154 elsif ($text =~ m,^\+.*/arm-none-symbianelf-g\+\+\.exe .*:\d+: [Ww]arning: .*,ms) |
154 { |
155 { |
155 my $subcategory = $CATEGORY_RECIPEFAILURE_GPP_WARNING; |
156 my $subcategory = $CATEGORY_RECIPEFAILURE_GPP_WARNING; |
156 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line); |
157 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file); |
157 } |
158 } |
158 # the following captures generic armcc error/warnings, not captured by regexps above |
159 # the following captures generic armcc error/warnings, not captured by regexps above |
159 elsif ($text =~ m,/armcc.exe , and $text =~ m,: \d+ warnings\, \d+ errors$,) |
160 elsif ($text =~ m,/armcc.exe , and $text =~ m,: \d+ warnings\, \d+ errors$,) |
160 { |
161 { |
161 my $subcategory = $CATEGORY_RECIPEFAILURE_ARMCC_GENERICWARNINGSERRORS; |
162 my $subcategory = $CATEGORY_RECIPEFAILURE_ARMCC_GENERICWARNINGSERRORS; |
162 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line); |
163 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file); |
163 } |
164 } |
164 elsif ($text =~ m,mwccsym2.exe , and $text =~ m,: the file '.*' cannot be opened,) |
165 elsif ($text =~ m,mwccsym2.exe , and $text =~ m,: the file '.*' cannot be opened,) |
165 { |
166 { |
166 my $subcategory = $CATEGORY_RECIPEFAILURE_MWCCSYM2_FILECANNOTBEOPENED; |
167 my $subcategory = $CATEGORY_RECIPEFAILURE_MWCCSYM2_FILECANNOTBEOPENED; |
167 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line); |
168 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file); |
168 } |
169 } |
169 else # log everything by default |
170 else # log everything by default |
170 { |
171 { |
171 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file, $line); |
172 RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file); |
172 } |
173 } |
|
174 |
|
175 return $dumped; |
173 } |
176 } |
174 |
177 |
175 sub on_start_buildlog |
178 sub on_start_buildlog |
176 { |
179 { |
177 #print FILE "line,layer,component,name,armlicence,platform,phase,code,bldinf,mmp,target,source,\n"; |
180 #print FILE "line,layer,component,name,armlicence,platform,phase,code,bldinf,mmp,target,source,\n"; |