As a [b]workaround[/b], you might try to switch to stabs debug format (of course, if pgf77 compiler is able to produce it) or switch to Sun Studio f77 compiler.
What you're seeing is apparently a dbx bug; if you can spare a couple of minutes, please submit it through http://bugs.sun.com/services/bugreport/index.jsp
Thanks!
Forgot to mention: Sun compilers (Fortran, C and C++) are only available in Sun Studio Express for Linux. Your Linux installation shouldn't have them. Also, there were a lot of bugfixes and enhancement in DWARF debug information processing since Sun Studio 11 dbx release so there's one more reason to try to upgrate to latest dbx available in Sun Studio Express package. It might be that the problem you see is already fixed there.
SS Express can be downloaded here: http://developers.sun.com/prodtech/cc/downloads/express.jsp
Judging by the error message itself dbx cant parse DWARF.
Most likely, similarly to what has been [url=http://forum.sun.com/jive/thread.jspa?threadID=105695&tstart=0]pointed out[/url] by Chris for gfortran, dbx does not fully support DWARF generated by that pgf77.
You indeed, might want to try Fortran from our eXpress Linux release. It IS supported by dbx :)
regards,
__Fedor.
That kind of error message indicates that dbx found an
abbreviation code in ".debug_info" which is not described
in ".debug_abbrev". It points to some sort of internal consistency
error in the dwarf data generated by the pgf77 compiler.
It could also be some sort of incompatible dwarf extension
in pgf77 that dbx does not handle. It is easy to add specific
extensions in a compatible way, and dbx should skip the
things it doesn't understand. But if the dwarf data format was
structurally changed in a basic way then dbx might
not understand.
dbx in Sun Studio 11 doesn't support dwarf with fortran yet.
We are working on that support for the Sun compilers now,
and Sun Studio 12 should have a much better chance of working
with pgf77. We have no immediate plans for *officially*
supporting that compiler. But basic dwarf support for fortran should
be much better in Sun Studio 12.
--chris