[DragonFlyBSD - Bug #2325] compiling c++ program in profile mode doesn't work

Sascha Wildner via Redmine bugtracker-admin at leaf.dragonflybsd.org
Mon Mar 5 02:06:27 PST 2012


Issue #2325 has been updated by Sascha Wildner.


Pierre,

I've committed a fix to master. Please try again.

Regards,
Sascha

----------------------------------------
Bug #2325: compiling c++ program in profile mode doesn't work
http://bugs.dragonflybsd.org/issues/2325

Author: Pierre Abbat
Status: New
Priority: Normal
Assignee: 
Category: 
Target version: 


phma at darner:/tmp$ g++ -pg -o proftest proftest.cpp
/usr/libexec/binutils222/elf/ld.bfd: cannot find -lm_p
phma at darner:/tmp$ g++ -p -o proftest proftest.cpp
consider using '-pg' instead of '-p' with gprof(1)
/usr/libexec/binutils222/elf/ld.bfd: cannot find -lm_p

The same command succeeds on Linux. I noticed this when trying to profile a much larger program which is a CMake project; the attached program is a minimal program for getting anything useful out of gprof (or would if the loop count were bigger).


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account





More information about the Bugs mailing list