> I was able to reproduce this only by having a mismatch of GCC built
> libraries. When I used a GCC 3.4.6 built TAU/PDT, I got:
>
> % tau_cc.sh -fprofile-arcs -fprofile-generate foo.c
>
> ...
> : undefined reference to `__gcov_indirect_call_profiler'
>
> However, when I rebuilt TAU,PDT, and then used it, I had no problem.
>
> When I'd used all 3.4.6 built libraries, it all worked as well, only with
> the mismatch could I reproduce it.
>
I ran into an identical gcov issue while trying to build Wine on Ubuntu 9.04: http:// bugs.winehq. org/show_ bug.cgi? id=18832
I'm beginning to think there's a deeper problem exposing this for both of us, like something within gcc and gcov
This thread (about another gcov problem): http:// nic.uoregon. edu/pipermail/ tau-users/ 2009-April/ 000245. html suggests that it might be a mismatch issue:
> I was able to reproduce this only by having a mismatch of GCC built indirect_ call_profiler'
> libraries. When I used a GCC 3.4.6 built TAU/PDT, I got:
>
> % tau_cc.sh -fprofile-arcs -fprofile-generate foo.c
>
> ...
> : undefined reference to `__gcov_
>
> However, when I rebuilt TAU,PDT, and then used it, I had no problem.
>
> When I'd used all 3.4.6 built libraries, it all worked as well, only with
> the mismatch could I reproduce it.
>