Profiling support

Torsten Bonde Christiansen torsten at bondechristiansen.dk
Wed Jan 16 08:58:28 CET 2008


Torbjorn Granlund wrote:
> Torsten Bonde Christiansen <torsten at bondechristiansen.dk> writes:
>
>   It does pass -pg to the compiler during build (and linking) so the
>   configure script does what it's supposed to do.
>
> Good configure!
>   
It is... :)
>   This is testes with exactly the same settings on three different linux
>   systems. A gentoo installation (64 bit), an ubuntu 7.4 (64 bit) and
>   ubuntu 7.10 (32 bit).
>   None of these systems are able to give me any profiling information.
>
> Any at all?
>   
I do get profiling output from the rest of my program. But any 
information regarding mpz_ function is omitted.
>   I'm not stating that i'm convinced i'm right, merely i just can't seem
>   to figure out where i could be wrong...
>   
> If you add a dummy function foo() and call it at the beginning of
> main(), does it show up as called once?  If not, well, I am sad to say
> it, but then GMP is even more likely totally innocent.  GCC, ld, your
> library, your kernel, or yourself are to blame.  :-)
>   
Adding function foo() does indeed show up as being called once in the 
program. Details listed here:
http://pastebin.com/f5f45b3f2
> (Now that GMP is used by GCC 4.3, my diatribes about GCC bugs might
> backfire.  A bug in GMP might cause GCC to miscompile things, e.g.,
> GMP...)
>
>   
And ldd a.out shows:
mcbain at bellini:~/tmp$ ldd a.out
        libgmp.so.3 => /usr/local/lib/libgmp.so.3 (0x00002b528fcd3000)
        libc.so.6 => /lib/libc.so.6 (0x00002b528ff22000)
        /lib64/ld-linux-x86-64.so.2 (0x00002b528fab5000)


Still no clue to whats wrong.


Regards,
Torsten Bonde Christiansen.


More information about the gmp-bugs mailing list