Lots of warnings from gdb 7.2

Richard Stanton stanton at haas.berkeley.edu
Wed Apr 13 09:56:53 PDT 2011


Rainer Müller <raimue <at> macports.org> writes:

> 
> On 2011-04-11 19:04 , Richard Stanton wrote:
> > I just installed gcc 4.5 and gdb 7.2 on my Snow Leopard machine (which
> > also has Xcode installed), and used gcc_select to make gcc 4.5 the
>default
> > compiler. I can now compile and run programs fine, but when I try to
>debug
> > them using gdb 7.2, while the debugging itself seems to work OK, I get
>a
> > huge number of warnings about missing files.
> 
> Actually I have no solution for this. I guess this is due the fact that
> the libraries include information from which object files they were
> linked. But as the work directory is automatically cleaned after
> installation, these object files are gone now.
> 
> I have no idea why /usr/bin/gdb doesn't show the same behavior, but be
> aware that it is much older and has been patched by Apple.
> 
> Rainer
> 

Actually, /usr/bin/gdb does show the same (or very similar) behavior. It's
the upgrade to gcc45 that causes the problem. The warnings go away (a
suggestion from  Russell Jones) if you install gcc45 with the -k option.



Richard





More information about the macports-users mailing list