author | William Roberts <williamr@symbian.org> |
Mon, 21 Jun 2010 18:22:54 +0100 | |
changeset 8 | c38b26fd0c68 |
parent 7 | 8c4a7869f673 |
child 9 | cb10ec12dc45 |
permissions | -rw-r--r-- |
1
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
1 |
#! perl |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
2 |
|
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
3 |
# Copyright (c) 2010 Symbian Foundation Ltd |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
4 |
# This component and the accompanying materials are made available |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
5 |
# under the terms of the License "Eclipse Public License v1.0" |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
6 |
# which accompanies this distribution, and is available |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
7 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html". |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
8 |
# |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
9 |
# Initial Contributors: |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
10 |
# Symbian Foundation Ltd - initial contribution. |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
11 |
# |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
12 |
# Contributors: |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
13 |
# |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
14 |
# Description: |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
15 |
# Perl script to summarise GCC logs |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
16 |
|
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
17 |
use strict; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
18 |
use Getopt::Long; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
19 |
|
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
20 |
sub Usage($) |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
21 |
{ |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
22 |
my ($msg) = @_; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
23 |
|
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
24 |
print "$msg\n\n" if ($msg ne ""); |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
25 |
|
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
26 |
print <<'EOF'; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
27 |
summarise_gcc_errors.pl - simple script for analysing gcc error logs |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
28 |
|
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
29 |
This script will read a collection of GCC output logs and summarise |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
30 |
the error messages in various useful ways. |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
31 |
|
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
32 |
Options: |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
33 |
|
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
34 |
-warnings process warnings as well as errors |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
35 |
-verbose list the files associated with each error |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
36 |
|
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
37 |
EOF |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
38 |
exit (1); |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
39 |
} |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
40 |
|
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
41 |
my $warnings = 0; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
42 |
my $verbose = 0; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
43 |
|
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
44 |
# Analyse the rest of command-line parameters |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
45 |
if (!GetOptions( |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
46 |
"w|warnings" => \$warnings, |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
47 |
"v|verbose" => \$verbose, |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
48 |
)) |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
49 |
{ |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
50 |
Usage("Invalid argument"); |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
51 |
} |
3
5578c2bec847
Update gcce summary tool to note the affected packages, and update summary text
William Roberts <williamr@symbian.org>
parents:
1
diff
changeset
|
52 |
|
5578c2bec847
Update gcce summary tool to note the affected packages, and update summary text
William Roberts <williamr@symbian.org>
parents:
1
diff
changeset
|
53 |
my $current_package = ""; |
8
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
54 |
my $current_mmp = ""; |
7
8c4a7869f673
Add heuristic for guessing the source file associated with assembler errors
William Roberts <williamr@symbian.org>
parents:
3
diff
changeset
|
55 |
my $saved_filename = ""; |
8
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
56 |
my $current_link_target; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
57 |
|
1
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
58 |
my %files; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
59 |
my %errors_by_file; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
60 |
my %error_count_by_file; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
61 |
my %errors; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
62 |
my %message_ids; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
63 |
my %files_by_message_id; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
64 |
my %messages_by_id; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
65 |
my %unique_message_counts; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
66 |
my %all_message_counts; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
67 |
my $next_message_id = 1; |
3
5578c2bec847
Update gcce summary tool to note the affected packages, and update summary text
William Roberts <williamr@symbian.org>
parents:
1
diff
changeset
|
68 |
my %packages_by_file; |
5578c2bec847
Update gcce summary tool to note the affected packages, and update summary text
William Roberts <williamr@symbian.org>
parents:
1
diff
changeset
|
69 |
my %package_count_by_file; |
8
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
70 |
my %missing_ELF_symbol; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
71 |
my %missing_export; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
72 |
my %excess_export; |
3
5578c2bec847
Update gcce summary tool to note the affected packages, and update summary text
William Roberts <williamr@symbian.org>
parents:
1
diff
changeset
|
73 |
|
8
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
74 |
sub handle_message($$$$$) |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
75 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
76 |
my ($package,$filename,$lineno,$messagetype,$message) = @_; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
77 |
|
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
78 |
my $generic_message = "$messagetype: $message"; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
79 |
$generic_message =~ s/'offsetof'/"offsetof"/; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
80 |
$generic_message =~ s/'([^a-zA-Z])'/"\1"/g; # don't catch ';' in next substitution |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
81 |
$generic_message =~ s/['`][^']+'/XX/g; # suppress quoted bits of the actual instance |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
82 |
$generic_message =~ s/pasting ""(.*)"" and ""(.*)""/pasting XX and YY/g; # suppress detail of "pasting" error |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
83 |
|
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
84 |
my $message_id = $next_message_id; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
85 |
if (!defined $message_ids{$generic_message}) |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
86 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
87 |
$next_message_id++; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
88 |
$message_ids{$generic_message} = $message_id; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
89 |
$messages_by_id{$message_id} = $generic_message; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
90 |
$all_message_counts{$message_id} = 1; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
91 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
92 |
else |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
93 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
94 |
$message_id = $message_ids{$generic_message}; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
95 |
$all_message_counts{$message_id} += 1; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
96 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
97 |
my $instance = sprintf("%s:%d: %s-#%d", $filename, $lineno, $messagetype, $message_id); |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
98 |
|
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
99 |
my $packages = $packages_by_file{$filename}; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
100 |
if (!defined $packages) |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
101 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
102 |
$packages_by_file{$filename} = "\t$package\t"; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
103 |
$package_count_by_file{$filename} = 1; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
104 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
105 |
else |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
106 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
107 |
if (index($packages,"\t$package\t") < 0) |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
108 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
109 |
$packages_by_file{$filename} .= "\t$package\t"; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
110 |
$package_count_by_file{$filename} += 1; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
111 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
112 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
113 |
|
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
114 |
if (defined $files{$instance}) |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
115 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
116 |
# already seen this one |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
117 |
return; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
118 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
119 |
|
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
120 |
if (!defined $unique_message_counts{$message_id}) |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
121 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
122 |
$unique_message_counts{$message_id} = 1; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
123 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
124 |
else |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
125 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
126 |
$unique_message_counts{$message_id} += 1; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
127 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
128 |
$files{$instance} = $message; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
129 |
|
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
130 |
if (!defined $files_by_message_id{$message_id}) |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
131 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
132 |
$files_by_message_id{$message_id} = $filename; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
133 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
134 |
else |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
135 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
136 |
$files_by_message_id{$message_id} .= "\n$filename"; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
137 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
138 |
|
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
139 |
my $error = sprintf "%-5d: %s: %s", $lineno, $messagetype, $message; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
140 |
if (!defined $errors_by_file{$filename}) |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
141 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
142 |
$errors_by_file{$filename} = $error; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
143 |
$error_count_by_file{$filename} = 1; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
144 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
145 |
else |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
146 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
147 |
$errors_by_file{$filename} .= "\n$error"; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
148 |
$error_count_by_file{$filename} += 1; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
149 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
150 |
} |
1
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
151 |
|
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
152 |
my $line; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
153 |
while ($line = <>) |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
154 |
{ |
3
5578c2bec847
Update gcce summary tool to note the affected packages, and update summary text
William Roberts <williamr@symbian.org>
parents:
1
diff
changeset
|
155 |
# </pre>os/usb, usb_CompilerCompatibility.005, SF_builds/usb/builds/CompilerCompatibility/usb_CompilerCompatibility.005/html/os_usb_failures.html |
5578c2bec847
Update gcce summary tool to note the affected packages, and update summary text
William Roberts <williamr@symbian.org>
parents:
1
diff
changeset
|
156 |
|
5578c2bec847
Update gcce summary tool to note the affected packages, and update summary text
William Roberts <williamr@symbian.org>
parents:
1
diff
changeset
|
157 |
if ($line =~/\/html\/([^\/]+)_failures.html/) |
5578c2bec847
Update gcce summary tool to note the affected packages, and update summary text
William Roberts <williamr@symbian.org>
parents:
1
diff
changeset
|
158 |
{ |
5578c2bec847
Update gcce summary tool to note the affected packages, and update summary text
William Roberts <williamr@symbian.org>
parents:
1
diff
changeset
|
159 |
$current_package = $1; |
5578c2bec847
Update gcce summary tool to note the affected packages, and update summary text
William Roberts <williamr@symbian.org>
parents:
1
diff
changeset
|
160 |
$current_package =~ s/_/\//; |
5578c2bec847
Update gcce summary tool to note the affected packages, and update summary text
William Roberts <williamr@symbian.org>
parents:
1
diff
changeset
|
161 |
next; |
5578c2bec847
Update gcce summary tool to note the affected packages, and update summary text
William Roberts <williamr@symbian.org>
parents:
1
diff
changeset
|
162 |
} |
8
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
163 |
|
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
164 |
# <recipe ... bldinf='M:/sf/os/bt/atext/group/bld.inf' ... |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
165 |
|
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
166 |
if ($line =~ /^<recipe/o) |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
167 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
168 |
if ($line =~ / bldinf='..(\S+)' mmp='..(\S+)'/) |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
169 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
170 |
my $bldinf = $1; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
171 |
$current_mmp = $2; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
172 |
my ($root, $sf, $layer, $package, @rest) = split /\//, $bldinf; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
173 |
$current_package = "$layer/$package"; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
174 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
175 |
next; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
176 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
177 |
|
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
178 |
# remember context from various commands |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
179 |
if (substr($line,0,1) eq "+") |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
180 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
181 |
if ($line =~ /g\+\+\.exe .* -o (\S+)\.sym /oi) |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
182 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
183 |
$current_link_target = $1; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
184 |
next; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
185 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
186 |
if ($line =~ /^elf2e32.exe .* --output=(\S+) /oi) |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
187 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
188 |
$current_link_target = $1; # admittedly an E32 image file, but never mind... |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
189 |
next; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
190 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
191 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
192 |
|
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
193 |
# M:/sf/os/kernelhwsrv/kernel/eka/drivers/soundsc/soundldd.cpp:2927: undefined reference to `__aeabi_uidiv' |
3
5578c2bec847
Update gcce summary tool to note the affected packages, and update summary text
William Roberts <williamr@symbian.org>
parents:
1
diff
changeset
|
194 |
|
1
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
195 |
# M:/epoc32/include/elements/nm_interfaces.h:255: warning: dereferencing type-punned pointer will break strict-aliasing rules |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
196 |
# M:/epoc32/include/f32file.h:2169: warning: invalid access to non-static data member 'TVolFormatParam::iUId' of NULL object |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
197 |
# M:/epoc32/include/f32file.h:2169: warning: (perhaps the 'offsetof' macro was used incorrectly) |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
198 |
# M:/epoc32/include/comms-infras/ss_nodemessages.h:301: error: wrong number of template arguments (3, should be 4) |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
199 |
# M:/epoc32/include/elements/nm_signatures.h:496: error: provided for 'template<class TSIGNATURE, int PAYLOADATTRIBOFFSET, class TATTRIBUTECREATIONPOLICY, int PAYLOADBUFFERMAXLEN> class Messages::TSignatureWithPolymorphicPayloadMetaType' |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
200 |
# M:/epoc32/include/comms-infras/ss_nodemessages.h:301: error: invalid type in declaration before ';' token |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
201 |
|
8
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
202 |
if ($line =~ /(^...*):(\d+): (([^:]+): )?(.*)$/) |
1
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
203 |
{ |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
204 |
my $filename = $1; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
205 |
my $lineno = $2; |
8
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
206 |
my $messagetype = $4; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
207 |
my $message = $5; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
208 |
|
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
209 |
$filename =~ s/^.://; # remove drive letter |
1
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
210 |
|
8
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
211 |
$message =~ s/&/&/g; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
212 |
$message =~ s/>/>/g; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
213 |
$message =~ s/</</g; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
214 |
$message =~ s/'/'/g; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
215 |
|
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
216 |
if ($messagetype eq "") |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
217 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
218 |
if ($message =~ /^undefined reference to .([^\']+).$/) |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
219 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
220 |
my $symbol = $1; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
221 |
$missing_ELF_symbol{"$current_package\t$filename $lineno\t$symbol\timpacts $current_link_target"} = 1; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
222 |
$messagetype = "error"; # linker error, fall through to the rest of the processing |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
223 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
224 |
else |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
225 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
226 |
next; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
227 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
228 |
} |
7
8c4a7869f673
Add heuristic for guessing the source file associated with assembler errors
William Roberts <williamr@symbian.org>
parents:
3
diff
changeset
|
229 |
# Heuristic for guessing the problem file for assembler issues |
8c4a7869f673
Add heuristic for guessing the source file associated with assembler errors
William Roberts <williamr@symbian.org>
parents:
3
diff
changeset
|
230 |
# |
8c4a7869f673
Add heuristic for guessing the source file associated with assembler errors
William Roberts <williamr@symbian.org>
parents:
3
diff
changeset
|
231 |
if ($filename =~ /\\TEMP\\/i) |
8c4a7869f673
Add heuristic for guessing the source file associated with assembler errors
William Roberts <williamr@symbian.org>
parents:
3
diff
changeset
|
232 |
{ |
8c4a7869f673
Add heuristic for guessing the source file associated with assembler errors
William Roberts <williamr@symbian.org>
parents:
3
diff
changeset
|
233 |
$filename = $saved_filename; |
8c4a7869f673
Add heuristic for guessing the source file associated with assembler errors
William Roberts <williamr@symbian.org>
parents:
3
diff
changeset
|
234 |
$lineno = 0; |
8c4a7869f673
Add heuristic for guessing the source file associated with assembler errors
William Roberts <williamr@symbian.org>
parents:
3
diff
changeset
|
235 |
} |
8c4a7869f673
Add heuristic for guessing the source file associated with assembler errors
William Roberts <williamr@symbian.org>
parents:
3
diff
changeset
|
236 |
else |
8c4a7869f673
Add heuristic for guessing the source file associated with assembler errors
William Roberts <williamr@symbian.org>
parents:
3
diff
changeset
|
237 |
{ |
8c4a7869f673
Add heuristic for guessing the source file associated with assembler errors
William Roberts <williamr@symbian.org>
parents:
3
diff
changeset
|
238 |
$saved_filename = $filename; |
8c4a7869f673
Add heuristic for guessing the source file associated with assembler errors
William Roberts <williamr@symbian.org>
parents:
3
diff
changeset
|
239 |
} |
8c4a7869f673
Add heuristic for guessing the source file associated with assembler errors
William Roberts <williamr@symbian.org>
parents:
3
diff
changeset
|
240 |
|
1
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
241 |
if ($messagetype eq "note") |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
242 |
{ |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
243 |
next; # ignore notes |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
244 |
} |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
245 |
if ($messagetype eq "warning" && !$warnings) |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
246 |
{ |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
247 |
next; # ignore warnings |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
248 |
} |
8
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
249 |
if ($messagetype eq "Warning" && $message =~ /No relevant classes found./) |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
250 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
251 |
next; # ignore Qt code generation warnings |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
252 |
} |
7
8c4a7869f673
Add heuristic for guessing the source file associated with assembler errors
William Roberts <williamr@symbian.org>
parents:
3
diff
changeset
|
253 |
if ($message =~ /.*: No such file/ && !$warnings) |
8c4a7869f673
Add heuristic for guessing the source file associated with assembler errors
William Roberts <williamr@symbian.org>
parents:
3
diff
changeset
|
254 |
{ |
8
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
255 |
# next; # ignore "no such file", as these aren't likely to be GCC-specific |
7
8c4a7869f673
Add heuristic for guessing the source file associated with assembler errors
William Roberts <williamr@symbian.org>
parents:
3
diff
changeset
|
256 |
} |
8
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
257 |
|
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
258 |
handle_message($current_package,$filename,$lineno,$messagetype,$message); |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
259 |
next; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
260 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
261 |
|
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
262 |
# Error: unrecognized option -mapcs |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
263 |
|
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
264 |
if ($line =~ /^Error: (.*)$/) |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
265 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
266 |
my $message = $1; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
267 |
handle_message($current_package,$current_mmp,0,"Error",$message); |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
268 |
next; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
269 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
270 |
|
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
271 |
# Elf2e32: Warning: New Symbol _ZN15DMMCMediaChangeC1Ei found, export(s) not yet Frozen |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
272 |
# elf2e32 : Error: E1036: Symbol _ZN21CSCPParamDBControllerD0Ev,_ZN21CSCPParamDBControllerD1Ev,_ZN21CSCPParamDBControllerD2Ev Missing from ELF File : M:/epoc32/release/armv5/udeb/scpdatabase.dll.sym. |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
273 |
|
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
274 |
if ($line =~ /^elf2e32 ?: ([^:]+): (.*)$/oi) |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
275 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
276 |
my $messagetype = $1; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
277 |
my $message = $2; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
278 |
|
1
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
279 |
$message =~ s/&/&/g; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
280 |
$message =~ s/>/>/g; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
281 |
$message =~ s/</</g; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
282 |
|
8
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
283 |
if ($message =~ /E1036: Symbol (\S+) Missing from ELF File : (.*)\.sym/i) |
3
5578c2bec847
Update gcce summary tool to note the affected packages, and update summary text
William Roberts <williamr@symbian.org>
parents:
1
diff
changeset
|
284 |
{ |
8
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
285 |
my $symbol_list = $1; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
286 |
my $linktarget = $2; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
287 |
|
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
288 |
foreach my $symbol (split /,/, $symbol_list) |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
289 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
290 |
$missing_export{"$current_package\t???\t$symbol\timpacts $linktarget"} = 1; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
291 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
292 |
next; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
293 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
294 |
|
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
295 |
if ($message =~ /New Symbol (\S+) found, export.s. not yet Frozen/oi) |
3
5578c2bec847
Update gcce summary tool to note the affected packages, and update summary text
William Roberts <williamr@symbian.org>
parents:
1
diff
changeset
|
296 |
{ |
8
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
297 |
my $symbol = $1; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
298 |
$excess_export{"$current_package\t???\t$symbol\textra in $current_link_target"} = 1; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
299 |
next; |
3
5578c2bec847
Update gcce summary tool to note the affected packages, and update summary text
William Roberts <williamr@symbian.org>
parents:
1
diff
changeset
|
300 |
} |
1
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
301 |
} |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
302 |
} |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
303 |
|
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
304 |
# clean up the file lists |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
305 |
my %filecount_by_message_id; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
306 |
foreach my $id (keys %files_by_message_id) |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
307 |
{ |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
308 |
my @longlist = split /\n/, $files_by_message_id{$id}; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
309 |
my %uniq; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
310 |
foreach my $file (@longlist) |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
311 |
{ |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
312 |
$uniq{$file} = 1; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
313 |
} |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
314 |
my $uniqlist = join( "\n\t", sort keys %uniq); |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
315 |
$files_by_message_id{$id} = $uniqlist; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
316 |
$filecount_by_message_id{$id} = scalar keys %uniq; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
317 |
} |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
318 |
|
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
319 |
print "\n\n====Occurrences of messages (distinct, all)\n"; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
320 |
foreach my $id ( sort {$unique_message_counts{$b} <=> $unique_message_counts{$a}} keys %unique_message_counts) |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
321 |
{ |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
322 |
printf "%-6d\t%-6d\t%s\n", $unique_message_counts{$id}, $all_message_counts{$id}, $messages_by_id{$id}; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
323 |
} |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
324 |
|
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
325 |
print "\n\n====Files affected per message\n"; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
326 |
foreach my $id ( sort {$filecount_by_message_id{$b} <=> $filecount_by_message_id{$a}} keys %filecount_by_message_id) |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
327 |
{ |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
328 |
printf "%-6d\t%s\n", $filecount_by_message_id{$id}, $messages_by_id{$id}; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
329 |
if ($verbose) |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
330 |
{ |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
331 |
print "\t", $files_by_message_id{$id}; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
332 |
} |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
333 |
} |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
334 |
|
3
5578c2bec847
Update gcce summary tool to note the affected packages, and update summary text
William Roberts <williamr@symbian.org>
parents:
1
diff
changeset
|
335 |
print "\n\n====Packages impacted (if > 1)\n"; |
5578c2bec847
Update gcce summary tool to note the affected packages, and update summary text
William Roberts <williamr@symbian.org>
parents:
1
diff
changeset
|
336 |
foreach my $file ( sort {$package_count_by_file{$b} <=> $package_count_by_file{$a}} keys %package_count_by_file) |
5578c2bec847
Update gcce summary tool to note the affected packages, and update summary text
William Roberts <williamr@symbian.org>
parents:
1
diff
changeset
|
337 |
{ |
5578c2bec847
Update gcce summary tool to note the affected packages, and update summary text
William Roberts <williamr@symbian.org>
parents:
1
diff
changeset
|
338 |
if ($package_count_by_file{$file} < 2) |
5578c2bec847
Update gcce summary tool to note the affected packages, and update summary text
William Roberts <williamr@symbian.org>
parents:
1
diff
changeset
|
339 |
{ |
5578c2bec847
Update gcce summary tool to note the affected packages, and update summary text
William Roberts <williamr@symbian.org>
parents:
1
diff
changeset
|
340 |
next; |
5578c2bec847
Update gcce summary tool to note the affected packages, and update summary text
William Roberts <williamr@symbian.org>
parents:
1
diff
changeset
|
341 |
} |
5578c2bec847
Update gcce summary tool to note the affected packages, and update summary text
William Roberts <williamr@symbian.org>
parents:
1
diff
changeset
|
342 |
my ($empty,@packages) = split /\t+/, $packages_by_file{$file}; |
5578c2bec847
Update gcce summary tool to note the affected packages, and update summary text
William Roberts <williamr@symbian.org>
parents:
1
diff
changeset
|
343 |
printf "%-6d\t%s\n\t(%s)\n",$package_count_by_file{$file}, $file, join(", ", @packages); |
5578c2bec847
Update gcce summary tool to note the affected packages, and update summary text
William Roberts <williamr@symbian.org>
parents:
1
diff
changeset
|
344 |
} |
5578c2bec847
Update gcce summary tool to note the affected packages, and update summary text
William Roberts <williamr@symbian.org>
parents:
1
diff
changeset
|
345 |
|
1
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
346 |
print "\n\n====Affected files by package\n"; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
347 |
my $current_package = ""; |
8
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
348 |
my $current_packagename; |
1
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
349 |
my @currentfiles; |
8
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
350 |
my @bugzilla_stuff; |
1
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
351 |
foreach my $file (sort keys %error_count_by_file) |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
352 |
{ |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
353 |
my ($root, $sf, $layer, $packagename, @rest) = split /[\/\\]/, $file; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
354 |
my $package = "$sf/$layer/$packagename"; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
355 |
if ($layer eq "include") |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
356 |
{ |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
357 |
$package = "$sf/$layer"; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
358 |
} |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
359 |
if ($package ne $current_package) |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
360 |
{ |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
361 |
if ($current_package ne "") |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
362 |
{ |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
363 |
printf "%-6d\t%s\n", scalar @currentfiles, $current_package; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
364 |
print join("\n",@currentfiles); |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
365 |
print "\n"; |
8
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
366 |
my $bugreport = sprintf "\"%s\",%d,\"GCC compilation issues in %s\",\"GCC_SURGE\"", $current_package, scalar @currentfiles, $current_packagename; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
367 |
$bugreport .= ",\"" . join("<br>", "Issues identified in the following source files:", @currentfiles) . "\""; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
368 |
push @bugzilla_stuff, $bugreport; |
1
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
369 |
} |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
370 |
$current_package = $package; |
8
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
371 |
$current_packagename = $packagename; |
1
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
372 |
@currentfiles = (); |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
373 |
} |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
374 |
my $filedetails = sprintf "\t%-6d\t%s", $error_count_by_file{$file}, $file; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
375 |
push @currentfiles, $filedetails; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
376 |
} |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
377 |
printf "%-6d\t%s\n", scalar @currentfiles, $current_package; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
378 |
print join("\n",@currentfiles); |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
379 |
print "\n"; |
8
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
380 |
my $bugreport = sprintf "\"%s\",%d,\"GCC compilation issues in %s\",\"GCC_SURGE\"", $current_package, scalar @currentfiles, $current_packagename; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
381 |
$bugreport .= ',"' . join("<br>", "Issues identified in the following source files:", @currentfiles) . '"'; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
382 |
push @bugzilla_stuff, $bugreport; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
383 |
|
1
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
384 |
|
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
385 |
print "\n\n====Messages by file\n"; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
386 |
foreach my $file ( sort keys %error_count_by_file) |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
387 |
{ |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
388 |
my @details = split "\n", $errors_by_file{$file}; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
389 |
printf "%-6d\t%s\n\t", $error_count_by_file{$file}, $file; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
390 |
print join("\n\t", @details); |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
391 |
print "\n"; |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
392 |
} |
fd0863fd52e5
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
393 |
|
8
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
394 |
my %visibility_summary; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
395 |
print "\n\n====Visibility problems - all\n"; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
396 |
foreach my $problem ( sort (keys %missing_ELF_symbol, keys %missing_export, keys %excess_export)) |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
397 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
398 |
print "$problem\n"; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
399 |
my ($package,$file,$symbol,$impact) = split /\t/, $problem; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
400 |
my $key = "$symbol\t$package"; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
401 |
if (!defined $visibility_summary{$key}) |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
402 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
403 |
$visibility_summary{$key} = 0; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
404 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
405 |
$visibility_summary{$key} += 1; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
406 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
407 |
|
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
408 |
print "\n\n====Symbol visibility problems (>1 instance)\n"; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
409 |
my $current_symbol = ""; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
410 |
my $references = 0; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
411 |
my @packagelist = (); |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
412 |
foreach my $problem ( sort keys %visibility_summary) |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
413 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
414 |
my ($symbol, $package) = split /\t/, $problem; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
415 |
if ($symbol ne $current_symbol) |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
416 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
417 |
if ($current_symbol ne "" && $references > 1) |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
418 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
419 |
printf "%-6d\t%s\n", $references, $current_symbol; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
420 |
printf "\t%-6d\t%s\n", scalar @packagelist, join(", ", @packagelist); |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
421 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
422 |
$current_symbol = $symbol; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
423 |
$references = 0; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
424 |
@packagelist = (); |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
425 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
426 |
$references += $visibility_summary{$problem}; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
427 |
push @packagelist, $package; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
428 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
429 |
if ($references > 1) |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
430 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
431 |
printf "%-6d\t%s\n", $references, $current_symbol; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
432 |
printf "\t%-6d\t%s\n", scalar @packagelist, join(", ", @packagelist); |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
433 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
434 |
|
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
435 |
print "\n\n====Missing symbols causing ELF link failures\n"; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
436 |
foreach my $problem ( sort keys %missing_ELF_symbol) |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
437 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
438 |
print "$problem\n"; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
439 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
440 |
|
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
441 |
|
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
442 |
my @simple_exports = (); |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
443 |
my @vague_exports = (); |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
444 |
foreach my $problem (keys %missing_export) |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
445 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
446 |
my ($package,$file,$symbol,$impact) = split /\t/, $problem; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
447 |
if ($symbol =~ /^(_ZN\d|[^_]|__)/) |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
448 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
449 |
push @simple_exports, $problem; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
450 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
451 |
else |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
452 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
453 |
push @vague_exports, $problem; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
454 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
455 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
456 |
printf "\n\n====Simple exports missing from linked ELF executables - (%d)\n", scalar @simple_exports; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
457 |
print join("\n", sort @simple_exports, ""); |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
458 |
printf "\n\n====Vague linkage exports missing from linked ELF executables - (%d)\n", scalar @vague_exports; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
459 |
print join("\n", sort @vague_exports, ""); |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
460 |
|
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
461 |
@simple_exports = (); |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
462 |
@vague_exports = (); |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
463 |
foreach my $problem (keys %excess_export) |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
464 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
465 |
my ($package,$file,$symbol,$impact) = split /\t/, $problem; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
466 |
if ($symbol =~ /^(_ZN\d|_Z\d|[^_]|__)/) |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
467 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
468 |
push @simple_exports, $problem; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
469 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
470 |
else |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
471 |
{ |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
472 |
push @vague_exports, $problem; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
473 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
474 |
} |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
475 |
|
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
476 |
printf "\n\n====Simple unfrozen exports found in linked ELF executables - (%d)\n", scalar @simple_exports; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
477 |
print join("\n", sort @simple_exports, ""); |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
478 |
printf "\n\n====Vague linkage unfrozen exports found in linked ELF executables - (%d)\n", scalar @vague_exports; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
479 |
print join("\n", sort @vague_exports, ""); |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
480 |
|
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
481 |
|
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
482 |
print "\n\n====Bugzilla CSV input\n"; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
483 |
print "\"product\",\"count\",\"short_desc\",\"keywords\",\"long_desc\"\n"; |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
484 |
print join("\n", @bugzilla_stuff, ""); |
c38b26fd0c68
Substantial update of summarise_gcc_errors.pl, for the GCC_SURGE work
William Roberts <williamr@symbian.org>
parents:
7
diff
changeset
|
485 |