[DragonFlyBSD - Bug #2325] (Feedback) compiling c++ program in profile mode doesn't work
Alex Hornung via Redmine
bugtracker-admin at leaf.dragonflybsd.org
Mon Mar 5 16:46:57 PST 2012
Issue #2325 has been updated by Alex Hornung.
Status changed from New to Feedback
----------------------------------------
Bug #2325: compiling c++ program in profile mode doesn't work
http://bugs.dragonflybsd.org/issues/2325
Author: Pierre Abbat
Status: Feedback
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