For Programmers: Free Programming Magazines  


Home > Archive > Fortran > October 2006 > Pathscale compiler errors and Emacs









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Pathscale compiler errors and Emacs
Roland.Csaszar

2006-10-02, 7:03 pm

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.

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.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com