public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] emerge package with profiling flags -pg
@ 2011-06-19 16:47 Kfir Lavi
  2011-06-19 17:13 ` [gentoo-user] " Kfir Lavi
  0 siblings, 1 reply; 2+ messages in thread
From: Kfir Lavi @ 2011-06-19 16:47 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 652 bytes --]

Hi,
I would like to profile my program, so would like to compile it with the -pg
flag,
to be able to profile it with gprof.
Running the emerge like that produce:
CFLAGS="$CFLAGS -pg" emerge MY_PROG
Gives me the error:
-- Check for working C compiler: /usr/bin/i686-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/i686-pc-linux-gnu-gcc -- broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:52
(MESSAGE):
  The C compiler "/usr/bin/i686-pc-linux-gnu-gcc" is not able to compile a
  simple test program.

This problem will not occur if I just emerge the program:
emerge MY_PROG

Any help will be appreciated.
Regards,
Kfir

[-- Attachment #2: Type: text/html, Size: 764 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-19 18:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-19 16:47 [gentoo-user] emerge package with profiling flags -pg Kfir Lavi
2011-06-19 17:13 ` [gentoo-user] " Kfir Lavi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox