From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.bugs Subject: bug#6778: 24.0.50; compile-mode fails on gcc-4.5 error messages Date: Mon, 02 Aug 2010 23:14:59 +0900 Message-ID: <87sk2x14po.fsf@catnip.gol.com> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1280759892 5867 80.91.229.12 (2 Aug 2010 14:38:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 Aug 2010 14:38:12 +0000 (UTC) To: 6778@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 02 16:38:09 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ofw9Y-0007JD-G6 for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Aug 2010 16:38:09 +0200 Original-Received: from localhost ([127.0.0.1]:46475 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ofw9X-0006BA-Pl for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Aug 2010 10:38:07 -0400 Original-Received: from [140.186.70.92] (port=53525 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ofw9R-0006B0-Ec for bug-gnu-emacs@gnu.org; Mon, 02 Aug 2010 10:38:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ofw9Q-0006gO-19 for bug-gnu-emacs@gnu.org; Mon, 02 Aug 2010 10:38:01 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48385) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ofw9P-0006gK-TI for bug-gnu-emacs@gnu.org; Mon, 02 Aug 2010 10:37:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OfvnC-0005SW-Su; Mon, 02 Aug 2010 10:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Miles Bader Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Aug 2010 14:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6778 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.128075848520962 (code B ref -1); Mon, 02 Aug 2010 14:15:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Aug 2010 14:14:45 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ofvmv-0005S3-5u for submit@debbugs.gnu.org; Mon, 02 Aug 2010 10:14:45 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ofvmt-0005Ry-PA for submit@debbugs.gnu.org; Mon, 02 Aug 2010 10:14:44 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:36726) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OfvnH-0000pK-66 for submit@debbugs.gnu.org; Mon, 02 Aug 2010 10:15:07 -0400 Original-Received: from [140.186.70.92] (port=38667 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OfvnF-00014H-CQ for bug-gnu-emacs@gnu.org; Mon, 02 Aug 2010 10:15:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OfvnC-0003Hn-Bh for bug-gnu-emacs@gnu.org; Mon, 02 Aug 2010 10:15:05 -0400 Original-Received: from smtp12.dentaku.gol.com ([203.216.5.74]:49223) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OfvnB-0003HH-UC; Mon, 02 Aug 2010 10:15:02 -0400 Original-Received: from 218.231.154.125.eo.eaccess.ne.jp ([218.231.154.125] helo=catnip.gol.com) by smtp12.dentaku.gol.com with esmtpa (Dentaku) id 1OfvnA-0002db-8D; Mon, 02 Aug 2010 23:15:00 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 6DC4DDF93; Mon, 2 Aug 2010 23:14:59 +0900 (JST) System-Type: x86_64-unknown-linux-gnu Original-Lines: 150 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 02 Aug 2010 10:15:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:39150 Archived-At: Emacs compile.el fails to parse correctly gcc 4.5 error messages that include a column as well as a line number. To reproduce, assuming gcc 4.5 is installed as "gcc-4.5": (1) Put the following text into a file "x.c": int y =3D 1; int z =3D q1; int p =3D 1; (2) Now compile by doing "M-x compile", and for a compilation command, use "gcc-4.5 -c x.c". (3) The compiler will output an error message like: -*- mode: compilation; default-directory: "/tmp/" -*- Compilation started at Mon Aug 2 23:07:40 gcc-4.5 -c x.c x.c:2:12: error: =E2=80=98q1=E2=80=99 undeclared here (not in a funct= ion) Compilation exited abnormally with code 1 at Mon Aug 2 23:07:40 (4) One should be able to jump to the error by giving the command `next-error' ("C-x `"); however next-error apparently is confused by the error, and instead gives a prompt like: Find this error in (default x.c:2): /tmp/ Apparently it fails to recognize the FILE:LINE:COL: format, and thinks that ":2" is part of the filename. My recollection is that such error messages used to be properly parsed by next-error, so maybe some recent change has broken this. Thanks, -Miles In GNU Emacs 24.0.50.20 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2010-07-31 on catnip Windowing system distributor `The X.Org Foundation', version 11.0.10706901 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: ja_JP.UTF-8 value of $XMODIFIERS: @im=3DSCIM locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Group Minor modes in effect: gnus-topic-mode: t gnus-undo-mode: t rcirc-track-minor-mode: t minibuffer-electric-default-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t scroll-bar-mode: right global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-v C-g C-g C-x C-v / t m p / x . c i n t=20 SPC x SPC SPC =3D SPC 1 ; C-a C-u 3 SPC C-e=20 C-p C-a C-k C-k C-y C-y C-y C-y C-y C-u C-p=20 C-n C-e C-b C-b q C-x C-s C-a C-n C-n C-n C-n C-u C-p=20 C-M-f C-f C-d y C-n C-b C-d z C-n C-b C-d p C-n C-b=20 C-d q C-x C-s C-n C-n C-x C-e x . o y e C-x=20 C-e C-g C-/ C-x C-e C-a d d g c c=20 SPC - c C-x C-e M-p M-n c =20 C-x C-n C-x C-e C-a M-f - 4 . 5 C-x C-n C-g=20 C-x C-g C-x C-e M-b M-b M-b M-b C-d 4 C-x=20 C-n C-g C-x s e d e l c o m p i l e - m o=20 d e SPC f a i l s SPC t o SPC u n d e r s t a n d SPC=20 5 g c c - 4 . 5 SPC e r r o 5 r SPC m =20 r SPC m e s s a=20 g e s C-h v c o m i p l e h c o m=20 p i l e SPC SPC C-u e r r o SPC r SPC C-g =20 x c u s t o m z i e C-g C-x b C-a C-p C-p=20 C-k C-k C-n C-n C-n C-k C-k C-n C-n C-x C-s =20 x C-g C-g C-x s C-a C-x k C-x k =20 y e s x r e p o r t - e m SPC Recent messages: xding byte-code: End of buffer xding byte-code: End of buffer Saving file /tmp/x.c... Wrote /tmp/x.c xding Quit xding Ispell process killed Load-path shadows: None found. Features: (shadow emacsbug help-mode view warnings compile comint copyright cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs flyspell ispell pp gnus-fun qp flow-fill sort gnus-cite smiley ansi-color mail-extr gnus-async gnus-bcklg face-remap gnus-dup gnus-ml disp-table gnus-topic parse-time timezone byte-opt bytecomp byte-compile nnml auth-source netrc gnus-delay gnus-draft gnus-agent gnus-srvr gnus-score score-mode nnvirtual nntp gnus-cache gnus-msg gnus-art mm-uu mml2015 epg-config mm-view smime password-cache dig mailcap gnus-sum gnus-group gnus-undo nndraft nnmh nnoo nnmail mail-source format-spec gnus-start gnus-spec gnus-int gnus-range gnus-win lua-mode-autoloads package reporter server uniquify rcirc time-date ring minibuf-eldef gnus gnus-ems nnheader gnus-util wid-edit cus-start cus-load derived advice help-fns advice-preload easy-mmode message sendmail regexp-opt rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader japan-util tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) --=20 The key to happiness is having dreams. [from a fortune cookie]