linking files compiled with older gfortran

Tobias Burnus burnus@net-b.de
Wed Jun 17 23:23:00 GMT 2009


kamaraju kusumanchi wrote:
>> You should try gdb with the Red Hat patches (-> Fedora 11, openSUSE
>> Factory/pre-11.2 or in archer.git)
> I encountered couple of problems while debugging a large code. I did
> not have time to reduce the problem to a test case. So did not report
> it. Anyway, I will try to download the latest gdb source snapshot.
>   

When you have pin-pointed the problem, which still occurs with current
gfortran + gdb (cf. below), can you then open a bug report?

Note: The normal "gdb" CVS trunk (or snapshots of it) do not contain all
patches. If you have trouble with assumed-shape or allocatable arrays -
or with accessing module variables, you need something more. As written,
the "gdb" which comes with Fedora 11 (just released) or with openSUSE
Factory contains these patches, otherwise, you should check out the
"archer-jankratochvil-fedora-merge" branch.

See:
- http://sourceware.org/git/?p=archer.git;a=summary
- http://sourceware.org/gdb/wiki/ArcherBranchManagement

There is the plan to move the fixes to gdb CVS, however, this still will
take a while. For the Fortran 90 arrays (and for C99's VLA), a
garbage-collector patch needs to be checked in first. Current status see
git log (first link above) and the following two links:
  http://sourceware.org/ml/gdb-patches/2009-05/msg00543.html
  http://sourceware.org/ml/gdb-patches/2009-06/msg00238.html

(Thanks goes to Jan Kratochvil who did/does a lot of work on gdb.)

Tobias



More information about the Fortran mailing list