Collate the RVCT "cannot open source input file" errors to list the missing files
authorWilliam Roberts <williamr@symbian.org>
Wed, 14 Apr 2010 09:46:27 +0100
changeset 6 2618a0f10e3e
parent 5 29cf076edbda
child 7 8c4a7869f673
Collate the RVCT "cannot open source input file" errors to list the missing files
tools/summarise_rvct_errors.pl
--- a/tools/summarise_rvct_errors.pl	Mon Apr 12 16:01:06 2010 +0100
+++ b/tools/summarise_rvct_errors.pl	Wed Apr 14 09:46:27 2010 +0100
@@ -63,6 +63,7 @@
 my $next_message_id = 1;
 my %packages_by_file;
 my %package_count_by_file;
+my %missing_files;
 
 my $linktarget = "";
 my %visibility_problems;
@@ -79,6 +80,17 @@
 		next;
 		}
 
+	# Error: #5: cannot open source input file "lbs/epos_cposprivacynotifier.h":
+	
+	if ($line =~ /cannot open source input file (\"|&quot;)(.*)(\"|&quot)/)
+		{
+		my $missing_file = $2;
+		my $count = $missing_files{$missing_file};
+		$count = 0 if (!defined $count);
+		$missing_files{$missing_file} = $count + 1;
+		
+		# and fall through to the rest of the processing...
+		}
 	# ... &#39;--soname=glxgridviewplugin{000a0000}[20000a03].dll&x39; ...
 	
 	if ($line =~ /--soname=(\S+)(.000a0000.)?(\S+)[&']/)
@@ -292,3 +304,9 @@
 	{
 	print "$problem\n";
 	}
+
+print "\n\n====Missing files\n";
+foreach my $file ( sort {$missing_files{$b} <=> $missing_files{$a}} keys %missing_files)
+	{
+	printf "%-6d\t%s\n",$missing_files{$file}, $file;
+	}