gprof with -lc_p: anyone able to do it?
I wanted to do some profiling on GNU make, so I installed the libc6-prof
package (I'm using testing) and built make like this:
$ make CFLAGS='-g -pg' LDFLAGS='-g -pg' LIBS=-lc_p
But this is very unhappy:
$ ./make
Segmentation fault
:( :(
GDB says:
Program received signal SIGSEGV, Segmentation fault.
0x08099133 in _dl_lookup_versioned_symbol ()
(gdb) bt
#0 0x08099133 in _dl_lookup_versioned_symbol ()
#1 0x40008385 in ?? ()
#2 0x400029c9 in ?? ()
#3 0x4000bc29 in ?? ()
#4 0x4000175a in ?? ()
#5 0x400016cb in ?? ()
Not very helpful.
Note that if I leave of the C profiling library (no -lc_p) then it works
fine and I can generate profiling output... but when I do that it only
accounts for 18 seconds of a 3+ minute run!
Am I doing something wrong here?
Thanks!
--
-------------------------------------------------------------------------------
Paul D. Smith <psmith@gnu.org> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
Reply to: