compilation.txt 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589
  1. * Introduction -*-compilation-*- (Copyright information at end of file)
  2. This shows the different kinds of messages compile recognizes by default and
  3. how they are rendered. It is intended both to help you decide which matchers
  4. you need and as a test of the matchers. Move the mouse over a colored part or
  5. use `compilation-message-face', to see how much text was actually matched.
  6. Note that the following example line should NOT be highlighted:
  7. Compilation started at Sat Jul 8 15:19:25
  8. The important part is the symbol(s) line at the beginning of each entry.
  9. These are the symbols you can customize `compilation-error-regexp-alist' for,
  10. to match the messages shown in that entry. A few complex cases have more than
  11. one symbol, which should be selected together.
  12. * Absoft FORTRAN 77 Compiler 3.1.3
  13. symbol: absoft
  14. Error on line 3 of t.f: Execution error unclassifiable statement
  15. Line 45 of "foo.c": bloofle undefined
  16. error on line 19 of fplot.f: spelling error?
  17. warning on line 17 of fplot.f: data type is undefined for variable d
  18. * Ada & Mpatrol (memory leak debugger)
  19. symbol: ada
  20. This matches only the end of line, the beginning is covered by GNU style.
  21. foo.adb:61:11: [...] in call to size declared at foo.ads:11
  22. 0x8008621 main+16 at error.c:17
  23. * IBM AIX PS/2 C version 1.1
  24. symbol: aix
  25. ****** Error number 140 in line 8 of file errors.c ******
  26. * Ant Java: works at least for jikes and javac
  27. symbol: ant
  28. The regexps found on http://ant.apache.org/faq.html, and since
  29. integrated in both Emacsen, were hairy. The extra two numbers for
  30. jikes are the ending line and ending column.
  31. [javac] /src/DataBaseTestCase.java:27: unreported exception ...
  32. [javac] /src/DataBaseTestCase.java:49: warning: finally clause cannot complete normally
  33. [jikes] foo.java:3:5:7:9: blah blah
  34. * Bash v2
  35. symbol: bash
  36. a.sh: line 1: ls-l: command not found
  37. * Borland C++, C++Builder
  38. symbol: borland
  39. Error ping.c 15: Unable to open include file 'sys/types.h'
  40. Warning ping.c 68: Call to function 'func' with no prototype
  41. Error E2010 ping.c 15: Unable to open include file 'sys/types.h'
  42. Warning W1022 ping.c 68: Call to function 'func' with no prototype
  43. * Caml & Python
  44. symbol: caml
  45. File "foobar.ml", lines 5-8, characters 20-155: blah blah
  46. File "F:\ocaml\sorting.ml", line 65, characters 2-145:
  47. Warning: this expression should have type unit.
  48. File "/usr/share/gdesklets/display/TargetGauge.py", line 41, in add_children
  49. File \lib\python\Products\PythonScripts\PythonScript.py, line 302, in _exec
  50. File "/tmp/foo.py", line 10
  51. * Apollo cc, 4.3BSD fc & IBM RS6000/AIX xlc compiler & Microtec mcc68k & GNAT (July 94)
  52. symbol: comma
  53. "foo.f", line 3: Error: syntax error near end of statement
  54. "vvouch.c", line 19.5: 1506-046 (S) Syntax error.
  55. "foo.c", line 32 pos 1; (E) syntax error; unexpected symbol: "lossage"
  56. "foo.adb", line 2(11): warning: file name does not match ...
  57. "src/swapping.c", line 30.34: 1506-342 (W) "/*" detected in comment.
  58. * Cucumber
  59. symbol: cucumber
  60. Feature: This is an example for backtrace.
  61. Scenario: undefined step # features/cucumber.feature:3
  62. Given this is undefined # features/cucumber.feature:4
  63. Scenario: assertion false (Test::Unit) # foo/bar.feature:6
  64. Given this will generate 'assert false' # foo/bar.rb:1
  65. <false> is not true. (Test::Unit::AssertionFailedError)
  66. /home/gusev/.rvm/foo/bar.rb:48:in `assert_block'
  67. /home/gusev/.rvm/foo/bar.rb:500:in `_wrap_assertion'
  68. features/cucumber.feature:7:in `Given this will generate 'assert false''
  69. Scenario: assertion false (RSpec) # foo/bar.feature:9
  70. Given this will generate 'should be_true' # foo/bar.rb:5
  71. expected true to be false (Spec::Expectations::ExpectationNotMetError)
  72. ./foo/bar/baz.rb:6:in `/^this will generate 'should be_true'$/'
  73. foo/bar.feature:10:in `Given this will generate 'should be_true''
  74. Scenario: backtrace in step definition # foo/bar.feature:12
  75. Given this will generate backtrace # foo/sbar.rb:9
  76. (RuntimeError)
  77. ./foo/bar.rb:10:in `/^this will generate backtrace$/'
  78. foo/bar.feature:13:in `Given this will generate backtrace'
  79. Failing Scenarios:
  80. cucumber foo/cucumber.feature:6 # Scenario: assertion false (Test::Unit)
  81. cucumber foo/cucumber.feature:9 # Scenario: assertion false (RSpec)
  82. cucumber foo/cucumber.feature:12 # Scenario: backtrace in step definition
  83. cucumber foo/cucumber.feature:15 # Scenario: deeep backtrace in step definition
  84. 5 scenarios (4 failed, 1 undefined)
  85. 5 steps (4 failed, 1 undefined)
  86. 0m0.007s
  87. * EDG C/C++
  88. symbol: edg-1 edg-2
  89. build/intel/debug/../../../struct.cpp(42): error: identifier "foo" is undefined
  90. build/intel/debug/../../../struct.cpp(44): warning #1011: missing return statement at end of ...
  91. build/intel/debug/../../../iptr.h(302): remark #981: operands are evaluated in unspecified order
  92. detected during ... at line 62 of "build/intel/debug/../../../trace.h"
  93. * EPC F90 compiler
  94. symbol: epc
  95. Error 24 at (2:progran.f90) : syntax error
  96. * Fortran checker
  97. symbols: ftnchek
  98. Dummy arg W in module SUBA line 8 file arrayclash.f is array
  99. L4 used at line 55 file test/assign.f; never set
  100. Warning near line 10 file arrayclash.f: Module contains no executable
  101. Nonportable usage near line 31 col 9 file assign.f: mixed default and explicit
  102. * IAR Systems C Compiler
  103. symbol: iar
  104. "foo.c",3 Error[32]: Error message
  105. "foo.c",3 Warning[32]: Error message
  106. * IBM C/C++ Tools 2.01
  107. symbol: ibm
  108. foo.c(2:0) : informational EDC0804: Function foo is not referenced.
  109. foo.c(3:8) : warning EDC0833: Implicit return statement encountered.
  110. foo.c(5:5) : error EDC0350: Syntax error.
  111. * Ultrix MIPS RISC CC, DEC AXP OSF/1 cc, IRIX 5.2 & NAG Fortran
  112. symbol: irix
  113. ccom: Error: foo.c, line 2: syntax error
  114. cc: Severe: /src/Python-2.3.3/Modules/_curses_panel.c, line 17: Cannot find file <panel.h> ...
  115. cc: Info: foo.c, line 27: ...
  116. cfe: Warning 712: foo.c, line 2: illegal combination of pointer and ...
  117. cfe: Warning 600: xfe.c: 170: Not in a conditional directive while ...
  118. /usr/lib/cmplrs/cc/cfe: Error: foo.c: 1: blah blah
  119. /usr/lib/cmplrs/cc/cfe: warning: foo.c: 1: blah blah
  120. foo bar: baz.f, line 27: ...
  121. * Java Exception & Valgrind (memory debugger for x86 GNU/Linux)
  122. symbol: java
  123. Register 6 contains wrong type
  124. at org.foo.ComponentGateway.doGet(ComponentGateway.java:172)
  125. at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
  126. ==1332== Invalid write of size 1
  127. ==1332== at 0x4040743C: System::getErrorString() (../src/Lib/System.cpp:217)
  128. ==1332== by 0x8008621: main (vtest.c:180)
  129. * IBM jikes
  130. symbols: jikes-file jikes-line
  131. Jikes separates file names from the actual error messages. For visual
  132. feedback the underline and the word "Error" on the 3rd line is fontified like
  133. a file name would be.
  134. Found 2 semantic errors compiling "../javax/swing/BorderFactory.java":
  135. 150. case '{':
  136. <->
  137. *** Error: The type of this expression, "char", is not ...
  138. 312. return new CompoundBorder(outside, inside);
  139. <--------------------------------->
  140. *** Error: No match was found for constructor ...
  141. Issued 1 semantic warning compiling "java/awt/Toolkit.java":
  142. 504. void imgProduceImage( ImageNativeProducer prod, Ptr imgData);
  143. <----------------->
  144. *** Warning: The type "ImageNativeProducer" is defined ...
  145. * GCC include message
  146. symbol: gcc-include
  147. The last file, i.e. the one you are compiling, is the interesting one.
  148. In file included from /usr/include/c++/3.3/backward/warn.h:4,
  149. from /usr/include/c++/3.3/backward/iostream.h:31:0,
  150. from test_clt.cc:1:
  151. * GNU style
  152. symbol: gnu
  153. foo.c:8: message
  154. ../foo.c:8: W: message
  155. /tmp/foo.c:8:warning message
  156. foo/bar.py:8: FutureWarning message
  157. foo.py:8: RuntimeWarning message
  158. foo.c:8:I: message
  159. foo.c:8.23: note: message
  160. foo.c:8.23: info: message
  161. foo.c:8:23:information: message
  162. foo.c:8.23-45: Informational: message
  163. foo.c:8-23: message
  164. foo.c:8-45.3: message
  165. foo.c:8.23-9.1: message
  166. foo.el:3:1:Error: End of file during parsing
  167. jade:dbcommon.dsl:133:17:E: missing argument for function call
  168. G:/cygwin/dev/build-myproj.xml:54: Compiler Adapter 'javac' can't be found.
  169. file:G:/cygwin/dev/build-myproj.xml:54: Compiler Adapter 'javac' can't be found.
  170. {standard input}:27041: Warning: end of file not at end of a line; newline inserted
  171. * Lucid Compiler, lcc 3.x
  172. symbol: lcc
  173. E, file.cc(35,52) Illegal operation on pointers
  174. W, file.cc(36,52) blah blah
  175. * makepp 1.20
  176. symbol: makepp
  177. makepp: Scanning `/foo/bar.c'
  178. makepp: warning: bla bla `/foo/bar.c' and `/foo/bar.h'
  179. makepp: bla bla `/foo/Makeppfile:12' bla
  180. makepp: bla bla `/foo/bar.c' and `/foo/bar.h'
  181. * maven 2.0.9
  182. symbol: maven
  183. FooBar.java:[111,53] no interface expected here
  184. * MIPS lint; looks good for SunPro lint also
  185. symbols: mips-1 mips-2
  186. This can match multiple times on a line.
  187. TrimMask (255) in solomon.c may be indistinguishable from TrimMasks (93) in solomon.c due to truncation
  188. name defined but never used: LinInt in cmap_calc.c(199)
  189. * Microsoft C/C++
  190. symbol: msft
  191. This used to be less selective and allowed characters other than parens around
  192. the line number, but that caused confusion for GNU-style error messages. This
  193. used to reject spaces and dashes in file names, but they are valid now; so I
  194. made it more strict about the error message that follows.
  195. keyboard handler.c(537) : warning C4005: 'min' : macro redefinition
  196. d:\tmp\test.c(23) : error C2143: syntax error : missing ';' before 'if'
  197. d:\tmp\test.c(1145) : see declaration of 'nsRefPtr'
  198. * Open Watcom
  199. symbol: watcom
  200. ..\src\ctrl\lister.c(109): Error! E1009: Expecting ';' but found '{'
  201. ..\src\ctrl\lister.c(120): Warning! W201: Unreachable code
  202. * Oracle pro*c
  203. symbol: oracle
  204. This stupid precompiler wraps lines at column 80 in the middle of a file name.
  205. There is no obvious way of detecting this or turning it off. But if you
  206. delete the newline (probably needs M-x toggle-read-only), the file name will
  207. automatically be reparsed, so that you can then go there.
  208. Semantic error at line 528, column 5, file erosacqdb.pc:
  209. Error at line 41, column 10 in file /usr/src/sb/ODBI_BHP.hpp
  210. PCC-02150: error at line 49, column 27 in file /usr/src/sb/ODBI_dxfgh.pc
  211. PCC-00003: invalid SQL Identifier at column name in line 12 of file /usr/src/sb/ODBI_BHP.hpp
  212. PCC-00004: mismatched IF/ELSE/ENDIF block at line 27 in file /usr/src/sb/ODBI_BHP.hpp
  213. PCC-02151: line 21 column 40 file /usr/src/sb/ODBI_BHP.hpp:
  214. * Perl
  215. symbol: perl
  216. The second sample, from the Perl-Glib module, is a Glib message put
  217. through Perl warn() to get "at FILENAME line N".
  218. syntax error at automake line 922, near "':'"
  219. Died at test.pl line 27.
  220. store::odrecall('File_A', 'x2') called at store.pm line 90
  221. (in cleanup) something bad at foo.pl line 3 during global destruction.
  222. GLib-GObject-WARNING **: /build/buildd/glib2.0-2.14.5/gobject/gsignal.c:1741: instance `0x8206790' has no handler with id `1234' at t-compilation-perl-gtk.pl line 3.
  223. * PHP
  224. symbol: php
  225. Parse error: parse error, unexpected $ in main.php on line 59
  226. Fatal error: Call to undefined function: mysql_pconnect() in db.inc on line 66
  227. * Ruby
  228. symbol: ruby
  229. plain-exception.rb:7:in `fun': unhandled exception
  230. from plain-exception.rb:3:in `proxy'
  231. from plain-exception.rb:12
  232. * Ruby (Test::Unit)
  233. symbol: ruby-Test::Unit
  234. Loaded suite examples/test-unit
  235. Started
  236. FFFE
  237. Finished in 0.023173 seconds.
  238. 1) Failure:
  239. test_a_deep_assert(BacktracesTest)
  240. [examples/test-unit.rb:28:in `here_is_a_deep_assert'
  241. examples/test-unit.rb:19:in `test_a_deep_assert']:
  242. <false> is not true.
  243. 2) Failure:
  244. test_assert(BacktracesTest) [examples/test-unit.rb:5]:
  245. <false> is not true.
  246. 3) Failure:
  247. test_assert_raise(BacktracesTest) [examples/test-unit.rb:9]:
  248. Exception raised:
  249. Class: <RuntimeError>
  250. Message: <"">
  251. ---Backtrace---
  252. examples/test-unit.rb:10:in `test_assert_raise'
  253. examples/test-unit.rb:9:in `test_assert_raise'
  254. ---------------
  255. 4) Error:
  256. test_backtrace(BacktracesTest):
  257. NoMethodError: undefined method `not_exists' for nil:NilClass
  258. examples/test-unit.rb:24:in `some_function_call_from_nil'
  259. examples/test-unit.rb:15:in `test_backtrace'
  260. 4 tests, 3 assertions, 3 failures, 1 errors
  261. * RXP
  262. symbol: rxp
  263. GPL XML validator at http://www.cogsci.ed.ac.uk/~richard/rxp.html
  264. Error: Mismatched end tag: expected </geroup>, got </group>
  265. in unnamed entity at line 71 char 8 of file:///home/reto/test/group.xml
  266. Warning: Start tag for undeclared element geroup
  267. in unnamed entity at line 4 char 8 of file:///home/reto/test/group.xml
  268. * Sparc Pascal
  269. symbols: sparc-pascal-file sparc-pascal-line sparc-pascal-example
  270. These messages don't contain a file name. Instead the compiler gives a
  271. message whenever the file being compiled is changed. For visual feedback the
  272. error code is fontified like a file name would be.
  273. Thu May 14 10:46:12 1992 mom3.p:
  274. 20 linjer : array[1..4] of linje;
  275. w 18480-----------^--- Inserted ';'
  276. 20 linjer : array[1..4] of linje;
  277. e 18480-----------^--- Inserted ';'
  278. w 18520 line 61 - 0 is undefined
  279. E 18520 line 61 - 0 is undefined
  280. * SGI IRIX MipsPro 7.3 & Sun F90 & Cray C
  281. symbol: sun
  282. cc-1020 CC: REMARK File = CUI_App.h, Line = 735
  283. cc-1070 cc: WARNING File = linkl.c, Line = 38
  284. cf90-113 f90comp: ERROR NSE, File = Hoved.f90, Line = 16, Column = 3
  285. * Sun Ada (VADS, Solaris)
  286. symbol: sun-ada
  287. /home3/xdhar/rcds_rc/main.a, line 361, char 6:syntax error: "," inserted
  288. * 4.3BSD grep, cc, lint
  289. symbol: 4bsd
  290. /usr/src/foo/foo.c(8): warning: w may be used before set
  291. /usr/src/foo/foo.c(9): error: w is used before set
  292. strcmp: variable # of args. llib-lc(359) :: /usr/src/foo/foo.c(8)
  293. bloofle defined( /users/wolfgang/foo.c(4) ), but never used
  294. * GCOV (test coverage program)
  295. symbol: gcov-file gcov-bb-file gcov-never-called-line gcov-called-line
  296. -: 0:Source:foo.c
  297. -: 0:Object:foo.bb
  298. -: 1:/* $ gcc -fprofile-arcs -ftest-coverage foo.c
  299. -: 2: $ ./a.out
  300. -: 3: $ gcov foo.c
  301. -: 4: LANG=C gcov foo.c
  302. -: 5: 62.50% of 8 lines executed in file foo.c
  303. -: 6: Creating foo.c.gcov.*/
  304. -: 7:int
  305. -: 8:main(int argc, char ** argv)
  306. 1: 9:{
  307. 1: 10: int r;
  308. 1: 11: if (argc == 1)
  309. 1: 12: r = 1;
  310. #####: 13: else if (argc == 2)
  311. #####: 14: r = 2;
  312. -: 15: else
  313. #####: 16: r = 0;
  314. 1: 17: return r;
  315. -: 18:}
  316. * Podchecker error messages, per Pod::Checker
  317. symbol: perl--Pod::Checker
  318. *** ERROR: Spurious text after =cut at line 193 in file foo.pm
  319. *** ERROR: =over on line 37 without closing =back at line EOF in file bar.pm
  320. *** ERROR: =over on line 1 without closing =back (at head1) at line 3 in file x.pod
  321. * Perl Test module error messages
  322. symbol: perl--Test
  323. # Failed test 1 in foo.t at line 6
  324. * Perl Test.pm module error messages comparing two values
  325. symbol: perl--Test2
  326. # Test 3 got: "99" (d-compilation-perl.t at line 29)
  327. # Expected: "88" (my test name)
  328. # d-compilation-perl.t line 29 is: ok(99,88,'my test name');
  329. # Test 6 got: "xx" (foo.t at line 33 fail #2)
  330. # Expected: "yy"
  331. * Perl Test::Harness output
  332. symbol: perl--Test::Harness
  333. NOK 1# Test 1 got: "1234" (t/foo.t at line 46)
  334. * Perl HTML::Lint::Error::as_string()
  335. symbol: weblint
  336. index.html (13:1) Unknown element <fdjsk>
  337. * Directory tracking
  338. Directories are matched via `compilation-directory-matcher'. Files which are
  339. not shown as full paths are searched for relative to the directory where the
  340. message was issued.
  341. Entering directory `/a/b/c'
  342. Leaving directory `/a/b/c'
  343. gmake[2]: Entering directory `/a/b/c'
  344. makepp: Leaving directory `/a/b/c'
  345. * Miscellaneous
  346. These are not messages that can be gone to. They are only highlighted via
  347. `compilation-mode-font-lock-keywords' to recognize some useful information at
  348. a glance.
  349. checking dynamic linker characteristics... GNU/Linux ld.so
  350. checking if libtool supports shared libraries... yes
  351. checking whether to build shared libraries... yes
  352. checking whether -lc should be explicitly linked in... (cached) no
  353. checking For GLIB - version >= 2.0.0... yes (version 2.1.0)
  354. checking FONTCONFIG_CFLAGS...
  355. tool -o foo.o foo.c
  356. tool -o=foo.o foo.c
  357. tool -output foo.o foo.c
  358. tool -output=foo.o foo.c
  359. tool -outfile foo.o foo.c
  360. tool -outfile=foo.o foo.c
  361. tool --output foo.o foo.c
  362. tool --output=foo.o foo.c
  363. tool --outfile foo.o foo.c
  364. tool --outfile=foo.o foo.c
  365. tool -omega foo.c foo2.c
  366. tool -output-html-file foo.c foo2.c
  367. tool --omega foo.c foo2.c
  368. tool --output-html-file foo.c foo2.c
  369. Compilation started at Wed Jul 20 12:20:10
  370. Compilation interrupt at Wed Jul 20 12:20:10
  371. Compilation killed at Wed Jul 20 12:20:10
  372. Compilation terminated at Wed Jul 20 12:20:10
  373. Compilation exited abnormally with code 1 at Wed Jul 20 12:21:12
  374. Compilation segmentation fault at Thu Jul 13 10:55:49
  375. Compilation finished at Thu Jul 21 15:02:15
  376. Copyright (C) 2004-2012 Free Software Foundation, Inc.
  377. COPYING PERMISSIONS:
  378. This document is free software: you can redistribute it and/or modify
  379. it under the terms of the GNU General Public License as published by
  380. the Free Software Foundation, either version 3 of the License, or
  381. (at your option) any later version.
  382. This program is distributed in the hope that it will be useful,
  383. but WITHOUT ANY WARRANTY; without even the implied warranty of
  384. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  385. GNU General Public License for more details.
  386. You should have received a copy of the GNU General Public License
  387. along with this program. If not, see <http://www.gnu.org/licenses/>.