[petsc-dev] Apple sadness

Satish Balay balay at mcs.anl.gov
Mon Apr 12 15:26:49 CDT 2010


On Mon, 12 Apr 2010, Barry Smith wrote:

> 
> 
> On Apr 12, 2010, at 1:49 PM, Satish Balay wrote:
> 
> > We [sean and I] have a better fix for this issue.
> > 
>   Cool, thanks for figuring this out.
> 
> > Basically we have to run dsymutil on the binary/.dylib - before the .o
> > files are deleted. This creates binary.dSYM dir - which has the debug
> > info - thats available for the debugger.
> > 
> > I've pushed a fix for libpetsc.dylib to petsc31/dev- so that part
> > works now.
> > 
> > However - when the application is built - for example - ex1.c, ex1.o
> > gets deleted aswell by our makefiles, so that part of the debug
> > symbols are still missing.  [we don't have a generic target here to
> > modify - so I'm not sure how to deal with it]
> 
>   Like I said before I use make ex1 RM=/usr/bin/true and the leaves behind the
> .o and the debugger is happy. Any reason this isn't the way to go?

[with the above fix for libpetsc.dylib] 'make ex1 RM=/usr/bin/true'
could be the recommended workarround for us, working with petsc
example makefiles.

Most users probably don't do 'RM foo.o' in their makefiles anyway - so
they might not have this issue.

Satish



More information about the petsc-dev mailing list