uh_parser/RaptorRecipe.pm
changeset 269 0a0ad5daa2f9
parent 260 09b83ca8e0cf
child 272 06db82e8efc6
equal deleted inserted replaced
268:478794dc0351 269:0a0ad5daa2f9
    58 my $CATEGORY_RECIPEFAILURE_ARMCC_INTERNALFAULT = 'armcc_internal_fault';
    58 my $CATEGORY_RECIPEFAILURE_ARMCC_INTERNALFAULT = 'armcc_internal_fault';
    59 my $CATEGORY_RECIPEFAILURE_ARMCC_MODIFIERNOTALLOWED = 'armcc_modifier_not_allowed';
    59 my $CATEGORY_RECIPEFAILURE_ARMCC_MODIFIERNOTALLOWED = 'armcc_modifier_not_allowed';
    60 my $CATEGORY_RECIPEFAILURE_ARMCC_GENERICWARNINGSERRORS = 'armcc_generic_warnings_errors';
    60 my $CATEGORY_RECIPEFAILURE_ARMCC_GENERICWARNINGSERRORS = 'armcc_generic_warnings_errors';
    61 my $CATEGORY_RECIPEFAILURE_ELF2E32_SYMBOLMISSINGFROMELFFILE = 'elf2e32_symbol_missing_from_elf_file';
    61 my $CATEGORY_RECIPEFAILURE_ELF2E32_SYMBOLMISSINGFROMELFFILE = 'elf2e32_symbol_missing_from_elf_file';
    62 my $CATEGORY_RECIPEFAILURE_MWCCSYM2_FILECANNOTBEOPENED = 'mwccsym2_file_cannot_be_opened';
    62 my $CATEGORY_RECIPEFAILURE_MWCCSYM2_FILECANNOTBEOPENED = 'mwccsym2_file_cannot_be_opened';
       
    63 my $CATEGORY_RECIPEFAILURE_MWLDSYM2_UNDEFINEDSYMBOL = 'mwldsym2_undefined_symbol';
    63 my $CATEGORY_RECIPEFAILURE_BINSH_COMMANDNOTFOUND = 'binsh_command_not_found';
    64 my $CATEGORY_RECIPEFAILURE_BINSH_COMMANDNOTFOUND = 'binsh_command_not_found';
    64 my $CATEGORY_RECIPEFAILURE_AS_ERROR = 'as_error';
    65 my $CATEGORY_RECIPEFAILURE_AS_ERROR = 'as_error';
    65 my $CATEGORY_RECIPEFAILURE_GPP_ERROR = 'g++_error';
    66 my $CATEGORY_RECIPEFAILURE_GPP_ERROR = 'g++_error';
    66 my $CATEGORY_RECIPEFAILURE_GPP_WARNING = 'g++_warning';
    67 my $CATEGORY_RECIPEFAILURE_GPP_WARNING = 'g++_warning';
       
    68 my $CATEGORY_RECIPEFAILURE_MAKEDEF_FROZENEXPORTMISSING = 'makedef_frozen_export_missing';
    67 
    69 
    68 my $mmp_with_issues = {};
    70 my $mmp_with_issues = {};
    69 
    71 
    70 
    72 
    71 sub process
    73 sub process
   164 		RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file);
   166 		RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file);
   165 	}
   167 	}
   166 	elsif ($text =~ m,mwccsym2.exe , and $text =~ m,: the file '.*' cannot be opened,)
   168 	elsif ($text =~ m,mwccsym2.exe , and $text =~ m,: the file '.*' cannot be opened,)
   167 	{
   169 	{
   168 		my $subcategory = $CATEGORY_RECIPEFAILURE_MWCCSYM2_FILECANNOTBEOPENED;
   170 		my $subcategory = $CATEGORY_RECIPEFAILURE_MWCCSYM2_FILECANNOTBEOPENED;
       
   171 		RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file);
       
   172 	}
       
   173 	elsif ($text =~ m,mwldsym2\.exe: Undefined symbol: '.*',)
       
   174 	{
       
   175 		my $subcategory = $CATEGORY_RECIPEFAILURE_MWLDSYM2_UNDEFINEDSYMBOL;
       
   176 		RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file);
       
   177 	}
       
   178 	elsif ($text =~ m,MAKEDEF ERROR: \d+ Frozen Export\(s\) missing from object files,)
       
   179 	{
       
   180 		my $subcategory = $CATEGORY_RECIPEFAILURE_MAKEDEF_FROZENEXPORTMISSING;
   169 		RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file);
   181 		RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file);
   170 	}
   182 	}
   171 	else # log everything by default
   183 	else # log everything by default
   172 	{
   184 	{
   173 		RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file);
   185 		RaptorCommon::dump_fault($category, $subcategory, $severity, $config, $component, $mmp, $phase, $recipe, $file);