Re: Time profiling on Mac OS X

Malcolm Wallace <[email protected]> Wed, 18 May 2005 13:44:49 +0100
Newsgroups gmane.comp.lang.haskell.nhc.bugs
Organization Dept of Computer Science, University of York
Message-ID <[email protected]>
Tony Sloane <[email protected]> writes:

> I've been trying a simple test of time profiling on a Mac OS 10.3.9 
> machine.  It fails during linking on the program:
> 
> main = putStrLn "Hello World!\n"
> 
> See the attached typescript.  Is this a known problem?

I'm afraid that time profiling has probably suffered some bit-rot over
the last couple of years.  Its implementation relies on some cunning
generation of extra symbols to aggregate costs upwards to modules
(the tprofprel tool).  Since the move to hierarchical libraries,
I suspect this machinery has not been kept sufficiently up-to-date
to continue to serve its purpose.

> I note that the libraries on this machine can't be ranlib -s'ed since 
> they have multiple definitions of some symbols.  Is this related or can 
> I ignore these warnings?

Not sure.

Regards,
    Malcolm