(compilation-error-regexp-alist-alist) extend irix for NAG Fortran and add ftnchek-*
[bpt/emacs.git] / etc / compilation.txt
CommitLineData
38ca2dff
SM
1* Introduction -*-compilation-*-
2
3This shows the different kinds of messages compile recognizes by default and
4how they are rendered. It is intended both to help you decide which matchers
5you need and as a test of the matchers. Move the mouse over a colored part or
6use `compilation-message-face', to see how much text was actually matched.
7
8The important part is the symbol(s) line at the beginning of each entry.
9These are the symbols you can customize `compilation-error-regexp-alist' for,
10to match the messages shown in that entry. A few complex cases have more than
11one symbol, which should be selected together.
12
13
14* Absoft FORTRAN 77 Compiler 3.1.3
15
16symbol: absoft
17
18Error on line 3 of t.f: Execution error unclassifiable statement
19Line 45 of "foo.c": bloofle undefined
20error on line 19 of fplot.f: spelling error?
21warning on line 17 of fplot.f: data type is undefined for variable d
22
23
24* Ada & Mpatrol (memory leak debugger)
25
26symbol: ada
27
28This matches only the end of line, the beginning is covered by GNU style.
29
30foo.adb:61:11: [...] in call to size declared at foo.ads:11
31 0x8008621 main+16 at error.c:17
32
33
34* IBM AIX PS/2 C version 1.1
35
36symbol: aix
37
38****** Error number 140 in line 8 of file errors.c ******
39
40
41* Ant Java: works at least for jikes and javac
42
43symbol: ant
44
45The regexps found on http://ant.apache.org/faq.html, and since integrated in
46both Emacsen, were hairy. Why so many numbers for jikes -- is one a column
47number?
48
49 [javac] /src/DataBaseTestCase.java:27: unreported exception ...
50 [javac] /src/DataBaseTestCase.java:49: warning: finally clause cannot complete normally
51 [jikes] foo.java:3:5:7:9: blah blah
52
53
54* Bash v2
55
56symbol: bash
57
58a.sh: line 1: ls-l: command not found
59
60
61* Borland C++, C++Builder
62
63symbol: borland
64
65Error ping.c 15: Unable to open include file 'sys/types.h'
66Warning ping.c 68: Call to function 'func' with no prototype
67Error E2010 ping.c 15: Unable to open include file 'sys/types.h'
68Warning W1022 ping.c 68: Call to function 'func' with no prototype
69
70
71* Caml & Python
72
73symbol: caml
74
75File "foobar.ml", lines 5-8, characters 20-155: blah blah
76File "F:\ocaml\sorting.ml", line 65, characters 2-145:
77Warning: this expression should have type unit.
78 File "/usr/share/gdesklets/display/TargetGauge.py", line 41, in add_children
1618ce6d
DP
79 File \lib\python\Products\PythonScripts\PythonScript.py, line 302, in _exec
80 File "/tmp/foo.py", line 10
38ca2dff
SM
81
82
83* Apollo cc, 4.3BSD fc & IBM RS6000/AIX xlc compiler & Microtec mcc68k & GNAT (July 94)
84
85symbol: comma
86
87"foo.f", line 3: Error: syntax error near end of statement
88"vvouch.c", line 19.5: 1506-046 (S) Syntax error.
89"foo.c", line 32 pos 1; (E) syntax error; unexpected symbol: "lossage"
90"foo.adb", line 2(11): warning: file name does not match ...
91"src/swapping.c", line 30.34: 1506-342 (W) "/*" detected in comment.
92
93
1b44af75
DP
94* EDG C/C++
95
96symbol: edg-1 edg-2
97
98build/intel/debug/../../../struct.cpp(42): error: identifier "foo" is undefined
99build/intel/debug/../../../struct.cpp(44): warning #1011: missing return statement at end of ...
100build/intel/debug/../../../iptr.h(302): remark #981: operands are evaluated in unspecified order
101 detected during ... at line 62 of "build/intel/debug/../../../trace.h"
102
103
38ca2dff
SM
104* EPC F90 compiler
105
106symbol: epc
107
108Error 24 at (2:progran.f90) : syntax error
109
110
0b55311a
DP
111* Fortran checker
112
113symbols: ftnchek-file ftnchek-line-file ftnchek-line
114
115File average.f:
116
117Warning in module COMPAV: Variables may be used before set:
118 SUM used at line 14
119 SUM set at line 14
120
121Warning near line 16 col 20: integer quotient expr I/J converted to real
122
123 Dummy arg W in module SUBA line 8 file arrayclash.f is array
124 L4 used at line 55 file test/assign.f; never set
125Warning near line 10 file arrayclash.f: Module contains no executable
126Nonportable usage near line 31 col 9 file assign.f: mixed default and explicit
127
128
38ca2dff
SM
129* IAR Systems C Compiler
130
131symbol: iar
132
133"foo.c",3 Error[32]: Error message
134"foo.c",3 Warning[32]: Error message
135
136
137* IBM C/C++ Tools 2.01
138
139symbol: ibm
140
141foo.c(2:0) : informational EDC0804: Function foo is not referenced.
142foo.c(3:8) : warning EDC0833: Implicit return statement encountered.
143foo.c(5:5) : error EDC0350: Syntax error.
144
145
0b55311a 146* Ultrix MIPS RISC CC, DEC AXP OSF/1 cc, IRIX 5.2 & NAG Fortran
38ca2dff
SM
147
148symbol: irix
149
150ccom: Error: foo.c, line 2: syntax error
63915149 151cc: Severe: /src/Python-2.3.3/Modules/_curses_panel.c, line 17: Cannot find file <panel.h> ...
1618ce6d 152cc: Info: foo.c, line 27: ...
38ca2dff
SM
153cfe: Warning 712: foo.c, line 2: illegal combination of pointer and ...
154cfe: Warning 600: xfe.c: 170: Not in a conditional directive while ...
155/usr/lib/cmplrs/cc/cfe: Error: foo.c: 1: blah blah
156/usr/lib/cmplrs/cc/cfe: warning: foo.c: 1: blah blah
157
158
159* Java Exception & Valgrind (memory debugger for x86 GNU/Linux)
160
161symbol: java
162
163Register 6 contains wrong type
164 at org.foo.ComponentGateway.doGet(ComponentGateway.java:172)
165 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
166==1332== Invalid write of size 1
167==1332== at 0x4040743C: System::getErrorString() (../src/Lib/System.cpp:217)
168==1332== by 0x8008621: main (vtest.c:180)
169
170
171* IBM jikes
172
173symbols: jikes-file jikes-line
174
175Jikes separates file names from the actual error messages. For visual
176feedback the underline and the word "Error" on the 3rd line is fontified like
177a file name would be.
178
179Found 2 semantic errors compiling "../javax/swing/BorderFactory.java":
180
181 150. case '{':
182 <->
183*** Error: The type of this expression, "char", is not ...
184
185 312. return new CompoundBorder(outside, inside);
186 <--------------------------------->
187*** Error: No match was found for constructor ...
188
189Issued 1 semantic warning compiling "java/awt/Toolkit.java":
190
191 504. void imgProduceImage( ImageNativeProducer prod, Ptr imgData);
192 <----------------->
193*** Warning: The type "ImageNativeProducer" is defined ...
194
195
196* GCC include message
197
198symbol: gcc-include
199
200The last file, i.e. the one you are compiling, is the interesting one.
201
202In file included from /usr/include/c++/3.3/backward/warn.h:4,
203 from /usr/include/c++/3.3/backward/iostream.h:31,
204 from test_clt.cc:1:
205
206
207* GNU style
208
209symbol: gnu
210
211foo.c:8: message
212../foo.c:8: W: message
213/tmp/foo.c:8:warning message
214foo/bar.py:8: FutureWarning message
215foo.py:8: RuntimeWarning message
216foo.c:8:I: message
217foo.c:8.23: info: message
218foo.c:8:23:information: message
219foo.c:8.23-45: Informational: message
220foo.c:8-23: message
221foo.c:8-45.3: message
222foo.c:8.23-9.1: message
223jade:dbcommon.dsl:133:17:E: missing argument for function call
224G:/cygwin/dev/build-myproj.xml:54: Compiler Adapter 'javac' can't be found.
225file:G:/cygwin/dev/build-myproj.xml:54: Compiler Adapter 'javac' can't be found.
d7d7fd30 226{standard input}:27041: Warning: end of file not at end of a line; newline inserted
38ca2dff
SM
227
228
229* Lucid Compiler, lcc 3.x
230
231symbol: lcc
232
233E, file.cc(35,52) Illegal operation on pointers
234W, file.cc(36,52) blah blah
235
236
237* makepp 1.20
238
239symbol: makepp
240
241makepp: Scanning `/foo/bar.c'
242makepp: warning: bla bla `/foo/bar.c' and `/foo/bar.h'
243makepp: bla bla `/foo/Makeppfile:12' bla
244makepp: bla bla `/foo/bar.c' and `/foo/bar.h'
245
246
247* MIPS lint; looks good for SunPro lint also
248
249symbols: mips-1 mips-2
250
251This can match multiple times on a line.
252
253TrimMask (255) in solomon.c may be indistinguishable from TrimMasks (93) in solomon.c due to truncation
254name defined but never used: LinInt in cmap_calc.c(199)
255
256
257* Microsoft C/C++
258
259symbol: msft
260
261This used to be less selective and allowed characters other than parens around
262the line number, but that caused confusion for GNU-style error messages. This
263used to reject spaces and dashes in file names, but they are valid now; so I
264made it more strict about the error message that follows.
265
266keyboard handler.c(537) : warning C4005: 'min' : macro redefinition
267d:\tmp\test.c(23) : error C2143: syntax error : missing ';' before 'if'
268
269
270* Oracle pro*c
271
272symbol: oracle
273
d7d7fd30
DP
274This stupid precompiler wraps lines at column 80 in the middle of a file name.
275There is no obvious way of detecting this or turning it off. But if you
276delete the newline, the file name will automatically be reparsed, so that you
277can then go there.
278
38ca2dff 279Semantic error at line 528, column 5, file erosacqdb.pc:
d7d7fd30
DP
280Error at line 41, column 10 in file /usr/src/sb/ODBI_BHP.hpp
281PCC-02150: error at line 49, column 27 in file /usr/src/sb/ODBI_dxfgh.pc
282PCC-00003: invalid SQL Identifier at column name in line 12 of file /usr/src/sb/ODBI_BHP.hpp
283PCC-00004: mismatched IF/ELSE/ENDIF block at line 27 in file /usr/src/sb/ODBI_BHP.hpp
284PCC-02151: line 21 column 40 file /usr/src/sb/ODBI_BHP.hpp:
38ca2dff
SM
285
286
287* Perl
288
289symbol: perl
290
291syntax error at automake line 922, near "':'"
292Died at test.pl line 27.
293store::odrecall('File_A', 'x2') called at store.pm line 90
294
295
296* RXP
297
298symbol: rxp
299
300GPL XML validator at http://www.cogsci.ed.ac.uk/~richard/rxp.html
301
302Error: Mismatched end tag: expected </geroup>, got </group>
303in unnamed entity at line 71 char 8 of file:///home/reto/test/group.xml
304Warning: Start tag for undeclared element geroup
305in unnamed entity at line 4 char 8 of file:///home/reto/test/group.xml
306
307
308* Sparc Pascal
309
310symbols: sparc-pascal-file sparc-pascal-line sparc-pascal-example
311
312These messages don't contain a file name. Instead the compiler gives a
313message whenever the file being compiled is changed. For visual feedback the
314error code is fontified like a file name would be.
315
316Thu May 14 10:46:12 1992 mom3.p:
317 20 linjer : array[1..4] of linje;
318w 18480-----------^--- Inserted ';'
319 20 linjer : array[1..4] of linje;
320e 18480-----------^--- Inserted ';'
321w 18520 line 61 - 0 is undefined
322E 18520 line 61 - 0 is undefined
323
324
325* SGI IRIX MipsPro 7.3 & Sun F90 & Cray C
326
327symbol: sun
328
329cc-1020 CC: REMARK File = CUI_App.h, Line = 735
330cc-1070 cc: WARNING File = linkl.c, Line = 38
331cf90-113 f90comp: ERROR NSE, File = Hoved.f90, Line = 16, Column = 3
332
333
334* Sun Ada (VADS, Solaris)
335
336symbol: sun-ada
337
338/home3/xdhar/rcds_rc/main.a, line 361, char 6:syntax error: "," inserted
339
340
38ca2dff
SM
341* 4.3BSD grep, cc, lint
342
343symbol: 4bsd
344
345/usr/src/foo/foo.c(8): warning: w may be used before set
346/usr/src/foo/foo.c(9): error: w is used before set
347strcmp: variable # of args. llib-lc(359) :: /usr/src/foo/foo.c(8)
348bloofle defined( /users/wolfgang/foo.c(4) ), but never used
349
350
351* Directory tracking
352
353Directories are matched via `compilation-directory-matcher'. Files which are
354not shown as full paths are searched for relative to the directory where the
355message was issued.
356
357Entering directory `/a/b/c'
358Leaving directory `/a/b/c'
359gmake[2]: Entering directory `/a/b/c'
360makepp: Leaving directory `/a/b/c'
361
362
363* Miscellaneous
364
365These are not messages that can be gone to. They are only highlighted via
366`compilation-mode-font-lock-keywords' to recognize some useful information at
367a glance.
368
369checking dynamic linker characteristics... GNU/Linux ld.so
370checking if libtool supports shared libraries... yes
371checking whether to build shared libraries... yes
372checking whether -lc should be explicitly linked in... (cached) no
373checking For GLIB - version >= 2.0.0... yes (version 2.1.0)
374checking FONTCONFIG_CFLAGS...
375g++ -o foo.o foo.cc
376tool1 -output=foo foo.x
377tool2 --outfile foo foo.y