help-gnu-emacs
[Top][All Lists]
Advanced

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

Pathscale Fortran compiler errors and Emacs


From: Roland.Csaszar
Subject: Pathscale Fortran compiler errors and Emacs
Date: 02 Oct 2006 18:48:49 GMT
User-agent: slrn/0.9.8.1pl1 (Debian)

Just for the records (I didn't find something similar):

Here is a short snipped of code (you can put in your .emacs file) with
which the error message is parsed and the source file, line and column
extracted. The source file's name is between the first '\\(' and '\\)',
the line between the second '\\(' and '\\)' and the column between the
third '\\(' and '\\)'.

You can also use it as a reference for other compiler's errors.

;; recognize pathscale errors
(require 'compile)
(setq compilation-error-regexp-alist
      (append compilation-error-regexp-alist
          '(("^pathf9[05]-[0-9]+ pathf9[05]: .*, File =
             \\([^.]+[.][a-zA-Z0-9]+\\), Line = \\([0-9]+\\), Column
             = \\([0-9]+\\)"
        1 2 3)))) 

A typical error message looks like this:
     module procedure mult_vec
                      ^        
pathf95-368 pathf95: ERROR MY_MODULE, File =
  module.f95, Line = 6, Column = 23 
Module procedure "MULT_VEC" must be defined
  in this scoping unit or associated from
  another scoping unit.


reply via email to

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