I have problems debugging Fortran programs on Mac OS Mountain Lion with gdb. When I invoke
gdb (fortran executable name)
from a terminal, I get the following message:
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries.
warning: Could not find object file "/Users/fx/devel/gcc/ibin-462-x86_64/x86_64-apple-darwin11/libgfortran/.libs/backtrace.o"
- no debug information available for "../../../gcc-4.6.2-RC-20111019/libgfortran/runtime/backtrace.c". ... (an extremely long list of analogous warnings pop up for libgcc and libquadmath libraries) ...
Basically, gdb is searching for a bunch of object files in paths (/Users/fx/...) that do not exist.
Other than that, the debugger seems to be working fine. Does anyone know how can I fix this?
A a side note, gdb works fine on C programs. Both C and Fortran compilers run smoothly; gcc was included in Xcode command line tools, while gfortran was installed from a separate source (path: /usr/local/bin/gfortran).
I tried to read several other answers but no one seemed to match this issue.