[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Nonstandard error message from ld

From: Richard Stallman
Subject: Nonstandard error message from ld
Date: Tue, 21 Dec 2004 06:21:52 -0500

I think this is a matter of incorrect output from ld, because the
second error message doesn't follow the specs in the GNU Coding
Standards.  Outputting that extra information (in parens) may
be useful, but please don't put it into the beginning of the error
message which is the part that's supposed to be parsable by programs.

------- Start of forwarded message -------
X-Authentication-Warning: yagi.ingate.se: ceder set sender to address@hidden
        using -f
To: address@hidden
From: Per Cederqvist <address@hidden>
Date: Mon, 13 Dec 2004 14:24:19 +0100
X-Virus-Scanned: ClamAV 0.80/622/Wed Dec  8 14:36:53 2004
        clamav-milter version 0.80j on usagi.ingate.se
X-Virus-Status: Clean
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.4
        (usagi.ingate.se []);
        Mon, 13 Dec 2004 14:24:19 +0100 (CET)
Subject: compilation-error-regexp-alist-alist misses errors in ar files
Sender: address@hidden
X-Spam-Status: No, hits=-0.4 required=5.0
X-Spam-Checker-Version: SpamAssassin 2.55 (

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the address@hidden mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Using M-x compile, I compiled a program that failed to link.  The
following two errors were reported.  Note how the first message is
split in two lines, so that the long path to Receiver.cpp starts on a
new line.  The second message, however, is on a single line.

The first message is highlighted in the *compilation* buffer, but the
second is not.  The enclosed patch adds a new style for error
messages, gnu-inside-ar, that detects this family of errors.  The
regexp was created by taking the entry for "gnu" and replacing the
initial "^" with "\\.a([^)]*\\.o)([^)]*)".

sip/sip.a(Receiver.o)(.text+0x1ec0): In function `Receiver::ProcessMsg(int)':
/opt/users/ceder/sipfw/sip/src/Receiver.cpp:776: undefined reference to 
`scAccept(int, int)'
 undefined reference to `scAccept(int, int)'

(Maybe this is a bug in gcc and/or ld, and not in GNU Emacs.  I'm
using gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5) and GNU ld
version 20030206.)

I fetched the sources to GNU Emacs from CVS on 2004-12-06.

In GNU Emacs (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2004-12-06 on rapture.ingate.se
Distributor `The X.Org Foundation', version 11.0.60700000
configured using `configure '--enable-maintainer-mode' '--prefix=/sw/emacs/cvs' 

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Major mode: Compilation

Minor modes in effect:
  display-time-mode: t
  auto-compression-mode: t
  mouse-wheel-mode: t
  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  line-number-mode: t

Recent input:
[not relevant]

Recent messages:
[not relevant]

Suggested fix:
- --- working directory: /sw/emacs/cvs/share/emacs/21.3.50/lisp/progmodes/
% diff -u compile.el~ compile.el
- --- compile.el~       2004-11-25 04:02:18.000000000 +0100
+++ compile.el  2004-12-13 14:17:30.000000000 +0100
@@ -221,6 +221,15 @@
      1 (2 . 5) (4 . 6) (7 . 8))
+    (gnu-inside-ar
+     "\\.a([^)]*\\.o)([^)]*):\\(?:[[:alpha:]][-[:alnum:].]+: ?\\)?\
+\\([/.]*[a-zA-Z]:?[^ \t\n:]*\\|{standard input}\\): ?\
+\\(?: *\\(\\(?:Future\\|Runtime\\)?[Ww]arning\\|W:\\)\\|\
+ *\\([Ii]nfo\\(?:\\>\\|rmationa?l?\\)\\|I:\\)\\)?"
+     1 (2 . 5) (4 . 6) (7 . 8))
      "^\\(?:E\\|\\(W\\)\\), \\([^(\n]+\\)(\\([0-9]+\\),[ \t]*\\([0-9]+\\)"
      2 3 4 (1))

- -- 
Per Cederqvist <address@hidden>, Chief Architect, Ingate Systems AB

Emacs-pretest-bug mailing list
------- End of forwarded message -------

reply via email to

[Prev in Thread] Current Thread [Next in Thread]