52 my $CATEGORY_RECIPEFAILURE = 'recipe_failure'; |
52 my $CATEGORY_RECIPEFAILURE = 'recipe_failure'; |
53 my $CATEGORY_RECIPEFAILURE_ARMCC_CANNOTOPENSOURCEINPUTFILE = 'armcc_cannot_open_source_input_file'; |
53 my $CATEGORY_RECIPEFAILURE_ARMCC_CANNOTOPENSOURCEINPUTFILE = 'armcc_cannot_open_source_input_file'; |
54 my $CATEGORY_RECIPEFAILURE_ARMLINK_COULDNOTOPENFILE = 'armlink_could_not_open_file'; |
54 my $CATEGORY_RECIPEFAILURE_ARMLINK_COULDNOTOPENFILE = 'armlink_could_not_open_file'; |
55 my $CATEGORY_RECIPEFAILURE_ELF2E32_COULDNOTOPENFILE = 'elf2e32_could_not_open_file'; |
55 my $CATEGORY_RECIPEFAILURE_ELF2E32_COULDNOTOPENFILE = 'elf2e32_could_not_open_file'; |
56 my $CATEGORY_RECIPEFAILURE_ARMAR_FILEDOESNOTEXIST = 'armar_file_does_not_exist'; |
56 my $CATEGORY_RECIPEFAILURE_ARMAR_FILEDOESNOTEXIST = 'armar_file_does_not_exist'; |
|
57 my $CATEGORY_RECIPEFAILURE_ARMCC_CONTROLLINGEXPRESSIONISCONSTANT = 'armcc_controlling_expression_is_constant'; |
|
58 my $CATEGORY_RECIPEFAILURE_ARMCC_GENERICWARNINGSERRORS = 'armcc_generic_warnings_errors'; |
57 |
59 |
58 sub process |
60 sub process |
59 { |
61 { |
60 my ($text, $component, $phase, $recipe, $file, $line) = @_; |
62 my ($text, $component, $phase, $recipe, $file, $line) = @_; |
61 |
63 |
83 } |
85 } |
84 elsif ($text =~ m,Error: L6833E: File '.*' does not exist,) |
86 elsif ($text =~ m,Error: L6833E: File '.*' does not exist,) |
85 { |
87 { |
86 $severity = $RaptorCommon::SEVERITY_MAJOR; |
88 $severity = $RaptorCommon::SEVERITY_MAJOR; |
87 my $subcategory = $CATEGORY_RECIPEFAILURE_ARMAR_FILEDOESNOTEXIST; |
89 my $subcategory = $CATEGORY_RECIPEFAILURE_ARMAR_FILEDOESNOTEXIST; |
|
90 RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line); |
|
91 } |
|
92 elsif ($text =~ m,: Warning: #236-D: controlling expression is constant,) |
|
93 { |
|
94 $severity = $RaptorCommon::SEVERITY_MAJOR; |
|
95 my $subcategory = $CATEGORY_RECIPEFAILURE_ARMCC_CONTROLLINGEXPRESSIONISCONSTANT; |
|
96 RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line); |
|
97 } |
|
98 # the following captures generic armcc error/warnings, not captured by regexps above |
|
99 elsif ($text =~ m,/armcc.exe , and $text =~ m,: \d+ warnings\, \d+ errors$,) |
|
100 { |
|
101 $severity = $RaptorCommon::SEVERITY_MAJOR; |
|
102 my $subcategory = $CATEGORY_RECIPEFAILURE_ARMCC_GENERICWARNINGSERRORS; |
88 RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line); |
103 RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line); |
89 } |
104 } |
90 else # log everything by default |
105 else # log everything by default |
91 { |
106 { |
92 RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line); |
107 RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line); |